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.
|
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.
|
clearCache, isConstant, isConstant, isLeftValue, jexlInfo, jjtSetFirstToken, jjtSetLastTokenchildrenAccept, dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString, toStringpublic ASTJexlScript(int id)
public ASTJexlScript(Parser p, int id)
public ASTJexlScript script()
public Object jjtAccept(ParserVisitor visitor, Object data)
SimpleNodejjtAccept in interface NodejjtAccept in class SimpleNodevisitor - 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–2016 The Apache Software Foundation. All rights reserved.