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, Serializable, Runnable, 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:
  • Field Summary

    Fields inherited from class com.googlecode.aviator.runtime.type.AviatorObject

    metadata
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.googlecode.aviator.runtime.type.AviatorObject
    call(Map<String,Object> env, com.googlecode.aviator.runtime.type.AviatorObject arg1)
     
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • EvalFunc

      public EvalFunc()
  • Method Details

    • call

      public com.googlecode.aviator.runtime.type.AviatorObject call(Map<String,Object> env, com.googlecode.aviator.runtime.type.AviatorObject arg1)
      Specified by:
      call in interface com.googlecode.aviator.runtime.type.AviatorFunction
      Overrides:
      call in class com.googlecode.aviator.runtime.function.AbstractFunction
    • getName

      public String getName()