|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--bsh.This
'This' is the type of bsh scripted objects. A 'This' object is a bsh scripted object context. It holds a namespace reference and implements event listeners and various other interfaces. This holds a reference to the declaring interpreter for callbacks from outside of bsh.
Field Summary | |
(package private) Interpreter |
declaringInterpreter
This is the interpreter running when the This ref was created. |
(package private) NameSpace |
namespace
The namespace that this This reference wraps. |
Constructor Summary | |
protected |
This(NameSpace namespace,
Interpreter declaringInterpreter)
|
Method Summary | |
static void |
bind(This ths,
NameSpace namespace,
Interpreter declaringInterpreter)
Bind a This reference to a parent's namespace with the specified declaring interpreter. |
java.lang.Object |
getInterface(java.lang.Class clas)
Get a version of the interface. |
NameSpace |
getNameSpace()
|
(package private) static This |
getThis(NameSpace namespace,
Interpreter declaringInterpreter)
getThis() is a factory for bsh.This type references. |
java.lang.Object |
invokeMethod(java.lang.String name,
java.lang.Object[] args)
Invoke specified method from outside java code, using the declaring interpreter and current namespace. |
java.lang.Object |
invokeMethod(java.lang.String name,
java.lang.Object[] args,
Interpreter interpreter,
CallStack callstack,
SimpleNode callerInfo)
Invoke specified method with specified interpreter. |
(package private) CallStack |
newCallStack()
Remove a This reference from a parent's namespace. |
void |
run()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
NameSpace namespace
transient Interpreter declaringInterpreter
Constructor Detail |
protected This(NameSpace namespace, Interpreter declaringInterpreter)
Method Detail |
static This getThis(NameSpace namespace, Interpreter declaringInterpreter)
public java.lang.Object getInterface(java.lang.Class clas) throws EvalError
EvalError
public NameSpace getNameSpace()
public java.lang.String toString()
toString
in class java.lang.Object
public void run()
run
in interface java.lang.Runnable
public java.lang.Object invokeMethod(java.lang.String name, java.lang.Object[] args) throws EvalError
EvalError
public java.lang.Object invokeMethod(java.lang.String name, java.lang.Object[] args, Interpreter interpreter, CallStack callstack, SimpleNode callerInfo) throws EvalError
EvalError
public static void bind(This ths, NameSpace namespace, Interpreter declaringInterpreter)
This is a static utility method because it's used by a bsh command bind() and the interpreter doesn't currently allow access to direct methods of This objects (small hack)
CallStack newCallStack()
This is a static utility method because it's used by a bsh command bind() and the interpreter doesn't currently allow access to direct methods of This objects (small hack) public static void unbind( This ths ) { }
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |