Class PythonCpdLexer
- java.lang.Object
-
- net.sourceforge.pmd.cpd.impl.CpdLexerBase<JavaccToken>
-
- net.sourceforge.pmd.cpd.impl.JavaccCpdLexer
-
- net.sourceforge.pmd.lang.python.cpd.PythonCpdLexer
-
- All Implemented Interfaces:
CpdLexer
public class PythonCpdLexer extends JavaccCpdLexer
The Python tokenizer.Note: This class has been called PythonTokenizer in PMD 6
.
-
-
Constructor Summary
Constructors Constructor Description PythonCpdLexer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getImage(JavaccToken token)
protected TokenManager<JavaccToken>
makeLexerImpl(TextDocument doc)
-
Methods inherited from class net.sourceforge.pmd.cpd.impl.CpdLexerBase
filterTokenStream, processToken, tokenize
-
-
-
-
Method Detail
-
makeLexerImpl
protected TokenManager<JavaccToken> makeLexerImpl(TextDocument doc)
- Specified by:
makeLexerImpl
in classCpdLexerBase<JavaccToken>
-
getImage
protected String getImage(JavaccToken token)
- Overrides:
getImage
in classCpdLexerBase<JavaccToken>
-
-