bsh
Class DelayedEvalBshMethod

java.lang.Object
  extended bybsh.BshMethod
      extended bybsh.DelayedEvalBshMethod
All Implemented Interfaces:
java.io.Serializable

public class DelayedEvalBshMethod
extends BshMethod

See Also:
Serialized Form

Field Summary
(package private)  CallStack callstack
           
(package private)  Interpreter interpreter
           
(package private)  java.lang.String[] paramTypeDescriptors
           
(package private)  BSHFormalParameters paramTypesNode
           
(package private)  java.lang.String returnTypeDescriptor
           
(package private)  BSHReturnType returnTypeNode
           
 
Fields inherited from class bsh.BshMethod
declaringNameSpace, methodBody, modifiers
 
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.
 
Method Summary
 java.lang.Class[] getParameterTypes()
          Get the argument types of this method.
 java.lang.String[] getParamTypeDescriptors()
           
 java.lang.Class getReturnType()
          Get the return type of the method.
 java.lang.String getReturnTypeDescriptor()
           
 
Methods inherited from class bsh.BshMethod
getModifiers, getName, getParameterNames, hasModifier, invoke, invoke, invoke, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

returnTypeDescriptor

java.lang.String returnTypeDescriptor

returnTypeNode

BSHReturnType returnTypeNode

paramTypeDescriptors

java.lang.String[] paramTypeDescriptors

paramTypesNode

BSHFormalParameters paramTypesNode

callstack

transient CallStack callstack

interpreter

transient Interpreter interpreter
Constructor Detail

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.

Method Detail

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