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

Method getInstanceOf

output/java8/1.4.17/STGroup.java:188–197  ·  view source on GitHub ↗

The primary means of getting an instance of a template from this group. Names must be absolute, fully-qualified names like /a/b.

(String name)

Source from the content-addressed store, hash-verified

186 */
187
188 public ST getInstanceOf(String name) {
189 if ( name==null ) return null;
190 if ( verbose ) System.out.println(getName()+".getInstanceOf("+name+")");
191 if ( name.charAt(0) !='/' ) name = "/"+name;
192 CompiledST c = lookupTemplate(name);
193 if ( c!=null ) {
194 return createStringTemplate(c);
195 }
196 return null;
197 }
198
199 protected ST getEmbeddedInstanceOf(Interpreter interp, InstanceScope scope, String name) {
200 String fullyQualifiedName = name;

Callers 5

getEmbeddedInstanceOfMethod · 0.95
test1Method · 0.45
test2Method · 0.45
test3Method · 0.45
test4Method · 0.45

Calls 3

getNameMethod · 0.95
lookupTemplateMethod · 0.95
createStringTemplateMethod · 0.95

Tested by

no test coverage detected