Top Description Fields Constructors Methods
bsh

pack-priv Class BSHTernaryExpression

extends SimpleNode
Class Inheritance

This class needs logic to prevent the right hand side of boolean logical expressions from being naively evaluated... e.g. for "foo && bar" bar should not be evaluated in the case where foo is true.

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.
Inherited from bsh.SimpleNode:
dumpgetChildgetLineNumbergetSourceFilegetTextjjtAddChildjjtClosejjtGetChildjjtGetNumChildrenjjtGetParentjjtOpenjjtSetParentprunesetSourceFiletoStringtoString

Constructor Detail

BSHTernaryExpressionback to summary
pack-priv BSHTernaryExpression(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.