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
,java.io.Serializable
,java.lang.Runnable
,java.util.concurrent.Callable<com.googlecode.aviator.runtime.type.AviatorObject>
- Direct Known Subclasses:
EvalFunc
public abstract class CustomFunction extends com.googlecode.aviator.runtime.function.AbstractFunction
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private com.googlecode.aviator.AviatorEvaluatorInstance
aviatorEval
-
Constructor Summary
Constructors Constructor Description CustomFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.googlecode.aviator.AviatorEvaluatorInstance
getAviatorEval()
java.lang.String
replaceTargets(java.lang.String exp, java.util.Map<java.lang.String,java.lang.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
-
-
-
-
Method Detail
-
replaceTargets
public java.lang.String replaceTargets(java.lang.String exp, java.util.Map<java.lang.String,java.lang.Object> env)
-
getAviatorEval
public com.googlecode.aviator.AviatorEvaluatorInstance getAviatorEval()
-
setAviatorEval
public void setAviatorEval(com.googlecode.aviator.AviatorEvaluatorInstance aviatorEval)
-
-