Package urban.transformers

Examples of urban.transformers.RuleToGeneratorTransformer


  /**
   * @return returns the generator that this line represents.
   */
  public Generator getGenerator() {
    return new RuleToGeneratorTransformer().transform(new Rule(null, lhs, rhs, true, 0.0, 0.0));
  }
View Full Code Here


   * @return generator constructed from string
   */
  public static Generator createGeneratorFromString(String string){
    try {
      Rule rule = UrbanParser.parse(string + "@ 0,0\n").rule();
      return new RuleToGeneratorTransformer().transform(rule);
    } catch (RecognitionException e) {
      e.printStackTrace();
      return null;
    }
  }
View Full Code Here

TOP

Related Classes of urban.transformers.RuleToGeneratorTransformer

Copyright © 2018 www.massapicom. 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.