Class JavaCpdLexer

  • All Implemented Interfaces:
    net.sourceforge.pmd.cpd.CpdLexer

    public class JavaCpdLexer
    extends net.sourceforge.pmd.cpd.impl.JavaccCpdLexer

    Note: This class has been called JavaTokenizer in PMD 6

    .
    • Constructor Summary

      Constructors 
      Constructor Description
      JavaCpdLexer​(net.sourceforge.pmd.lang.java.internal.JavaLanguageProperties properties)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected net.sourceforge.pmd.lang.TokenManager<net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken> filterTokenStream​(net.sourceforge.pmd.lang.TokenManager<net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken> tokenManager)  
      protected net.sourceforge.pmd.lang.TokenManager<net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken> makeLexerImpl​(net.sourceforge.pmd.lang.document.TextDocument doc)  
      protected void processToken​(net.sourceforge.pmd.cpd.TokenFactory tokenEntries, net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken javaToken)  
      • Methods inherited from class net.sourceforge.pmd.cpd.impl.CpdLexerBase

        getImage, tokenize
    • Constructor Detail

      • JavaCpdLexer

        public JavaCpdLexer​(net.sourceforge.pmd.lang.java.internal.JavaLanguageProperties properties)
    • Method Detail

      • 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>
      • filterTokenStream

        protected net.sourceforge.pmd.lang.TokenManager<net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken> filterTokenStream​(net.sourceforge.pmd.lang.TokenManager<net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken> tokenManager)
        Overrides:
        filterTokenStream in class net.sourceforge.pmd.cpd.impl.CpdLexerBase<net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken>
      • processToken

        protected void processToken​(net.sourceforge.pmd.cpd.TokenFactory tokenEntries,
                                    net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken javaToken)
        Overrides:
        processToken in class net.sourceforge.pmd.cpd.impl.CpdLexerBase<net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken>