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

Method bind

src/bsh/This.java:415–420  ·  view source on GitHub ↗

Bind a This reference to a parent's namespace with the specified declaring interpreter. Also re-init the callstack. It's necessary to bind a This reference before it can be used after deserialization. This is used by the bsh load() command. This is a static utility method because i

( 
		This ths, NameSpace namespace, Interpreter declaringInterpreter )

Source from the content-addressed store, hash-verified

413 methods of This objects (small hack)
414 */
415 public static void bind(
416 This ths, NameSpace namespace, Interpreter declaringInterpreter )
417 {
418 ths.namespace.setParent( namespace );
419 ths.declaringInterpreter = declaringInterpreter;
420 }
421
422 /**
423 Allow invocations of these method names on This type objects.

Callers

nothing calls this directly

Calls 1

setParentMethod · 0.80

Tested by

no test coverage detected