All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.yecht.BadAnchorHandler Maven / Gradle / Ivy

/*
 * See LICENSE file in distribution for copyright and licensing information.
 */
package org.yecht;

/**
 *
 * @author Ola Bini
 */
public interface BadAnchorHandler {
    Node handle(Parser p, String anchor);

    public static class Default implements BadAnchorHandler {
        public Node handle(Parser p, String anchor) {
            //            System.err.println("existing anchors: " + p.anchors);
            System.err.println("Bad anchor at [Line " + p.linect + ", Col " + (p.cursor - p.lineptr) + "]: " + anchor);
            return null;
        }
    }
}// BadAnchorHandler




© 2015 - 2025 Weber Informatics LLC | Privacy Policy