/** Look up a fully-qualified name */ public CompiledST lookupTemplate(String name) { CompiledST code = rawGetTemplate(name); if ( code==NOT_FOUND_ST ) { if ( verbose ) System.out.println(name+" not found"); return null; } // try to load from disk and look up again if ( code==null ) code = load(name); if ( code==null ) code = lookupImportedTemplate(name); if ( code==null ) { if ( verbose ) System.out.println(name+" not found"); templates.put(name, NOT_FOUND_ST); } if ( verbose ) if ( code!=null ) System.out.println("found "+name+" in "+getName()); return code; }
/** Look up a fully-qualified name. */ public CompiledST lookupTemplate(String name) { if ( name.charAt(0)!='/' ) name = "/"+name; if ( verbose ) System.out.println(getName()+".lookupTemplate("+name+")"); CompiledST code = rawGetTemplate(name); if ( code==NOT_FOUND_ST ) { if ( verbose ) System.out.println(name+" previously seen as not found"); return null; } // try to load from disk and look up again if ( code==null ) code = load(name); if ( code==null ) code = lookupImportedTemplate(name); if ( code==null ) { if ( verbose ) System.out.println(name+" recorded not found"); templates.put(name, NOT_FOUND_ST); } if ( verbose ) if ( code!=null ) System.out.println(getName()+".lookupTemplate("+name+") found"); return code; }
/** Look up a fully-qualified name. */ public CompiledST lookupTemplate(String name) { if ( name.charAt(0)!='/' ) name = "/"+name; if ( verbose ) System.out.println(getName()+".lookupTemplate("+name+")"); CompiledST code = rawGetTemplate(name); if ( code==NOT_FOUND_ST ) { if ( verbose ) System.out.println(name+" previously seen as not found"); return null; } // try to load from disk and look up again if ( code==null ) code = load(name); if ( code==null ) code = lookupImportedTemplate(name); if ( code==null ) { if ( verbose ) System.out.println(name+" recorded not found"); templates.put(name, NOT_FOUND_ST); } if ( verbose ) if ( code!=null ) System.out.println(getName()+".lookupTemplate("+name+") found"); return code; }
/** Look up a fully-qualified name. */ public CompiledST lookupTemplate(String name) { if ( name.charAt(0)!='/' ) name = "/"+name; if ( verbose ) System.out.println(getName()+".lookupTemplate("+name+")"); CompiledST code = rawGetTemplate(name); if ( code==NOT_FOUND_ST ) { if ( verbose ) System.out.println(name+" previously seen as not found"); return null; } // try to load from disk and look up again if ( code==null ) code = load(name); if ( code==null ) code = lookupImportedTemplate(name); if ( code==null ) { if ( verbose ) System.out.println(name+" recorded not found"); templates.put(name, NOT_FOUND_ST); } if ( verbose ) if ( code!=null ) System.out.println(getName()+".lookupTemplate("+name+") found"); return code; }
/** Look up a fully-qualified name. */ public CompiledST lookupTemplate(String name) { if ( name.charAt(0)!='/' ) name = "/"+name; if ( verbose ) System.out.println(getName()+".lookupTemplate("+name+")"); CompiledST code = rawGetTemplate(name); if ( code==NOT_FOUND_ST ) { if ( verbose ) System.out.println(name+" previously seen as not found"); return null; } // try to load from disk and look up again if ( code==null ) code = load(name); if ( code==null ) code = lookupImportedTemplate(name); if ( code==null ) { if ( verbose ) System.out.println(name+" recorded not found"); templates.put(name, NOT_FOUND_ST); } if ( verbose ) if ( code!=null ) System.out.println(getName()+".lookupTemplate("+name+") found"); return code; }
void super_new(InstanceScope scope, String name, Map<String,Object> attrs) { final ST self = scope.st; ST st = null; CompiledST imported = self.impl.nativeGroup.lookupImportedTemplate(name); if ( imported==null ) { errMgr.runTimeError(this, scope, ErrorType.NO_IMPORTED_TEMPLATE, name); st = self.groupThatCreatedThisInstance.createStringTemplateInternally(new CompiledST()); } else { st = imported.nativeGroup.createStringTemplateInternally(imported); st.groupThatCreatedThisInstance = group; } // get n args and store into st's attr list storeArgs(scope, attrs, st); operands[++sp] = st; }
void super_new(InstanceScope scope, String name, Map<String,Object> attrs) { final ST self = scope.st; ST st = null; CompiledST imported = self.impl.nativeGroup.lookupImportedTemplate(name); if ( imported==null ) { errMgr.runTimeError(this, scope, ErrorType.NO_IMPORTED_TEMPLATE, name); st = self.groupThatCreatedThisInstance.createStringTemplateInternally(new CompiledST()); } else { st = imported.nativeGroup.createStringTemplateInternally(imported); st.groupThatCreatedThisInstance = group; } // get n args and store into st's attr list storeArgs(scope, attrs, st); operands[++sp] = st; }
void super_new(ST self, String name, Map<String,Object> attrs) { ST st = null; CompiledST imported = self.impl.nativeGroup.lookupImportedTemplate(name); if ( imported==null ) { errMgr.runTimeError(this, self, current_ip, ErrorType.NO_IMPORTED_TEMPLATE, name); st = self.groupThatCreatedThisInstance.createStringTemplateInternally(new CompiledST()); } else { st = imported.nativeGroup.createStringTemplateInternally(imported); st.groupThatCreatedThisInstance = group; } // get n args and store into st's attr list storeArgs(self, attrs, st); operands[++sp] = st; }
void super_new(InstanceScope scope, String name, int nargs) { final ST self = scope.st; ST st = null; CompiledST imported = self.impl.nativeGroup.lookupImportedTemplate(name); if ( imported==null ) { errMgr.runTimeError(this, scope, ErrorType.NO_IMPORTED_TEMPLATE, name); st = self.groupThatCreatedThisInstance.createStringTemplateInternally(new CompiledST()); } else { st = imported.nativeGroup.getEmbeddedInstanceOf(this, scope, name); st.groupThatCreatedThisInstance = group; } // get n args and store into st's attr list storeArgs(scope, nargs, st); sp -= nargs; operands[++sp] = st; }
void super_new(ST self, String name, int nargs) { ST st = null; CompiledST imported = self.impl.nativeGroup.lookupImportedTemplate(name); if ( imported==null ) { errMgr.runTimeError(this, self, current_ip, ErrorType.NO_IMPORTED_TEMPLATE, name); st = self.groupThatCreatedThisInstance.createStringTemplateInternally(new CompiledST()); } else { st = imported.nativeGroup.getEmbeddedInstanceOf(this, self, current_ip, name); st.groupThatCreatedThisInstance = group; } // get n args and store into st's attr list storeArgs(self, nargs, st); sp -= nargs; operands[++sp] = st; }
void super_new(InstanceScope scope, String name, Map<String,Object> attrs) { final ST self = scope.st; ST st = null; CompiledST imported = self.impl.nativeGroup.lookupImportedTemplate(name); if ( imported==null ) { errMgr.runTimeError(this, scope, ErrorType.NO_IMPORTED_TEMPLATE, name); st = self.groupThatCreatedThisInstance.createStringTemplateInternally(new CompiledST()); } else { st = imported.nativeGroup.createStringTemplateInternally(imported); st.groupThatCreatedThisInstance = group; } // get n args and store into st's attr list storeArgs(scope, attrs, st); operands[++sp] = st; }
void super_new(InstanceScope scope, String name, int nargs) { final ST self = scope.st; ST st = null; CompiledST imported = self.impl.nativeGroup.lookupImportedTemplate(name); if ( imported==null ) { errMgr.runTimeError(this, scope, ErrorType.NO_IMPORTED_TEMPLATE, name); st = self.groupThatCreatedThisInstance.createStringTemplateInternally(new CompiledST()); } else { st = imported.nativeGroup.getEmbeddedInstanceOf(this, scope, name); st.groupThatCreatedThisInstance = group; } // get n args and store into st's attr list storeArgs(scope, nargs, st); sp -= nargs; operands[++sp] = st; }
void super_new(InstanceScope scope, String name, Map<String,Object> attrs) { final ST self = scope.st; ST st = null; CompiledST imported = self.impl.nativeGroup.lookupImportedTemplate(name); if ( imported==null ) { errMgr.runTimeError(this, scope, ErrorType.NO_IMPORTED_TEMPLATE, name); st = self.groupThatCreatedThisInstance.createStringTemplateInternally(new CompiledST()); } else { st = imported.nativeGroup.createStringTemplateInternally(imported); st.groupThatCreatedThisInstance = group; } // get n args and store into st's attr list storeArgs(scope, attrs, st); operands[++sp] = st; }
void super_new(InstanceScope scope, String name, int nargs) { final ST self = scope.st; ST st = null; CompiledST imported = self.impl.nativeGroup.lookupImportedTemplate(name); if ( imported==null ) { errMgr.runTimeError(this, scope, ErrorType.NO_IMPORTED_TEMPLATE, name); st = self.groupThatCreatedThisInstance.createStringTemplateInternally(new CompiledST()); } else { st = imported.nativeGroup.getEmbeddedInstanceOf(this, scope, name); st.groupThatCreatedThisInstance = group; } // get n args and store into st's attr list storeArgs(scope, nargs, st); sp -= nargs; operands[++sp] = st; }
void super_new(InstanceScope scope, String name, Map<String,Object> attrs) { final ST self = scope.st; ST st = null; CompiledST imported = self.impl.nativeGroup.lookupImportedTemplate(name); if ( imported==null ) { errMgr.runTimeError(this, scope, ErrorType.NO_IMPORTED_TEMPLATE, name); st = self.groupThatCreatedThisInstance.createStringTemplateInternally(new CompiledST()); } else { st = imported.nativeGroup.createStringTemplateInternally(imported); st.groupThatCreatedThisInstance = group; } // get n args and store into st's attr list storeArgs(scope, attrs, st); operands[++sp] = st; }
void super_new(InstanceScope scope, String name, Map<String,Object> attrs) { final ST self = scope.st; ST st = null; CompiledST imported = self.impl.nativeGroup.lookupImportedTemplate(name); if ( imported==null ) { errMgr.runTimeError(this, scope, ErrorType.NO_IMPORTED_TEMPLATE, name); st = self.groupThatCreatedThisInstance.createStringTemplateInternally(new CompiledST()); } else { st = imported.nativeGroup.createStringTemplateInternally(imported); st.groupThatCreatedThisInstance = group; } // get n args and store into st's attr list storeArgs(scope, attrs, st); operands[++sp] = st; }
void super_new(InstanceScope scope, String name, Map<String,Object> attrs) { final ST self = scope.st; ST st = null; CompiledST imported = self.impl.nativeGroup.lookupImportedTemplate(name); if ( imported==null ) { errMgr.runTimeError(this, scope, ErrorType.NO_IMPORTED_TEMPLATE, name); st = self.groupThatCreatedThisInstance.createStringTemplateInternally(new CompiledST()); } else { st = imported.nativeGroup.createStringTemplateInternally(imported); st.groupThatCreatedThisInstance = group; } // get n args and store into st's attr list storeArgs(scope, attrs, st); operands[++sp] = st; }
void super_new(InstanceScope scope, String name, int nargs) { final ST self = scope.st; ST st = null; CompiledST imported = self.impl.nativeGroup.lookupImportedTemplate(name); if ( imported==null ) { errMgr.runTimeError(this, scope, ErrorType.NO_IMPORTED_TEMPLATE, name); st = self.groupThatCreatedThisInstance.createStringTemplateInternally(new CompiledST()); } else { st = imported.nativeGroup.getEmbeddedInstanceOf(this, scope, name); st.groupThatCreatedThisInstance = group; } // get n args and store into st's attr list storeArgs(scope, nargs, st); sp -= nargs; operands[++sp] = st; }
void super_new(InstanceScope scope, String name, int nargs) { final ST self = scope.st; ST st = null; CompiledST imported = self.impl.nativeGroup.lookupImportedTemplate(name); if ( imported==null ) { errMgr.runTimeError(this, scope, ErrorType.NO_IMPORTED_TEMPLATE, name); st = self.groupThatCreatedThisInstance.createStringTemplateInternally(new CompiledST()); } else { st = imported.nativeGroup.getEmbeddedInstanceOf(this, scope, name); st.groupThatCreatedThisInstance = group; } // get n args and store into st's attr list storeArgs(scope, nargs, st); sp -= nargs; operands[++sp] = st; }
void super_new(InstanceScope scope, String name, int nargs) { final ST self = scope.st; ST st = null; CompiledST imported = self.impl.nativeGroup.lookupImportedTemplate(name); if ( imported==null ) { errMgr.runTimeError(this, scope, ErrorType.NO_IMPORTED_TEMPLATE, name); st = self.groupThatCreatedThisInstance.createStringTemplateInternally(new CompiledST()); } else { st = imported.nativeGroup.getEmbeddedInstanceOf(this, scope, name); st.groupThatCreatedThisInstance = group; } // get n args and store into st's attr list storeArgs(scope, nargs, st); sp -= nargs; operands[++sp] = st; }