@Override protected void visit(RENode.Any expr) throws MalformedRouteException { RENode.CharacterClass repl = new RENode.CharacterClass(new RENode.CharacterClassExpr.Not(new RENode.CharacterClassExpr.Char('/'))); repl.setQuantifier(expr.getQuantifier()); expr.replaceBy(repl); }
public RENode.Atom parseCharacter() throws SyntaxException { if (lexer.next(Kind.ANY)) { return new RENode.Any(); } else { RENode.Atom atom = parseCharacterLiteral(); if (atom == null) { atom = parseCharacterClass(); } return atom; } }
protected void visit(RENode.Char expr) throws IOException { Literal.escapeTo(expr.getValue(), appendable); if (expr.getQuantifier() != null) { expr.getQuantifier().toString(appendable); } }
protected void visit(RENode.CharacterClassExpr.Not expr) throws E { RENode.CharacterClassExpr negated = expr.getNegated(); if (negated != null) { negated.accept(this); } }
@Override protected void visit(RENode.Any expr) throws MalformedRouteException { RENode.CharacterClass repl = new RENode.CharacterClass(new RENode.CharacterClassExpr.Not(new RENode.CharacterClassExpr.Char('/'))); repl.setQuantifier(expr.getQuantifier()); expr.replaceBy(repl); }
public RENode.Atom parseCharacter() throws SyntaxException { if (lexer.next(Kind.ANY)) { return new RENode.Any(); } else { RENode.Atom atom = parseCharacterLiteral(); if (atom == null) { atom = parseCharacterClass(); } return atom; } }
protected void visit(RENode.Char expr) throws IOException { Literal.escapeTo(expr.getValue(), appendable); if (expr.getQuantifier() != null) { expr.getQuantifier().toString(appendable); } }
@Override protected void visit(RENode.Any expr) throws MalformedRouteException { RENode.CharacterClass repl = new RENode.CharacterClass(new RENode.CharacterClassExpr.Not(new RENode.CharacterClassExpr.Char('/'))); repl.setQuantifier(expr.getQuantifier()); expr.replaceBy(repl); }
@Override protected void visit(RENode.Any expr) throws MalformedRouteException { RENode.CharacterClass repl = new RENode.CharacterClass(new RENode.CharacterClassExpr.Not(new RENode.CharacterClassExpr.Char('/'))); repl.setQuantifier(expr.getQuantifier()); expr.replaceBy(repl); }