|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jexl3.parser.SimpleNode
org.apache.commons.jexl3.parser.JexlNode
org.apache.commons.jexl3.parser.ASTJexlScript
public class ASTJexlScript
Enhanced script to allow parameters declaration.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.commons.jexl3.parser.JexlNode |
---|
JexlNode.Constant<T> |
Field Summary |
---|
Fields inherited from class org.apache.commons.jexl3.parser.SimpleNode |
---|
id |
Constructor Summary | |
---|---|
ASTJexlScript(int id)
|
|
ASTJexlScript(Parser p,
int id)
|
Method Summary | |
---|---|
Scope.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. |
Map<String,Object> |
getPragmas()
|
Scope |
getScope()
|
String[] |
getSymbols()
Gets this script symbols, i.e. |
boolean |
isHoistedSymbol(int symbol)
Checks whether a given symbol is hoisted. |
Object |
jjtAccept(ParserVisitor visitor,
Object data)
Accept the visitor. |
ASTJexlScript |
script()
Consider script with no parameters that return lambda as parametric-scripts. |
void |
setScope(Scope theScope)
Sets this script scope. |
boolean |
toExpression()
Coerce this script as an expression (ie only one child) if necessary. |
Methods inherited from class org.apache.commons.jexl3.parser.JexlNode |
---|
clearCache, isConstant, isConstant, isLeftValue, jexlInfo, jjtSetFirstToken, jjtSetLastToken |
Methods inherited from class org.apache.commons.jexl3.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 ASTJexlScript script()
public Object jjtAccept(ParserVisitor visitor, Object data)
SimpleNode
jjtAccept
in interface Node
jjtAccept
in class SimpleNode
visitor
- the visitordata
- contextual data
public boolean toExpression()
public void setScope(Scope theScope)
theScope
- the scopepublic Scope getScope()
public Map<String,Object> getPragmas()
public Scope.Frame createFrame(Object... values)
values
- the argument values
public int getArgCount()
public String[] getSymbols()
public String[] getParameters()
public String[] getLocalVariables()
public boolean isHoistedSymbol(int symbol)
symbol
- the symbol number
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |