|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jexl2.JexlEngine.Scope
public static final class JexlEngine.Scope
A script scope, stores the declaration of parameters and local variables.
Constructor Summary | |
---|---|
JexlEngine.Scope(String... parameters)
Creates a new scope with a list of parameters. |
Method Summary | |
---|---|
JexlEngine.Frame |
createFrame(Object... values)
Creates a frame by copying values up to the number of parameters. |
Integer |
declareVariable(String name)
Declares a local variable. |
boolean |
equals(JexlEngine.Scope frame)
Whether this frame is equal to another. |
boolean |
equals(Object o)
|
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. |
Integer |
getRegister(String name)
Checks whether an identifier is a local variable or argument, ie stored in a register. |
String[] |
getRegisters()
Gets this script registers, i.e. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JexlEngine.Scope(String... parameters)
parameters
- the list of parametersMethod Detail |
---|
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public boolean equals(JexlEngine.Scope frame)
frame
- the frame to compare to
public Integer getRegister(String name)
name
- the register name
public Integer declareVariable(String name)
This method creates an new entry in the named register map.
name
- the variable name
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 |