|
|
| version 1.47, 2002/08/01 11:41:13 | version 1.48, 2002/08/15 09:07:49 |
|---|---|
| Line 97 private: | Line 97 private: |
| GdomeNode *as_node(const String& method_name, MethodParams *params, | GdomeNode *as_node(const String& method_name, MethodParams *params, |
| int index, const char *msg) { | int index, const char *msg) { |
| Value& value=params->as_no_junction(index, msg); | Value& value=params->as_no_junction(index, msg); |
| if(!(strcmp(value.type(), VXNODE_TYPE)==0 | if(Value *vxnode=value.as(VXNODE_TYPE, false)) |
| || strcmp(value.type(), VXDOC_TYPE)==0)) | return static_cast<VXnode *>(vxnode)->get_node(&method_name); |
| else | |
| throw Exception("parser.runtime", | throw Exception("parser.runtime", |
| &method_name, | &method_name, |
| msg); | msg); |
| VXnode& vnode=*static_cast<VXnode *>(&value); | |
| return vnode.get_node(&method_name); | |
| } | } |
| // helpers | // helpers |