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