| java.lang.Object org.gjt.sp.jedit.bsh.SimpleNode org.gjt.sp.jedit.bsh.BSHArrayDimensions
BSHArrayDimensions | class BSHArrayDimensions extends SimpleNode (Code) | | The name of this class is somewhat misleading. This covers both the case
where there is an array initializer and
|
definedDimensions | public int[] definedDimensions(Code) | | The Length in each defined dimension. This value set by the eval()
Since the values can come from Expressions we should be re-eval()d each
time.
|
numDefinedDims | public int numDefinedDims(Code) | | |
numUndefinedDims | public int numUndefinedDims(Code) | | |
BSHArrayDimensions | BSHArrayDimensions(int id)(Code) | | |
addDefinedDimension | public void addDefinedDimension()(Code) | | |
addUndefinedDimension | public void addUndefinedDimension()(Code) | | |
eval | public Object eval(CallStack callstack, Interpreter interpreter) throws EvalError(Code) | | Evaluate the structure of the array in one of two ways:
a) an initializer exists, evaluate it and return
the fully constructed array object, also record the dimensions
of that array
b) evaluate and record the lengths in each dimension and
return void.
The structure of the array dims is maintained in dimensions.
|
|
|