Class UseFunction
java.lang.Object
com.googlecode.aviator.runtime.type.AviatorObject
com.googlecode.aviator.runtime.function.AbstractVariadicFunction
com.googlecode.aviator.runtime.function.internal.UseFunction
- All Implemented Interfaces:
AviatorFunction
,Serializable
,Runnable
,Callable<AviatorObject>
__use(pkg, ...names) function to implement import use
- See Also:
-
Field Summary
FieldsFields inherited from class com.googlecode.aviator.runtime.type.AviatorObject
metadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
call
(Map<String, Object> env, AviatorObject arg1) use package.class;call
(Map<String, Object> env, AviatorObject arg1, AviatorObject arg2) use package.* or use.package.{class};getName()
Get the function namevariadicCall
(Map<String, Object> env, AviatorObject... args) use package.{class1, class2};Methods inherited from class com.googlecode.aviator.runtime.function.AbstractVariadicFunction
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, run
Methods inherited from class com.googlecode.aviator.runtime.type.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:
-
INSTANCE
-
-
Constructor Details
-
UseFunction
private UseFunction()
-
-
Method Details
-
variadicCall
use package.{class1, class2};- Specified by:
variadicCall
in classAbstractVariadicFunction
- Parameters:
env
-args
-- Returns:
-
addSym
-
call
use package.class;- Specified by:
call
in interfaceAviatorFunction
- Overrides:
call
in classAbstractVariadicFunction
-
call
use package.* or use.package.{class};- Specified by:
call
in interfaceAviatorFunction
- Overrides:
call
in classAbstractVariadicFunction
-
getName
Description copied from interface:AviatorFunction
Get the function name- Returns:
-