public class FunctionMap
extends java.lang.Object
Modifier and Type | Field and 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 and Description |
---|
FunctionMap() |
Modifier and Type | Method and 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.
|
public java.util.Map<java.lang.String,com.googlecode.aviator.runtime.type.AviatorFunction> fm
public boolean isModify
public void addFunction(java.lang.String name, com.googlecode.aviator.runtime.type.AviatorFunction function)
name
- the name of the new function.function
- the function.public void setAviatorEval(java.lang.String name, com.googlecode.aviator.AviatorEvaluatorInstance aviatorEval)
name
- the name of the custom function.aviatorEval
- the AviatorEvaluatorInstance object.public void setAviatorEval(com.googlecode.aviator.AviatorEvaluatorInstance aviatorEval)
aviatorEval
- the AviatorEvaluatorInstance object.public static FunctionMap loadFunctionMap()
Copyright © 2017–2024. All rights reserved.