Package net.sourceforge.pmd.cpd.impl
Class AntlrCpdLexer
- java.lang.Object
-
- net.sourceforge.pmd.cpd.impl.CpdLexerBase<AntlrToken>
-
- net.sourceforge.pmd.cpd.impl.AntlrCpdLexer
-
- All Implemented Interfaces:
CpdLexer
public abstract class AntlrCpdLexer extends CpdLexerBase<AntlrToken>
Generic implementation of aCpdLexeruseful to any Antlr grammar.
-
-
Constructor Summary
Constructors Constructor Description AntlrCpdLexer()
-
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.CpdLexerBase
filterTokenStream, getImage, processToken, tokenize
-
-
-
-
Method Detail
-
makeLexerImpl
protected final TokenManager<AntlrToken> makeLexerImpl(TextDocument doc) throws IOException
- Specified by:
makeLexerImplin classCpdLexerBase<AntlrToken>- Throws:
IOException
-
getLexerForSource
protected abstract org.antlr.v4.runtime.Lexer getLexerForSource(org.antlr.v4.runtime.CharStream charStream)
-
-