MCPcopy Create free account
hub / github.com/antlr/codebuff / getEmbeddedInstanceOf

Method getEmbeddedInstanceOf

output/java/1.4.12/STGroup.java:199–216  ·  view source on GitHub ↗
(Interpreter interp, InstanceScope scope, String name)

Source from the content-addressed store, hash-verified

197 }
198
199 protected ST getEmbeddedInstanceOf(Interpreter interp, InstanceScope scope, String name) {
200 String fullyQualifiedName = name;
201 if ( name.charAt(0)!='/' ) {
202 fullyQualifiedName = scope.st.impl.prefix+name;
203 }
204 if ( verbose ) System.out.println("getEmbeddedInstanceOf("+
205fullyQualifiedName+")");
206 ST st = getInstanceOf(fullyQualifiedName);
207 if ( st==null ) {
208 errMgr.runTimeError(interp, scope, ErrorType.NO_SUCH_TEMPLATE, fullyQualifiedName);
209 return createStringTemplateInternally(new CompiledST());
210 }
211 // this is only called internally. wack any debug ST create events
212 if ( trackCreationEvents ) {
213 st.debugState.newSTEvent = null; // toss it out
214 }
215 return st;
216 }
217
218 /** Create singleton template for use with dictionary values. */
219

Callers 2

_execMethod · 0.45
super_newMethod · 0.45

Calls 3

getInstanceOfMethod · 0.95
runTimeErrorMethod · 0.65

Tested by

no test coverage detected