/** Is this template defined in this group or from this group below? * Names must be absolute, fully-qualified names like {@code /a/b}. */ public boolean isDefined(String name) { return lookupTemplate(name)!=null; }
/** Is this template defined in this group or from this group below? * Names must be absolute, fully-qualified names like {@code /a/b}. */ public boolean isDefined(String name) { return lookupTemplate(name)!=null; }
/** Is this template defined in this group or from this group below? * Names must be absolute, fully-qualified names like {@code /a/b}. */ public boolean isDefined(String name) { return lookupTemplate(name)!=null; }
/** Is this template defined in this group or from this group below? * Names must be absolute, fully-qualified names like /a/b */ public boolean isDefined(String name) { return lookupTemplate(name)!=null; }
/** Is this template defined in this group or from this group below? * Names must be absolute, fully-qualified names like {@code /a/b}. */ public boolean isDefined(String name) { return lookupTemplate(name)!=null; }
/** Is this template defined in this group or from this group below? * Names must be absolute, fully-qualified names like {@code /a/b}. */ public boolean isDefined(String name) { return lookupTemplate(name)!=null; }
/** Is this template defined in this group or from this group below? * Names must be absolute, fully-qualified names like {@code /a/b}. */ public boolean isDefined(String name) { return lookupTemplate(name)!=null; }
/** Is this template defined in this group or from this group below? * Names must be absolute, fully-qualified names like {@code /a/b}. */ public boolean isDefined(String name) { return lookupTemplate(name)!=null; }
protected CompiledST lookupImportedTemplate(String name) { if ( imports==null ) return null; for (STGroup g : imports) { CompiledST code = g.lookupTemplate(name); if ( code!=null ) { if ( verbose ) System.out.println("found "+name+" in "+g.getName()); return code; } } if ( verbose ) System.out.println(name+"not found in imports"); return null; }
/** The primary means of getting an instance of a template from this * group. Names must be absolute, fully-qualified names like {@code /a/b}. */ public ST getInstanceOf(String name) { if ( name==null ) return null; if ( verbose ) System.out.println(getName()+".getInstanceOf("+name+")"); if ( name.charAt(0)!='/' ) name = "/"+name; CompiledST c = lookupTemplate(name); if ( c!=null ) { return createStringTemplate(c); } return null; }
/** The primary means of getting an instance of a template from this * group. Names must be absolute, fully-qualified names like {@code /a/b}. */ public ST getInstanceOf(String name) { if ( name==null ) return null; if ( verbose ) System.out.println(getName()+".getInstanceOf("+name+")"); if ( name.charAt(0)!='/' ) name = "/"+name; CompiledST c = lookupTemplate(name); if ( c!=null ) { return createStringTemplate(c); } return null; }
/** The primary means of getting an instance of a template from this * group. Names must be absolute, fully-qualified names like {@code /a/b}. */ public ST getInstanceOf(String name) { if ( name==null ) return null; if ( verbose ) System.out.println(getName()+".getInstanceOf("+name+")"); if ( name.charAt(0)!='/' ) name = "/"+name; CompiledST c = lookupTemplate(name); if ( c!=null ) { return createStringTemplate(c); } return null; }
/** The primary means of getting an instance of a template from this * group. Names must be absolute, fully-qualified names like {@code /a/b}. */ public ST getInstanceOf(String name) { if ( name==null ) return null; if ( verbose ) System.out.println(getName()+".getInstanceOf("+name+")"); if ( name.charAt(0)!='/' ) name = "/"+name; CompiledST c = lookupTemplate(name); if ( c!=null ) { return createStringTemplate(c); } return null; }
/** The primary means of getting an instance of a template from this * group. Names must be absolute, fully-qualified names like {@code /a/b}. */ public ST getInstanceOf(String name) { if ( name==null ) return null; if ( verbose ) System.out.println(getName()+".getInstanceOf("+name+")"); if ( name.charAt(0)!='/' ) name = "/"+name; CompiledST c = lookupTemplate(name); if ( c!=null ) { return createStringTemplate(c); } return null; }
/** The primary means of getting an instance of a template from this * group. Names must be absolute, fully-qualified names like a/b */ public ST getInstanceOf(String name) { if ( verbose ) System.out.println("getInstanceOf("+name+") in group "+getName()); if ( name==null ) return null; CompiledST c = lookupTemplate(name); if ( c!=null ) { return createStringTemplate(c); } return null; }
protected CompiledST lookupImportedTemplate(String name) { if ( imports.size()==0 ) return null; for (STGroup g : imports) { if ( verbose ) System.out.println("checking "+g.getName()+" for imported "+name); CompiledST code = g.lookupTemplate(name); if ( code!=null ) { if ( verbose ) System.out.println(g.getName()+".lookupImportedTemplate("+name+") found"); return code; } } if ( verbose ) System.out.println(name+" not found in "+getName()+" imports"); return null; }
protected CompiledST lookupImportedTemplate(String name) { if ( imports.size()==0 ) return null; for (STGroup g : imports) { if ( verbose ) System.out.println("checking "+g.getName()+" for imported "+name); CompiledST code = g.lookupTemplate(name); if ( code!=null ) { if ( verbose ) System.out.println(g.getName()+".lookupImportedTemplate("+name+") found"); return code; } } if ( verbose ) System.out.println(name+" not found in "+getName()+" imports"); return null; }
protected CompiledST lookupImportedTemplate(String name) { if ( imports.size()==0 ) return null; for (STGroup g : imports) { if ( verbose ) System.out.println("checking "+g.getName()+" for imported "+name); CompiledST code = g.lookupTemplate(name); if ( code!=null ) { if ( verbose ) System.out.println(g.getName()+".lookupImportedTemplate("+name+") found"); return code; } } if ( verbose ) System.out.println(name+" not found in "+getName()+" imports"); return null; }
protected CompiledST lookupImportedTemplate(String name) { if ( imports.size()==0 ) return null; for (STGroup g : imports) { if ( verbose ) System.out.println("checking "+g.getName()+" for imported "+name); CompiledST code = g.lookupTemplate(name); if ( code!=null ) { if ( verbose ) System.out.println(g.getName()+".lookupImportedTemplate("+name+") found"); return code; } } if ( verbose ) System.out.println(name+" not found in "+getName()+" imports"); return null; }
protected CompiledST lookupImportedTemplate(String name) { if ( imports.size()==0 ) return null; for (STGroup g : imports) { if ( verbose ) System.out.println("checking "+g.getName()+" for imported "+name); CompiledST code = g.lookupTemplate(name); if ( code!=null ) { if ( verbose ) System.out.println(g.getName()+".lookupImportedTemplate("+name+") found"); return code; } } if ( verbose ) System.out.println(name+" not found in "+getName()+" imports"); return null; }