| Modifier and Type | Field and Description |
|---|---|
| public String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Object | eval(BSHType
is the BSHType node. Its info is passed through to any
variable intializer children for the case where the array initializer
does not declare the type explicitly. e.g.
int [] a = { 1, 2 };
typeNode may be null to indicate no type information available. typeNode, CallStack callstack, Interpreter interpreter)Evaluate the optional initializer value. |
| public String |
| name | back to summary |
|---|---|
| public String name | |
| BSHVariableDeclarator | back to summary |
|---|---|
| pack-priv BSHVariableDeclarator(int id) | |
| eval | back to summary |
|---|---|
| public Object eval(BSHType typeNode, CallStack callstack, Interpreter interpreter) throws EvalError Evaluate the optional initializer value. (The name was set at parse time.) A variable declarator can be evaluated with or without preceding type information. Currently the type info is only used by array initializers in the case where there is no explicitly declared type.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides bsh. Doc from java. Returns a string representation of the object.
| |