forked from phoedos/pmd
Internalize the AntrlTokenizer
This commit is contained in:
@ -8,13 +8,18 @@ import org.antlr.v4.runtime.CharStream;
|
||||
import org.antlr.v4.runtime.CharStreams;
|
||||
import org.antlr.v4.runtime.Token;
|
||||
|
||||
import net.sourceforge.pmd.annotation.InternalApi;
|
||||
import net.sourceforge.pmd.cpd.token.AntlrToken;
|
||||
import net.sourceforge.pmd.lang.antlr.AntlrTokenManager;
|
||||
import net.sourceforge.pmd.lang.ast.TokenMgrError;
|
||||
|
||||
/**
|
||||
* Generic implementation of a {@link Tokenizer} useful to any Antlr grammar.
|
||||
*
|
||||
* @deprecated This is an internal API.
|
||||
*/
|
||||
@Deprecated
|
||||
@InternalApi
|
||||
public abstract class AntlrTokenizer implements Tokenizer {
|
||||
|
||||
protected abstract AntlrTokenManager getLexerForSource(SourceCode sourceCode);
|
||||
|
Reference in New Issue
Block a user