Top Description Fields Constructors Methods
bsh

pack-priv Class BSHCastExpression

extends SimpleNode
Class Inheritance

Implement casts. I think it should be possible to simplify some of the code here by using the Types.getAssignableForm() method, but I haven't looked into it.

Field Summary

Inherited from bsh.SimpleNode:
childrenfirstTokenidJAVACODElastTokenparentsourceFile

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the result of the cast.
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

BSHCastExpressionback to summary
public BSHCastExpression(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.

Returns:Object

the result of the cast.