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