class AdaLexer extends JFlexSymbolMatcher
        implements JFlexJointLexer, Resettable {

    /**
     * Writes {@code value} to output -- if it contains any EOLs then the
     * {@link JFlexJointLexer#startNewLine()} is called in lieu of outputting
     * EOL.
     */
    public void takeLiteral(String value, String className)
            throws IOException {<FILL_FUNCTION_BODY>}

    /**
     * Calls {@link #phLOC()} if the yystate is not SCOMMENT.
     */
    public void chkLOC() {
        if (yystate() != SCOMMENT()) {
            phLOC();
        }
    }

    /**
     * Subclasses must override to get the constant value created by JFlex to
     * represent SCOMMENT.
     */
    @SuppressWarnings("java:S100")
    abstract int SCOMMENT();
}


        disjointSpan(className);

        int off = 0;
        do {
            int w = 1;
            int i;
            int ri = value.indexOf("\r", off);
            int ni = value.indexOf("\n", off);
            if (ri == -1 && ni == -1) {
                String sub = value.substring(off);
                offer(sub);
                break;
            }
            if (ri != -1 && ni != -1) {
                if (ri < ni) {
                    i = ri;
                    if (value.charAt(ri) == '\r' && value.charAt(ni) == '\n') {
                        w = 2;
                    }
                } else {
                    i = ni;
                }
            } else if (ri != -1) {
                i = ri;
            } else {
                i = ni;
            }

            String sub = value.substring(off, i);
            offer(sub);
            disjointSpan(null);
            startNewLine();
            disjointSpan(className);
            off = i + w;
        } while (off < value.length());

        disjointSpan(null);
    
<methods>public non-sealed void <init>() ,public void clearNonSymbolMatchedListener() ,public void clearSymbolMatchedListener() ,public void setNonSymbolMatchedListener(org.opengrok.indexer.analysis.NonSymbolMatchedListener) ,public void setSymbolMatchedListener(org.opengrok.indexer.analysis.SymbolMatchedListener) <variables>private java.lang.String disjointSpanClassName,private org.opengrok.indexer.analysis.NonSymbolMatchedListener nonSymbolListener,private org.opengrok.indexer.analysis.SymbolMatchedListener symbolListener