Examples of RulePropertyRef


Examples of org.antlr.v4.codegen.model.chunk.RulePropertyRef

  // $text
  RulePropertyRef getRulePropertyRef(Token prop) {
    try {
      Class<? extends RulePropertyRef> c = thisRulePropToModelMap.get(prop.getText());
      Constructor<? extends RulePropertyRef> ctor = c.getConstructor(StructDecl.class, String.class);
      RulePropertyRef ref =
        ctor.newInstance(nodeContext, getRuleLabel(prop.getText()));
      return ref;
    }
    catch (Exception e) {
      factory.getGrammar().tool.errMgr.toolError(ErrorType.INTERNAL_ERROR, e);
View Full Code Here

Examples of org.antlr.v4.codegen.model.chunk.RulePropertyRef

  RulePropertyRef getRulePropertyRef(Token x, Token prop) {
    Grammar g = factory.getGrammar();
    try {
      Class<? extends RulePropertyRef> c = rulePropToModelMap.get(prop.getText());
      Constructor<? extends RulePropertyRef> ctor = c.getConstructor(StructDecl.class, String.class);
      RulePropertyRef ref =
        ctor.newInstance(nodeContext, getRuleLabel(x.getText()));
      return ref;
    }
    catch (Exception e) {
      g.tool.errMgr.toolError(ErrorType.INTERNAL_ERROR, e, prop.getText());
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.