(Interpreter interp, InstanceScope scope, String name)
| 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("+ |
| 205 | fullyQualifiedName+")"); |
| 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 |
no test coverage detected