jxl.enshell
Class JavaMethod

java.lang.Object
  extended by jxl.enshell.JavaMethod
All Implemented Interfaces:
AbstractMethod

public class JavaMethod
extends java.lang.Object
implements AbstractMethod

Author:
Alex Lynch (jxlynch@users.sf.net)

Constructor Summary
JavaMethod(java.lang.reflect.Method meth, java.lang.Object subject)
          Creates a new instance of JavaMethod
 
Method Summary
 java.lang.String getName()
          Getter for property name.
 java.lang.Class[] getParamTypes()
          Getter for property paramTypes.
 java.lang.Class getReturnType()
          Getter for property returnType.
 java.lang.Object invoke(java.lang.Object[] types, AbstractScope scope)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaMethod

public JavaMethod(java.lang.reflect.Method meth,
                  java.lang.Object subject)
Creates a new instance of JavaMethod

Method Detail

getName

public java.lang.String getName()
Description copied from interface: AbstractMethod
Getter for property name.

Specified by:
getName in interface AbstractMethod
Returns:
Value of property name.

getParamTypes

public java.lang.Class[] getParamTypes()
Description copied from interface: AbstractMethod
Getter for property paramTypes.

Specified by:
getParamTypes in interface AbstractMethod
Returns:
Value of property paramTypes.

getReturnType

public java.lang.Class getReturnType()
Description copied from interface: AbstractMethod
Getter for property returnType.

Specified by:
getReturnType in interface AbstractMethod
Returns:
Value of property returnType.

invoke

public java.lang.Object invoke(java.lang.Object[] types,
                               AbstractScope scope)
                        throws EvalException
Specified by:
invoke in interface AbstractMethod
Throws:
EvalException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object