Package net.sourceforge.pmd.cpd.impl
Class CpdLexerBase<T extends GenericToken<T>>
java.lang.Object
net.sourceforge.pmd.cpd.impl.CpdLexerBase<T>
- All Implemented Interfaces:
CpdLexer
- Direct Known Subclasses:
AntlrCpdLexer,JavaccCpdLexer
Generic base class for a
CpdLexer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TokenManager<T>filterTokenStream(TokenManager<T> tokenManager) protected Stringprotected abstract TokenManager<T>protected voidprocessToken(TokenFactory tokenEntries, T currentToken) final voidtokenize(TextDocument document, TokenFactory tokens) Tokenize the source code and record tokens using the provided token factory.
-
Constructor Details
-
CpdLexerBase
public CpdLexerBase()
-
-
Method Details
-
makeLexerImpl
- Throws:
IOException
-
filterTokenStream
-
processToken
-
getImage
-
tokenize
Description copied from interface:CpdLexerTokenize the source code and record tokens using the provided token factory.- Specified by:
tokenizein interfaceCpdLexer- Throws:
IOException
-