| java.lang.Object bsh.LHS
LHS | class LHS implements ParserConstants,java.io.Serializable(Code) | | An LHS is a wrapper for an variable, field, or property. It ordinarily
holds the "left hand side" of an assignment and may be either resolved to
a value or assigned a value.
There is one special case here termed METHOD_EVAL where the LHS is used
in an intermediate evaluation of a chain of suffixes and wraps a method
invocation. In this case it may only be resolved to a value and cannot be
assigned. (You can't assign a value to the result of a method call e.g.
"foo() = 5;").
|
Constructor Summary | |
| LHS(NameSpace nameSpace, String varName, boolean localVar) Parameters: localVar - if true the variable is set directly in the Thisreference's local scope. | | LHS(Field field) Static field LHS Constructor. | | LHS(Object object, Field field) Object field LHS Constructor. | | LHS(Object object, String propName) Object property LHS Constructor. | | LHS(Object array, int index) Array index LHS Constructor. |
VARIABLEFIELDPROPERTYINDEXMETHOD_EVAL | final static int VARIABLEFIELDPROPERTYINDEXMETHOD_EVAL(Code) | | Identifiers for the various types of LHS.
|
localVar | boolean localVar(Code) | | The assignment should be to a local variable
|
LHS | LHS(NameSpace nameSpace, String varName, boolean localVar)(Code) | | Parameters: localVar - if true the variable is set directly in the Thisreference's local scope. If false recursion to look for the variabledefinition in parent's scope is allowed. (e.g. the default case forundefined vars going to global). |
LHS | LHS(Field field)(Code) | | Static field LHS Constructor.
This simply calls Object field constructor with null object.
|
LHS | LHS(Object array, int index)(Code) | | Array index LHS Constructor.
|
|
|