Package org.casbin.jcasbin.util
Class BuiltInFunctions.GenerateGFunctionClass
java.lang.Object
org.casbin.jcasbin.util.BuiltInFunctions.GenerateGFunctionClass
- Enclosing class:
BuiltInFunctions
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.googlecode.aviator.runtime.type.AviatorFunction
generateGFunction
(String name, RoleManager rm) generateGFunction is the factory method of the g(_, _) function.
-
Field Details
-
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.
-