Package org.casbin.jcasbin.util
Class BuiltInFunctions.GenerateGFunctionClass
- java.lang.Object
-
- org.casbin.jcasbin.util.BuiltInFunctions.GenerateGFunctionClass
-
- Enclosing class:
- BuiltInFunctions
public static class BuiltInFunctions.GenerateGFunctionClass extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.String,java.util.Map<java.lang.String,com.googlecode.aviator.runtime.type.AviatorBoolean>>
memorizedMap
-
Constructor Summary
Constructors Constructor Description GenerateGFunctionClass()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.googlecode.aviator.runtime.type.AviatorFunction
generateGFunction(java.lang.String name, RoleManager rm)
generateGFunction is the factory method of the g(_, _) function.
-
-
-
Method Detail
-
generateGFunction
public static com.googlecode.aviator.runtime.type.AviatorFunction generateGFunction(java.lang.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.
-
-