Package org.parboiled.matchervisitors

Examples of org.parboiled.matchervisitors.HasCustomLabelVisitor


     * @return the matcher whose label is best for presentation in "expected" strings
     */
    public static Matcher findProperLabelMatcher(@NotNull MatcherPath path, int errorIndex) {
        Matcher found = path.parent != null ? findProperLabelMatcher(path.parent, errorIndex) : null;
        if (found != null) return found;
        if (path.element.startIndex == errorIndex && path.element.matcher.accept(new HasCustomLabelVisitor())) {
            return path.element.matcher;
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of org.parboiled.matchervisitors.HasCustomLabelVisitor

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.