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
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Class<?> private MethodHandleprivate booleanprivate Stringprivate Stringprivate Class<?>[]private static final longFields inherited from class AviatorObject
metadata -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the function nameprivate voidprivate voidreadObject(ObjectInputStream input) variadicCall(Map<String, Object> env, AviatorObject... args) Call with variadic arguments.The subclass must implement this method.private voidwriteObject(ObjectOutputStream output) 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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
handle
-
pTypes
-
name
-
methodName
-
methods
-
clazz
-
isStatic
private boolean isStatic
-
-
Constructor Details
-
ClassMethodFunction
public ClassMethodFunction(Class<?> clazz, boolean isStatic, String name, String methodName, List<Method> methods) throws IllegalAccessException, NoSuchMethodException
-
-
Method Details
-
init
private void init(boolean isStatic, String methodName, List<Method> methods) throws IllegalAccessException, NoSuchMethodException -
readObject
- Throws:
ClassNotFoundExceptionIOException
-
writeObject
- Throws:
IOException
-
getName
-
variadicCall
Description copied from class:AbstractVariadicFunctionCall with variadic arguments.The subclass must implement this method.- Specified by:
variadicCallin classAbstractVariadicFunction- Parameters:
env-args-- Returns:
-