ug4
|
Functions | |
const ug::bridge::ClassNameNode * | getClassNodePtrByName (ug::bridge::Registry *reg, std::string className) |
const ug::bridge::ExportedConstructor * | getConstructorBySignature (JNIEnv *env, ug::bridge::Registry *reg, ug::bridge::IExportedClass *eCls, jobjectArray params) |
const ug::bridge::IExportedClass * | getExportedClassPtrByName (ug::bridge::Registry *reg, std::string className) |
const ug::bridge::ExportedFunction * | getFunctionBySignature (JNIEnv *env, ug::bridge::Registry *reg, std::string functionName, jobjectArray params) |
const ug::bridge::ExportedMethod * | getMethodBySignature (JNIEnv *env, ug::bridge::Registry *reg, const ug::bridge::IExportedClass *clazz, bool readOnly, std::string methodName, jobjectArray params) |
void | initClasses (ug::bridge::Registry ®) |
Variables | |
static ug::Hash< std::string, const ug::bridge::IExportedClass * > | classes |
const ug::bridge::ClassNameNode * ug::vrl::invocation::getClassNodePtrByName | ( | ug::bridge::Registry * | reg, |
std::string | className | ||
) |
Returns a classnode by name.
reg | registry to search |
className | class name |
NULL
otherwise References classes.
Referenced by ug::vrl::compareParamTypes(), Java_edu_gcsc_vrl_ug_UG__1invokeMethod(), ug::vrl::jObject2ConstSmartPtrVector(), ug::vrl::jObject2PtrVector(), ug::vrl::jObject2SmartPtrVector(), and ug::vrl::jobjectArray2ParamStack().
const ug::bridge::ExportedConstructor * ug::vrl::invocation::getConstructorBySignature | ( | JNIEnv * | env, |
ug::bridge::Registry * | reg, | ||
ug::bridge::IExportedClass * | eCls, | ||
jobjectArray | params | ||
) |
Returns an exported function by its signature.
env | JVM environment to operate on |
reg | registry to search |
eCls | exported class |
params | Java object array containing method parameter |
NULL
otherwise References ug::vrl::compareParamTypes(), ug::bridge::IExportedClass::get_constructor(), ug::bridge::IExportedClass::num_constructors(), and ug::bridge::ExportedConstructor::params_in().
Referenced by Java_edu_gcsc_vrl_ug_UG__1newInstance().
const ug::bridge::IExportedClass * ug::vrl::invocation::getExportedClassPtrByName | ( | ug::bridge::Registry * | reg, |
std::string | className | ||
) |
Returns an exported class by name.
reg | registry to search |
className | class name |
NULL
otherwise References classes.
Referenced by ug::vrl::getParentClasses(), Java_edu_gcsc_vrl_ug_UG__1getExportedClassPtrByName(), and Java_edu_gcsc_vrl_ug_UG__1invokeMethod().
const ug::bridge::ExportedFunction * ug::vrl::invocation::getFunctionBySignature | ( | JNIEnv * | env, |
ug::bridge::Registry * | reg, | ||
std::string | functionName, | ||
jobjectArray | params | ||
) |
Returns an exported function by its signature.
env | JVM environment to operate on |
reg | registry to search |
functionName | method name |
params | Java object array containing method parameter |
NULL
otherwise References ug::vrl::compareParamTypes(), func(), ug::bridge::Registry::get_exported_function_group(), ug::bridge::ExportedFunctionGroup::get_overload(), and ug::bridge::ExportedFunctionGroup::num_overloads().
Referenced by Java_edu_gcsc_vrl_ug_UG__1invokeFunction().
const ug::bridge::ExportedMethod * ug::vrl::invocation::getMethodBySignature | ( | JNIEnv * | env, |
ug::bridge::Registry * | reg, | ||
const ug::bridge::IExportedClass * | clazz, | ||
bool | readOnly, | ||
std::string | methodName, | ||
jobjectArray | params | ||
) |
Returns an exported method by its signature.
env | JVM environment to operate on |
reg | registry to search |
clazz | class the method to search belongs to |
readOnly | defines whether to search a const method |
methodName | method name |
params | Java object array containing method parameter |
NULL
otherwise References ug::vrl::compareParamTypes(), ug::bridge::IExportedClass::get_const_exported_method_group(), ug::bridge::IExportedClass::get_exported_method_group(), ug::bridge::ExportedMethodGroup::get_overload(), ug::vrl::getParentClasses(), ug::bridge::ExportedMethodGroup::num_overloads(), and ug::bridge::ExportedFunctionBase::params_in().
Referenced by Java_edu_gcsc_vrl_ug_UG__1invokeMethod().
void ug::vrl::invocation::initClasses | ( | ug::bridge::Registry & | reg | ) |
References classes, ug::bridge::Registry::get_class(), ug::bridge::IExportedClass::name(), and ug::bridge::Registry::num_classes().
Referenced by Java_edu_gcsc_vrl_ug_UG__1ugInit().
|
static |
Referenced by getClassNodePtrByName(), getExportedClassPtrByName(), and initClasses().