|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--bsh.BshMethod
This represents an *instance* of a bsh method declaration in a particular namespace. This is a thin wrapper around the BSHMethodDeclaration with a pointer to the declaring namespace.
The issue is that when a method is located in a subordinate namespace or invoked from an arbitrary namespace it must nontheless execute with its 'super' as the context in which it was declared. i.e. The local method context is a child namespace of the declaring namespace.
Method Summary | |
java.lang.Class[] |
getArgTypes()
Note: bshmethod needs to re-evaluate arg types here This is broken |
java.lang.String |
getName()
|
java.lang.Object |
invoke(java.lang.Object[] argValues,
Interpreter interpreter,
CallStack callstack)
Invoke the declared method with the specified arguments, interpreter reference, and callstack. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public java.lang.Class[] getArgTypes()
public java.lang.String getName()
public java.lang.Object invoke(java.lang.Object[] argValues, Interpreter interpreter, CallStack callstack) throws EvalError
EvalError
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |