Top Fields Constructors Methods
bsh

pack-priv Class BSHSwitchStatement

extends SimpleNode
implements ParserConstants
Class Inheritance
All Implemented Interfaces
bsh.ParserConstants

Field Summary

Inherited from bsh.SimpleNode:
childrenfirstTokenidJAVACODElastTokenparentsourceFile

Constructor Summary

AccessConstructor and Description
public

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.
private boolean
primitiveEquals(Object switchVal, Object targetVal, CallStack callstack, SimpleNode switchExp)

Helper method for testing equals on two primitive or boxable objects.

Inherited from bsh.SimpleNode:
dumpgetChildgetLineNumbergetSourceFilegetTextjjtAddChildjjtClosejjtGetChildjjtGetNumChildrenjjtGetParentjjtOpenjjtSetParentprunesetSourceFiletoStringtoString

Constructor Detail

BSHSwitchStatementback to summary
public BSHSwitchStatement(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.

primitiveEqualsback to summary
private boolean primitiveEquals(Object switchVal, Object targetVal, CallStack callstack, SimpleNode switchExp) throws EvalError

Helper method for testing equals on two primitive or boxable objects. yuck: factor this out into Primitive.java