Class 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  
      • Fields inherited from class com.googlecode.aviator.runtime.type.AviatorObject

        metadata
    • 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
      • 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 Detail

      • aviatorEval

        private com.googlecode.aviator.AviatorEvaluatorInstance aviatorEval
    • Constructor Detail

      • CustomFunction

        public CustomFunction()
    • 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)