Class BuiltInFunctions.GenerateGFunctionClass

java.lang.Object
org.casbin.jcasbin.util.BuiltInFunctions.GenerateGFunctionClass
Enclosing class:
BuiltInFunctions

public static class BuiltInFunctions.GenerateGFunctionClass extends Object
  • Field Details

    • memorizedMap

      private static Map<String,Map<String,com.googlecode.aviator.runtime.type.AviatorBoolean>> memorizedMap
  • Constructor Details

    • GenerateGFunctionClass

      public GenerateGFunctionClass()
  • Method Details

    • generateGFunction

      public static com.googlecode.aviator.runtime.type.AviatorFunction generateGFunction(String name, RoleManager rm)
      generateGFunction is the factory method of the g(_, _) function.
      Parameters:
      name - the name of the g(_, _) function, can be "g", "g2", ..
      rm - the role manager used by the function.
      Returns:
      the function.