Class ASTJexlScript
java.lang.Object
edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.parser.SimpleNode
edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.parser.JexlNode
edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.parser.ASTJexlScript
Enhanced script to allow parameters declaration.
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.parser.JexlNode
JexlNode.Literal<T>
-
Field Summary
Fields inherited from class edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.parser.JexlNode
image
Fields inherited from class edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.parser.SimpleNode
children, id, parent, value
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateFrame
(Object... values) Creates an array of arguments by copying values up to the number of parameters.int
Gets the (maximum) number of arguments this script expects.String[]
Gets this script local variable, i.e.String[]
Gets this script parameters, i.e.String[]
Gets this script registers, i.e.getScope()
Gets this script scope.jjtAccept
(ParserVisitor visitor, Object data) Accept the visitor.void
setScope
(JexlEngine.Scope theScope) Sets the parameters and registersMethods inherited from class edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.parser.JexlNode
debugInfo, debugString, isConstant, isConstant
Methods inherited from class edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.parser.SimpleNode
childrenAccept, dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString, toString
-
Constructor Details
-
ASTJexlScript
public ASTJexlScript(int id) -
ASTJexlScript
-
-
Method Details
-
jjtAccept
Description copied from class:SimpleNode
Accept the visitor.- Specified by:
jjtAccept
in interfaceNode
- Overrides:
jjtAccept
in classSimpleNode
- Parameters:
visitor
- the visitordata
- contextual data- Returns:
- result of visit
-
setScope
Sets the parameters and registers- Parameters:
theScope
- the scope
-
getScope
Gets this script scope. -
createFrame
Creates an array of arguments by copying values up to the number of parameters.- Parameters:
values
- the argument values- Returns:
- the arguments array
-
getArgCount
public int getArgCount()Gets the (maximum) number of arguments this script expects.- Returns:
- the number of parameters
-
getRegisters
Gets this script registers, i.e. parameters and local variables.- Returns:
- the register names
-
getParameters
Gets this script parameters, i.e. registers assigned before creating local variables.- Returns:
- the parameter names
-
getLocalVariables
Gets this script local variable, i.e. registers assigned to local variables.- Returns:
- the parameter names
-