Package org.casbin.jcasbin.util.function
Class CustomFunction
java.lang.Object
com.googlecode.aviator.runtime.type.AviatorObject
com.googlecode.aviator.runtime.function.AbstractFunction
org.casbin.jcasbin.util.function.CustomFunction
- All Implemented Interfaces:
com.googlecode.aviator.runtime.type.AviatorFunction
,Serializable
,Runnable
,Callable<com.googlecode.aviator.runtime.type.AviatorObject>
- Direct Known Subclasses:
EvalFunc
public abstract class CustomFunction
extends com.googlecode.aviator.runtime.function.AbstractFunction
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.googlecode.aviator.AviatorEvaluatorInstance
Fields inherited from class com.googlecode.aviator.runtime.type.AviatorObject
metadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.googlecode.aviator.AviatorEvaluatorInstance
replaceTargets
(String exp, Map<String, Object> env) void
setAviatorEval
(com.googlecode.aviator.AviatorEvaluatorInstance aviatorEval) Methods inherited from class com.googlecode.aviator.runtime.function.AbstractFunction
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, run, throwArity
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.googlecode.aviator.runtime.type.AviatorFunction
getName
-
Field Details
-
aviatorEval
private com.googlecode.aviator.AviatorEvaluatorInstance aviatorEval
-
-
Constructor Details
-
CustomFunction
public CustomFunction()
-
-
Method Details
-
replaceTargets
-
getAviatorEval
public com.googlecode.aviator.AviatorEvaluatorInstance getAviatorEval() -
setAviatorEval
public void setAviatorEval(com.googlecode.aviator.AviatorEvaluatorInstance aviatorEval)
-