bsh
Class DelayedEvalBshMethod
java.lang.Object
bsh.BshMethod
bsh.DelayedEvalBshMethod
- All Implemented Interfaces:
- java.io.Serializable
- public class DelayedEvalBshMethod
- extends BshMethod
- See Also:
- Serialized Form
|
Constructor Summary |
(package private) |
DelayedEvalBshMethod(java.lang.String name,
java.lang.String returnTypeDescriptor,
BSHReturnType returnTypeNode,
java.lang.String[] paramNames,
java.lang.String[] paramTypeDescriptors,
BSHFormalParameters paramTypesNode,
BSHBlock methodBody,
NameSpace declaringNameSpace,
Modifiers modifiers,
CallStack callstack,
Interpreter interpreter)
This constructor is used in class generation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
returnTypeDescriptor
java.lang.String returnTypeDescriptor
returnTypeNode
BSHReturnType returnTypeNode
paramTypeDescriptors
java.lang.String[] paramTypeDescriptors
paramTypesNode
BSHFormalParameters paramTypesNode
callstack
transient CallStack callstack
interpreter
transient Interpreter interpreter
DelayedEvalBshMethod
DelayedEvalBshMethod(java.lang.String name,
java.lang.String returnTypeDescriptor,
BSHReturnType returnTypeNode,
java.lang.String[] paramNames,
java.lang.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.
getReturnTypeDescriptor
public java.lang.String getReturnTypeDescriptor()
getReturnType
public java.lang.Class getReturnType()
- Description copied from class:
BshMethod
- Get the return type of the method.
- Overrides:
getReturnType in class BshMethod
- Returns:
- Returns null for a loosely typed return value,
Void.TYPE for a void return type, or the Class of the type.
getParamTypeDescriptors
public java.lang.String[] getParamTypeDescriptors()
getParameterTypes
public java.lang.Class[] getParameterTypes()
- Description copied from class:
BshMethod
- Get the argument types of this method.
loosely typed (untyped) arguments will be represented by null argument
types.
- Overrides:
getParameterTypes in class BshMethod