jxl.enshell
Class ScriptedMethod

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

public class ScriptedMethod
extends java.lang.Object
implements AbstractMethod

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

Constructor Summary
ScriptedMethod(ParsedElement methodDeclaration, AbstractScope scope)
          Creates a new instance of ScriptedMethod
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getName()
          Getter for property name.
 java.lang.Class[] getParamTypes()
          Getter for property paramTypes.
 java.lang.Class getReturnType()
          Getter for property returnType.
 int hashCode()
           
 java.lang.Object invoke(java.lang.Object[] args, AbstractScope scope)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptedMethod

public ScriptedMethod(ParsedElement methodDeclaration,
                      AbstractScope scope)
               throws EvalException
Creates a new instance of ScriptedMethod

Throws:
EvalException
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[] args,
                               AbstractScope scope)
                        throws EvalException
Specified by:
invoke in interface AbstractMethod
Throws:
EvalException

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object