Top Fields Constructors Methods
bsh

public Class DelayedEvalBshMethod

extends BshMethod
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv transient CallStack
pack-priv transient Interpreter
pack-priv String[]
pack-priv BSHFormalParameters
pack-priv String
pack-priv BSHReturnType
Inherited from bsh.BshMethod:
declaringNameSpacemethodBodymodifiers

Constructor Summary

AccessConstructor and Description
pack-priv
DelayedEvalBshMethod(String name, String returnTypeDescriptor, BSHReturnType returnTypeNode, String[] paramNames, String[] paramTypeDescriptors, BSHFormalParameters paramTypesNode, BSHBlock methodBody, NameSpace declaringNameSpace, Modifiers modifiers, CallStack callstack, Interpreter interpreter)

This constructor is used in class generation.

Method Summary

Modifier and TypeMethod and Description
public Class<T>[]
getParameterTypes()

Overrides bsh.BshMethod.getParameterTypes.

Get the argument types of this method.
public String[]
public Class<T>
getReturnType()

Overrides bsh.BshMethod.getReturnType.

Get the return type of the method.
public String
Inherited from bsh.BshMethod:
getModifiersgetNamegetParameterNameshasModifierinvokeinvokeinvoketoString

Field Detail

callstackback to summary
pack-priv transient CallStack callstack
interpreterback to summary
pack-priv transient Interpreter interpreter
paramTypeDescriptorsback to summary
pack-priv String[] paramTypeDescriptors
paramTypesNodeback to summary
pack-priv BSHFormalParameters paramTypesNode
returnTypeDescriptorback to summary
pack-priv String returnTypeDescriptor
returnTypeNodeback to summary
pack-priv BSHReturnType returnTypeNode

Constructor Detail

DelayedEvalBshMethodback to summary
pack-priv DelayedEvalBshMethod(String name, String returnTypeDescriptor, BSHReturnType returnTypeNode, String[] paramNames, String[] paramTypeDescriptors, BSHFormalParameters paramTypesNode, BSHBlock methodBody, NameSpace declaringNameSpace, Modifiers modifiers, CallStack callstack, Interpreter interpreter)

This constructor is used in class generation. It supplies String type descriptors for return and parameter class types and allows delay of the evaluation of those types until they are requested. It does this by holding BSHType nodes, as well as an evaluation callstack, and interpreter which are called when the class types are requested.

Method Detail

getParameterTypesback to summary
public Class<T>[] getParameterTypes()

Overrides bsh.BshMethod.getParameterTypes.

Doc from bsh.BshMethod.getParameterTypes.

Get the argument types of this method. loosely typed (untyped) arguments will be represented by null argument types.

getParamTypeDescriptorsback to summary
public String[] getParamTypeDescriptors()
getReturnTypeback to summary
public Class<T> getReturnType()

Overrides bsh.BshMethod.getReturnType.

Doc from bsh.BshMethod.getReturnType.

Get the return type of the method.

Returns:Class<T>

Returns null for a loosely typed return value, Void.TYPE for a void return type, or the Class of the type.

getReturnTypeDescriptorback to summary
public String getReturnTypeDescriptor()