MCPcopy Index your code
hub / github.com/antlr/codebuff / getEmbeddedInstanceOf

Method getEmbeddedInstanceOf

output/java8/1.4.15/STGroup.java:199–215  ·  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("+fullyQualifiedName+")");
205 ST st = getInstanceOf(fullyQualifiedName);
206 if ( st==null ) {
207 errMgr.runTimeError(interp, scope, ErrorType.NO_SUCH_TEMPLATE, fullyQualifiedName);
208 return createStringTemplateInternally(new CompiledST());
209 }
210 // this is only called internally. wack any debug ST create events
211 if ( trackCreationEvents ) {
212 st.debugState.newSTEvent = null; // toss it out
213 }
214 return st;
215 }
216
217 /** Create singleton template for use with dictionary values. */
218

Callers 2

_execMethod · 0.45
super_newMethod · 0.45

Calls 3

getInstanceOfMethod · 0.95
runTimeErrorMethod · 0.65

Tested by

no test coverage detected