| java.lang.Object org.gjt.sp.jedit.bsh.SimpleNode org.gjt.sp.jedit.bsh.BSHVariableDeclarator
BSHVariableDeclarator | class BSHVariableDeclarator extends SimpleNode (Code) | | name [ = initializer ]
evaluate name and return optional initializer
|
BSHVariableDeclarator | BSHVariableDeclarator(int id)(Code) | | |
eval | public Object eval(BSHType typeNode, CallStack callstack, Interpreter interpreter) throws EvalError(Code) | | 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.
Parameters: typeNode - is the BSHType node. Its info is passed through to anyvariable intializer children for the case where the array initializerdoes not declare the type explicitly. e.g.int [] a = { 1, 2 };typeNode may be null to indicate no type information available. |
|
|