org.persvr.data
Class Method

java.lang.Object
  extended by BaseFunction
      extended by org.persvr.data.Method

public class Method
extends BaseFunction


Constructor Summary
Method(BaseFunction innerFunction, java.lang.String methodName)
           
 
Method Summary
 java.lang.Object call(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
           
 int getArity()
           
 java.lang.String getClassName()
           
 java.lang.Object getDefaultValue(java.lang.Class typeHint)
           
 java.lang.String getFunctionName()
           
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Method

public Method(BaseFunction innerFunction,
              java.lang.String methodName)
Method Detail

call

public java.lang.Object call(Context cx,
                             Scriptable scope,
                             Scriptable thisObj,
                             java.lang.Object[] args)

toString

public java.lang.String toString()

setName

public void setName(java.lang.String name)

getArity

public int getArity()

getClassName

public java.lang.String getClassName()

getFunctionName

public java.lang.String getFunctionName()

getDefaultValue

public java.lang.Object getDefaultValue(java.lang.Class typeHint)