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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class net.sourceforge.pmd.cpd.impl.CpdLexerBase<net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken>
    • getImage

      protected String getImage(net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken token)
      Overrides:
      getImage in class net.sourceforge.pmd.cpd.impl.CpdLexerBase<net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken>