Package org.antlr.stringtemplate

Examples of org.antlr.stringtemplate.CommonGroupLoader.loadGroup()


 
  public HTMLSpeechPageWriter()
  {
    //our stringtemplate template files are in our jar file
    CommonGroupLoader loader = new CommonGroupLoader("org/speakright/core/render/html/templates", this);
    m_templateGroup = loader.loadGroup("html"); //load html.stg   
  }
 
  //interface StringTemplateErrorListener
  int m_errCount;
  public void error(String msg, Throwable e)
View Full Code Here


 
  public VoiceXMLSpeechPageWriter()
  {
    //our stringtemplate template files are in our jar file
    CommonGroupLoader loader = new CommonGroupLoader("org/speakright/core/render/voicexml/templates", this);
    m_templateGroup = loader.loadGroup("speakright"); //load speakright.stg   
  }
 
  //interface StringTemplateErrorListener
  int m_errCount;
  public void error(String msg, Throwable e)
View Full Code Here

 
  public String generateBaseClass(String sroName, String packageName, String xmlPath)
  {
    //our stringtemplate template files are in our jar file
    CommonGroupLoader loader = new CommonGroupLoader("org/speakright/tools/srogen/templates", this);
    StringTemplateGroup group = loader.loadGroup("srogen"); //load mgen.stg   
   
    StringTemplate t = group.getInstanceOf("genclass");
    t.setAttribute("package", packageName + ".gen");
//    String sroName = "SRONumber";
    t.setAttribute("sroName", sroName);
View Full Code Here

 
  public String generatePromptsXML(String sroName, String xmlPath)
  {
    //our stringtemplate template files are in our jar file
    CommonGroupLoader loader = new CommonGroupLoader("org/speakright/tools/srogen/templates", this);
    StringTemplateGroup group = loader.loadGroup("srogen"); //load mgen.stg   
   
    StringTemplate t = group.getInstanceOf("genxml");
    t.setAttribute("sroName", sroName);
   
    ArrayList<PromptValue> promptL = readPrompts(xmlPath);
View Full Code Here

//    hello.setAttribute("name", "World");
//    log(hello.toString());

    //our stringtemplate template files are in our jar file
    CommonGroupLoader loader = new CommonGroupLoader("org/speakright/tools/mgen/templates", this);
    StringTemplateGroup group = loader.loadGroup("mgen"); //load mgen.stg   
   
    StringTemplate t = group.getInstanceOf("modelclass");
    t.setAttribute("package", packageName);
    t.setAttribute("className", "Model");
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.