Top Fields Constructors Methods
bsh

pack-priv Class BSHMethodDeclaration

extends SimpleNode
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv BSHBlock
pack-priv int
public Modifiers
public String
pack-priv int
pack-priv BSHFormalParameters
pack-priv Class<T>
pack-priv BSHReturnType
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.

Evaluate the declaration of the method.
private void
evalNodes(CallStack callstack, Interpreter interpreter)

pack-priv Class<T>

Returns:

the type or null indicating loosely typed return
evalReturnType
(CallStack callstack, Interpreter interpreter)

Evaluate the return type node.

pack-priv String
getReturnTypeDescriptor(CallStack callstack, Interpreter interpreter, String defaultPackage)

pack-priv BSHReturnType
pack-priv synchronized void
insureNodesParsed()

Set the returnTypeNode, paramsNode, and blockNode based on child node structure.

public String
toString()

Overrides bsh.SimpleNode.toString.

Returns a string representation of the object.
Inherited from bsh.SimpleNode:
dumpgetChildgetLineNumbergetSourceFilegetTextjjtAddChildjjtClosejjtGetChildjjtGetNumChildrenjjtGetParentjjtOpenjjtSetParentprunesetSourceFiletoString

Field Detail

blockNodeback to summary
pack-priv BSHBlock blockNode
firstThrowsClauseback to summary
pack-priv int firstThrowsClause
modifiersback to summary
public Modifiers modifiers
nameback to summary
public String name
numThrowsback to summary
pack-priv int numThrows
paramsNodeback to summary
pack-priv BSHFormalParameters paramsNode
returnTypeback to summary
pack-priv Class<T> returnType
returnTypeNodeback to summary
pack-priv BSHReturnType returnTypeNode

Constructor Detail

BSHMethodDeclarationback to summary
pack-priv BSHMethodDeclaration(int id)

Method Detail

evalback to summary
public Object eval(CallStack callstack, Interpreter interpreter) throws EvalError

Overrides bsh.SimpleNode.eval.

Evaluate the declaration of the method. That is, determine the structure of the method and install it into the caller's namespace.

evalNodesback to summary
private void evalNodes(CallStack callstack, Interpreter interpreter) throws EvalError
evalReturnTypeback to summary
pack-priv Class<T> evalReturnType(CallStack callstack, Interpreter interpreter) throws EvalError

Evaluate the return type node.

Returns:Class<T>

the type or null indicating loosely typed return

getReturnTypeDescriptorback to summary
pack-priv String getReturnTypeDescriptor(CallStack callstack, Interpreter interpreter, String defaultPackage)
getReturnTypeNodeback to summary
pack-priv BSHReturnType getReturnTypeNode()
insureNodesParsedback to summary
pack-priv synchronized void insureNodesParsed()

Set the returnTypeNode, paramsNode, and blockNode based on child node structure. No evaluation is done here.

toStringback to summary
public String toString()

Overrides bsh.SimpleNode.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.