Top Inners Fields Constructors Methods
bsh

pack-priv Class BSHBlock

extends SimpleNode
Class Inheritance

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Modifier and TypeField and Description
public boolean
Inherited from bsh.SimpleNode:
childrenfirstTokenidJAVACODElastTokenparentsourceFile

Constructor Summary

AccessConstructor and Description
pack-priv
BSHBlock(int id)

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(CallStack callstack, Interpreter interpreter, boolean
if set to true the block will be executed in the current namespace (not a subordinate one).

If true *no* new BlockNamespace will be swapped onto the stack and the eval will happen in the current top namespace. This is used by BshMethod, TryStatement, etc. which must intialize the block first and also for those that perform multiple passes in the same block.

overrideNamespace
)

pack-priv Object
evalBlock(CallStack callstack, Interpreter interpreter, boolean overrideNamespace, BSHBlock.NodeFilter nodeFilter)

Inherited from bsh.SimpleNode:
dumpgetChildgetLineNumbergetSourceFilegetTextjjtAddChildjjtClosejjtGetChildjjtGetNumChildrenjjtGetParentjjtOpenjjtSetParentprunesetSourceFiletoStringtoString

Field Detail

isSynchronizedback to summary
public boolean isSynchronized

Constructor Detail

BSHBlockback to summary
pack-priv BSHBlock(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(CallStack callstack, Interpreter interpreter, boolean overrideNamespace) throws EvalError
Parameters
overrideNamespace:boolean

if set to true the block will be executed in the current namespace (not a subordinate one).

If true *no* new BlockNamespace will be swapped onto the stack and the eval will happen in the current top namespace. This is used by BshMethod, TryStatement, etc. which must intialize the block first and also for those that perform multiple passes in the same block.

evalBlockback to summary
pack-priv Object evalBlock(CallStack callstack, Interpreter interpreter, boolean overrideNamespace, BSHBlock.NodeFilter nodeFilter) throws EvalError
bsh back to summary

public Interface BSHBlock.NodeFilter

Known Direct Implementers
bsh.ClassGeneratorImpl.ClassNodeFilter

Method Summary

Modifier and TypeMethod and Description
public boolean

Method Detail

isVisibleback to summary
public boolean isVisible(SimpleNode node)