Class JavaMethodReflectionFunctionMissing
java.lang.Object
com.googlecode.aviator.runtime.JavaMethodReflectionFunctionMissing
- All Implemented Interfaces:
FunctionMissing, Serializable
A function missing implementation that invoking first argument class's java instance method by
reflection with all arguments(the first argument as `this` pointer).
- Since:
- 4.2.5
- Author:
- dennis zhuang(killme2008@gmail.com)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve a global singleton JavaMethodReflectionFunctionMissing instance.onFunctionMissing(String name, Map<String, Object> env, AviatorObject... args) Called when function not found, return the invocation result.
-
Method Details
-
getInstance
Retrieve a global singleton JavaMethodReflectionFunctionMissing instance.- Returns:
-
onFunctionMissing
Description copied from interface:FunctionMissingCalled when function not found, return the invocation result.- Specified by:
onFunctionMissingin interfaceFunctionMissing- Parameters:
name- function nameenv- invocation envargs- invocation arguments.- Returns:
- The invocation result.
-