Class ClassMethodFunction
java.lang.Object
com.googlecode.aviator.runtime.type.AviatorObject
com.googlecode.aviator.runtime.function.AbstractVariadicFunction
com.googlecode.aviator.runtime.function.ClassMethodFunction
- All Implemented Interfaces:
AviatorFunction, Serializable, Runnable, Callable<AviatorObject>
An aviator function wraps a class's static method.
- Since:
- 4.2.2
- Author:
- dennis(killme2008@gmail.com)
- See Also:
-
Field Summary
Fields inherited from class AviatorObject
metadata -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the function namevariadicCall(Map<String, Object> env, AviatorObject... args) Call with variadic arguments.The subclass must implement this method.Methods inherited from class AbstractVariadicFunction
call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, desc, getAviatorType, getValue, innerCompare, runMethods inherited from class AviatorObject
add, bitAnd, bitNot, bitOr, bitXor, booleanValue, compare, compareEq, defineValue, deref, div, exponent, getElement, getMetadata, isNull, match, meta, mod, mult, neg, not, numberValue, setValue, shiftLeft, shiftRight, stringValue, sub, toString, unsignedShiftRight, withMeta, withoutMeta
-
Constructor Details
-
ClassMethodFunction
public ClassMethodFunction(Class<?> clazz, boolean isStatic, String name, String methodName, List<Method> methods) throws IllegalAccessException, NoSuchMethodException
-
-
Method Details
-
getName
-
variadicCall
Description copied from class:AbstractVariadicFunctionCall with variadic arguments.The subclass must implement this method.- Specified by:
variadicCallin classAbstractVariadicFunction- Parameters:
env-args-- Returns:
-