(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("+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 |
no test coverage detected