Examples of MatchToken


Examples of org.antlr.v4.codegen.model.MatchToken

    return list(invokeOp, listLabelOp);
  }

  @Override
  public List<SrcOp> tokenRef(GrammarAST ID, GrammarAST labelAST, GrammarAST args) {
    MatchToken matchOp = new MatchToken(this, (TerminalAST) ID);
    if ( labelAST!=null ) {
      String label = labelAST.getText();
      RuleFunction rf = getCurrentRuleFunction();
      if ( labelAST.parent.getType() == ANTLRParser.PLUS_ASSIGN ) {
        // add Token _X and List<Token> X decls
View Full Code Here

Examples of org.structr.common.error.MatchToken

    if (value != null && pattern.matcher(value).matches()) {
      return true;
    }

    errorBuffer.add(object.getType(), new MatchToken(key, value, this.pattern.pattern()));
    return false;
  }
View Full Code Here

Examples of org.structr.common.error.MatchToken

    String value = node.getProperty(key);
    boolean matches = value != null && value.matches(expression);
   
    if (!matches) {
      errorBuffer.add(node.getType(), new MatchToken(key, value, expression));
    }
   
    return matches;
   
  }
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.