Package net.sourceforge.pmd.cpd.impl
Class AntlrTokenizer
- java.lang.Object
-
- net.sourceforge.pmd.cpd.impl.TokenizerBase<AntlrToken>
-
- net.sourceforge.pmd.cpd.impl.AntlrTokenizer
-
- All Implemented Interfaces:
Tokenizer
public abstract class AntlrTokenizer extends TokenizerBase<AntlrToken>
Generic implementation of aTokenizeruseful to any Antlr grammar.
-
-
Constructor Summary
Constructors Constructor Description AntlrTokenizer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.antlr.v4.runtime.LexergetLexerForSource(org.antlr.v4.runtime.CharStream charStream)protected TokenManager<AntlrToken>makeLexerImpl(TextDocument doc)-
Methods inherited from class net.sourceforge.pmd.cpd.impl.TokenizerBase
filterTokenStream, getImage, processToken, tokenize
-
-
-
-
Method Detail
-
makeLexerImpl
protected final TokenManager<AntlrToken> makeLexerImpl(TextDocument doc) throws IOException
- Specified by:
makeLexerImplin classTokenizerBase<AntlrToken>- Throws:
IOException
-
getLexerForSource
protected abstract org.antlr.v4.runtime.Lexer getLexerForSource(org.antlr.v4.runtime.CharStream charStream)
-
-