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)
| 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; |
no test coverage detected