Top Fields Constructors Methods
bsh

pack-priv Class BSHArrayInitializer

extends SimpleNode
Class Inheritance
Imports
java.lang.reflect.Array

Field Summary

Inherited from bsh.SimpleNode:
childrenfirstTokenidJAVACODElastTokenparentsourceFile

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Object
eval(CallStack callstack, Interpreter interpreter)

Overrides bsh.SimpleNode.eval.

This is the general signature for evaluation of a node.
public Object
eval(Class<T>
the base class type of the array (no dimensionality)
baseType
,
int
the top number of dimensions of the array e.g. 2 for a String [][];
dimensions
,
CallStack callstack, Interpreter interpreter)

Construct the array from the initializer syntax.

private void
throwTypeError(Class<T> baseType, Object initializer, int argNum, CallStack callstack)

Inherited from bsh.SimpleNode:
dumpgetChildgetLineNumbergetSourceFilegetTextjjtAddChildjjtClosejjtGetChildjjtGetNumChildrenjjtGetParentjjtOpenjjtSetParentprunesetSourceFiletoStringtoString

Constructor Detail

BSHArrayInitializerback to summary
pack-priv BSHArrayInitializer(int id)

Method Detail

evalback to summary
public Object eval(CallStack callstack, Interpreter interpreter) throws EvalError

Overrides bsh.SimpleNode.eval.

Doc from bsh.SimpleNode.eval.

This is the general signature for evaluation of a node.

evalback to summary
public Object eval(Class<T> baseType, int dimensions, CallStack callstack, Interpreter interpreter) throws EvalError

Construct the array from the initializer syntax.

Parameters
baseType:Class<T>

the base class type of the array (no dimensionality)

dimensions:int

the top number of dimensions of the array e.g. 2 for a String [][];

throwTypeErrorback to summary
private void throwTypeError(Class<T> baseType, Object initializer, int argNum, CallStack callstack) throws EvalError