Top Description Fields Constructors Methods
org.apache.commons.jexl2.parser

public Class ASTJexlScript

extends JexlNode
Class Inheritance
Imports
org.apache.commons.jexl2.JexlEngine

Enhanced script to allow parameters declaration.

Field Summary

Modifier and TypeField and Description
private JexlEngine.Scope
scope

The script scope.

Inherited from org.apache.commons.jexl2.parser.JexlNode:
image

Constructor Summary

AccessConstructor and Description
public
ASTJexlScript(int id)

public
ASTJexlScript(Parser p, int id)

Method Summary

Modifier and TypeMethod and Description
public JexlEngine.Frame

Returns:

the arguments array
createFrame
(Object...
the argument values
values
)

Creates an array of arguments by copying values up to the number of parameters.

public int

Returns:

the number of parameters
getArgCount
()

Gets the (maximum) number of arguments this script expects.

public String[]

Returns:

the parameter names
getLocalVariables
()

Gets this script local variable, i.e. registers assigned to local variables.

public String[]

Returns:

the parameter names
getParameters
()

Gets this script parameters, i.e. registers assigned before creating local variables.

public String[]

Returns:

the register names
getRegisters
()

Gets this script registers, i.e. parameters and local variables.

public JexlEngine.Scope
getScope()

Gets this script scope.

public Object
jjtAccept(ParserVisitor
the visitor
visitor
,
Object
contextual data
data
)

Overrides org.apache.commons.jexl2.parser.SimpleNode.jjtAccept.

Implements org.apache.commons.jexl2.parser.Node.jjtAccept.

Accept the visitor.
public void
setScope(JexlEngine.Scope
the scope
theScope
)

Sets the parameters and registers

Inherited from org.apache.commons.jexl2.parser.JexlNode:
debugInfodebugStringisConstantisConstant

Field Detail

scopeback to summary
private JexlEngine.Scope scope

The script scope.

Constructor Detail

ASTJexlScriptback to summary
public ASTJexlScript(int id)
ASTJexlScriptback to summary
public ASTJexlScript(Parser p, int id)

Method Detail

createFrameback to summary
public JexlEngine.Frame createFrame(Object... values)

Creates an array of arguments by copying values up to the number of parameters.

Parameters
values:Object[]

the argument values

Returns:JexlEngine.Frame

the arguments array

getArgCountback to summary
public int getArgCount()

Gets the (maximum) number of arguments this script expects.

Returns:int

the number of parameters

getLocalVariablesback to summary
public String[] getLocalVariables()

Gets this script local variable, i.e. registers assigned to local variables.

Returns:String[]

the parameter names

getParametersback to summary
public String[] getParameters()

Gets this script parameters, i.e. registers assigned before creating local variables.

Returns:String[]

the parameter names

getRegistersback to summary
public String[] getRegisters()

Gets this script registers, i.e. parameters and local variables.

Returns:String[]

the register names

getScopeback to summary
public JexlEngine.Scope getScope()

Gets this script scope.

jjtAcceptback to summary
public Object jjtAccept(ParserVisitor visitor, Object data)

Overrides org.apache.commons.jexl2.parser.SimpleNode.jjtAccept.

Implements org.apache.commons.jexl2.parser.Node.jjtAccept.

Doc from org.apache.commons.jexl2.parser.SimpleNode.jjtAccept.

Accept the visitor.

Parameters
visitor:ParserVisitor

the visitor

data:Object

contextual data

Returns:Object

result of visit

Annotations
@Override
setScopeback to summary
public void setScope(JexlEngine.Scope theScope)

Sets the parameters and registers

Parameters
theScope:JexlEngine.Scope

the scope