Class FunctionMap


  • public class FunctionMap
    extends java.lang.Object
    FunctionMap represents the collection of Function.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.Map<java.lang.String,​com.googlecode.aviator.runtime.type.AviatorFunction> fm
      AviatorFunction represents a function that is used in the matchers, used to get attributes in ABAC.
      boolean isModify  
    • Constructor Summary

      Constructors 
      Constructor Description
      FunctionMap()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFunction​(java.lang.String name, com.googlecode.aviator.runtime.type.AviatorFunction function)
      addFunction adds an expression function.
      static FunctionMap loadFunctionMap()
      loadFunctionMap loads an initial function map.
      void setAviatorEval​(com.googlecode.aviator.AviatorEvaluatorInstance aviatorEval)
      setAviatorEval adds AviatorEvaluatorInstance to all the custom function.
      void setAviatorEval​(java.lang.String name, com.googlecode.aviator.AviatorEvaluatorInstance aviatorEval)
      setAviatorEval adds AviatorEvaluatorInstance to the custom function.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • fm

        public java.util.Map<java.lang.String,​com.googlecode.aviator.runtime.type.AviatorFunction> fm
        AviatorFunction represents a function that is used in the matchers, used to get attributes in ABAC.
      • isModify

        public boolean isModify
    • Constructor Detail

      • FunctionMap

        public FunctionMap()
    • Method Detail

      • addFunction

        public void addFunction​(java.lang.String name,
                                com.googlecode.aviator.runtime.type.AviatorFunction function)
        addFunction adds an expression function.
        Parameters:
        name - the name of the new function.
        function - the function.
      • setAviatorEval

        public void setAviatorEval​(java.lang.String name,
                                   com.googlecode.aviator.AviatorEvaluatorInstance aviatorEval)
        setAviatorEval adds AviatorEvaluatorInstance to the custom function.
        Parameters:
        name - the name of the custom function.
        aviatorEval - the AviatorEvaluatorInstance object.
      • setAviatorEval

        public void setAviatorEval​(com.googlecode.aviator.AviatorEvaluatorInstance aviatorEval)
        setAviatorEval adds AviatorEvaluatorInstance to all the custom function.
        Parameters:
        aviatorEval - the AviatorEvaluatorInstance object.
      • loadFunctionMap

        public static FunctionMap loadFunctionMap()
        loadFunctionMap loads an initial function map.
        Returns:
        the constructor of FunctionMap.