Package org.casbin.jcasbin.util.function
Class EvalFunc
- java.lang.Object
-
- com.googlecode.aviator.runtime.type.AviatorObject
-
- com.googlecode.aviator.runtime.function.AbstractFunction
-
- org.casbin.jcasbin.util.function.CustomFunction
-
- org.casbin.jcasbin.util.function.EvalFunc
-
- 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>
public class EvalFunc extends CustomFunction
EvalFunc is the wrapper for eval. It extends CustomFunction, so it can be used in matcher and policy rule.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EvalFunc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.googlecode.aviator.runtime.type.AviatorObject
call(java.util.Map<java.lang.String,java.lang.Object> env, com.googlecode.aviator.runtime.type.AviatorObject arg1)
java.lang.String
getName()
-
Methods inherited from class org.casbin.jcasbin.util.function.CustomFunction
getAviatorEval, replaceTargets, setAviatorEval
-
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, 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
-
call
public com.googlecode.aviator.runtime.type.AviatorObject call(java.util.Map<java.lang.String,java.lang.Object> env, com.googlecode.aviator.runtime.type.AviatorObject arg1)
- Specified by:
call
in interfacecom.googlecode.aviator.runtime.type.AviatorFunction
- Overrides:
call
in classcom.googlecode.aviator.runtime.function.AbstractFunction
-
getName
public java.lang.String getName()
-
-