Top Description Fields Constructors Methods
bsh

pack-priv Class BSHEnhancedForStatement

extends SimpleNode
implements ParserConstants
Class Inheritance
All Implemented Interfaces
bsh.ParserConstants
Imports
java.util.*

Implementation of the enhanced for(:) statement. This statement uses BshIterable to support iteration over a wide variety of iterable types. Under JDK 1.1 this statement supports primitive and Object arrays, Vectors, and enumerations. Under JDK 1.2 and later it additionally supports collections.
Authors
Daniel Leuck, Pat Niemeyer

Field Summary

Modifier and TypeField and Description
pack-priv String
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.
Inherited from bsh.SimpleNode:
dumpgetChildgetLineNumbergetSourceFilegetTextjjtAddChildjjtClosejjtGetChildjjtGetNumChildrenjjtGetParentjjtOpenjjtSetParentprunesetSourceFiletoStringtoString

Field Detail

varNameback to summary
pack-priv String varName

Constructor Detail

BSHEnhancedForStatementback to summary
pack-priv BSHEnhancedForStatement(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.