MCPcopy Create free account
hub / github.com/beanshell/beanshell / getThis

Method getThis

src/bsh/BlockNameSpace.java:153–155  ·  view source on GitHub ↗

Get a 'this' reference is our parent's 'this' for the object closure. e.g. Normally a 'this' reference to a BlockNameSpace (e.g. if () { } ) resolves to the parent namespace (e.g. the namespace containing the "if" statement). @see #getBlockThis( Interpreter )

( Interpreter declaringInterpreter )

Source from the content-addressed store, hash-verified

151 @see #getBlockThis( Interpreter )
152 */
153 public This getThis( Interpreter declaringInterpreter ) {
154 return getNonBlockParent().getThis( declaringInterpreter );
155 }
156
157 /**
158 super is our parent's super

Callers

nothing calls this directly

Calls 1

getNonBlockParentMethod · 0.95

Tested by

no test coverage detected