public static final class JexlEngine.Scope extends Object
Constructor and Description |
---|
Scope(String... parameters)
Creates a new scope with a list of parameters.
|
Modifier and Type | Method and Description |
---|---|
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() |
public Scope(String... parameters)
parameters
- the list of parameterspublic boolean equals(JexlEngine.Scope frame)
frame
- the frame to compare topublic Integer getRegister(String name)
name
- the register namepublic Integer declareVariable(String name)
This method creates an new entry in the named register map.
name
- the variable namepublic JexlEngine.Frame createFrame(Object... values)
values
- the argument valuespublic int getArgCount()
public String[] getRegisters()
public String[] getParameters()
public String[] getLocalVariables()
Copyright © 2016 Internet2. All rights reserved.