|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jexl2.parser.SimpleNode org.apache.commons.jexl2.parser.JexlNode org.apache.commons.jexl2.parser.ASTJexlScript
public class ASTJexlScript
Enhanced script to allow parameters declaration.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.commons.jexl2.parser.JexlNode |
---|
JexlNode.Literal<T> |
Field Summary |
---|
Fields inherited from class org.apache.commons.jexl2.parser.JexlNode |
---|
image |
Fields inherited from class org.apache.commons.jexl2.parser.SimpleNode |
---|
children, id, parent, value |
Constructor Summary | |
---|---|
ASTJexlScript(int id)
|
|
ASTJexlScript(Parser p,
int id)
|
Method Summary | |
---|---|
JexlEngine.Frame |
createFrame(Object... values)
Creates an array of arguments by copying values up to the number of parameters. |
int |
getArgCount()
Gets the (maximum) number of arguments this script expects. |
String[] |
getLocalVariables()
Gets this script local variable, i.e. |
String[] |
getParameters()
Gets this script parameters, i.e. |
String[] |
getRegisters()
Gets this script registers, i.e. |
JexlEngine.Scope |
getScope()
Gets this script scope. |
Object |
jjtAccept(ParserVisitor visitor,
Object data)
Accept the visitor. |
void |
setScope(JexlEngine.Scope theScope)
Sets the parameters and registers |
Methods inherited from class org.apache.commons.jexl2.parser.JexlNode |
---|
debugInfo, debugString, isConstant, isConstant |
Methods inherited from class org.apache.commons.jexl2.parser.SimpleNode |
---|
childrenAccept, dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ASTJexlScript(int id)
public ASTJexlScript(Parser p, int id)
Method Detail |
---|
public Object jjtAccept(ParserVisitor visitor, Object data)
SimpleNode
jjtAccept
in interface Node
jjtAccept
in class SimpleNode
visitor
- the visitordata
- contextual data
public void setScope(JexlEngine.Scope theScope)
theScope
- the scopepublic JexlEngine.Scope getScope()
public JexlEngine.Frame createFrame(Object... values)
values
- the argument values
public int getArgCount()
public String[] getRegisters()
public String[] getParameters()
public String[] getLocalVariables()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |