MCPcopy Index your code
hub / github.com/beanshell/beanshell / getClassInstance

Method getClassInstance

src/bsh/NameSpace.java:126–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124 importObject( instance );
125 }
126 Object getClassInstance()
127 throws UtilEvalError
128 {
129 if ( classInstance != null )
130 return classInstance;
131
132 if ( classStatic != null
133 //|| ( getParent()!=null && getParent().classStatic != null )
134 )
135 throw new UtilEvalError(
136 "Can't refer to class instance from static context.");
137 else
138 throw new InterpreterError(
139 "Can't resolve class instance 'this' in: "+this);
140 }
141
142
143 /**

Callers 3

invokeMethodMethod · 0.95
invokeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected