Package net.sourceforge.pmd.cpd.impl
Class JavaCCTokenFilter
- java.lang.Object
-
- net.sourceforge.pmd.cpd.impl.BaseTokenFilter<JavaccToken>
-
- net.sourceforge.pmd.cpd.impl.JavaCCTokenFilter
-
- All Implemented Interfaces:
TokenManager<JavaccToken>
public class JavaCCTokenFilter extends BaseTokenFilter<JavaccToken>
A generic filter for JavaCC-based token managers that allows to use comments to enable / disable analysis of parts of the stream
-
-
Constructor Summary
Constructors Constructor Description JavaCCTokenFilter(TokenManager<JavaccToken> tokenManager)
Creates a new JavaCCTokenFilter
-
Method Summary
-
Methods inherited from class net.sourceforge.pmd.cpd.impl.BaseTokenFilter
analyzeToken, analyzeTokens, getNextToken, isLanguageSpecificDiscarding, shouldStopProcessing
-
-
-
-
Constructor Detail
-
JavaCCTokenFilter
public JavaCCTokenFilter(TokenManager<JavaccToken> tokenManager)
Creates a new JavaCCTokenFilter- Parameters:
tokenManager
- The token manager from which to retrieve tokens to be filtered
-
-