|
|
| version 1.41, 2016/04/01 16:27:31 | version 1.43, 2016/07/13 15:03:51 |
|---|---|
| Line 19 static const String method_type_parser(" | Line 19 static const String method_type_parser(" |
| static const String method_call_type("call_type"); | static const String method_call_type("call_type"); |
| static const String method_inherited("inherited"); | static const String method_inherited("inherited"); |
| static const String method_overridden("overridden"); | static const String method_overridden("overridden"); |
| static const String method_call_type_static("static"); | |
| static const String method_call_type_dynamic("dynamic"); | |
| static const String method_min_params("min_params"); | static const String method_min_params("min_params"); |
| static const String method_max_params("max_params"); | static const String method_max_params("max_params"); |
| Line 195 static void _def(Request& r, MethodParam | Line 193 static void _def(Request& r, MethodParam |
| const String& type=params.as_string(0, "type must be string"); | const String& type=params.as_string(0, "type must be string"); |
| if(type == def_class) { | if(type == def_class) { |
| const String& name=params.as_string(1, "name must be string"); | const String& name=params.as_string(1, "name must be string"); |
| r.write_no_lang(VBool::get(r.get_class(name)!=0)); | r.write_no_lang(VBool::get(r.classes().get(name)!=0)); |
| } else { | } else { |
| throw Exception(PARSER_RUNTIME, &type, "is invalid type, must be '%s'", def_class.cstr()); | throw Exception(PARSER_RUNTIME, &type, "is invalid type, must be '%s'", def_class.cstr()); |
| } | } |
| Line 287 static void _method_info(Request& r, Met | Line 285 static void _method_info(Request& r, Met |
| Value* call_type=0; | Value* call_type=0; |
| switch(method->call_type){ | switch(method->call_type){ |
| case Method::CT_DYNAMIC: | case Method::CT_DYNAMIC: |
| call_type=new VString(method_call_type_dynamic); | call_type=new VString(Symbols::DYNAMIC_SYMBOL); |
| break; | break; |
| case Method::CT_STATIC: | case Method::CT_STATIC: |
| call_type=new VString(method_call_type_static); | call_type=new VString(Symbols::STATIC_SYMBOL); |
| break; | break; |
| case Method::CT_ANY: | case Method::CT_ANY: |
| break; | break; |