public class ASTJexlScript extends JexlNode
JexlNode.Constant<T>
id
Constructor and Description |
---|
ASTJexlScript(int id) |
ASTJexlScript(Parser p,
int id) |
Modifier and Type | Method and Description |
---|---|
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. symbols assigned to local variables.
|
String[] |
getParameters()
Gets this script parameters, i.e. symbols assigned before creating local variables.
|
Map<String,Object> |
getPragmas() |
Scope |
getScope() |
String[] |
getSymbols()
Gets this script symbols, i.e. parameters and local variables.
|
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.
|
clearCache, isConstant, isConstant, isLeftValue, jexlInfo, jjtSetFirstToken, jjtSetLastToken
childrenAccept, dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString, toString
public ASTJexlScript(int id)
public ASTJexlScript(Parser p, int id)
public ASTJexlScript script()
public Object jjtAccept(ParserVisitor visitor, Object data)
SimpleNode
jjtAccept
in interface Node
jjtAccept
in class SimpleNode
visitor
- the visitordata
- contextual datapublic boolean toExpression()
public void setScope(Scope theScope)
theScope
- the scopepublic Scope getScope()
public Scope.Frame createFrame(Object... values)
values
- the argument valuespublic int getArgCount()
public String[] getSymbols()
public String[] getParameters()
public String[] getLocalVariables()
public boolean isHoistedSymbol(int symbol)
symbol
- the symbol numberCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.