Package net.sourceforge.pmd.cpd
Class CPPTokenizer
- java.lang.Object
-
- net.sourceforge.pmd.cpd.internal.JavaCCTokenizer
-
- net.sourceforge.pmd.cpd.CPPTokenizer
-
- All Implemented Interfaces:
Tokenizer
public class CPPTokenizer extends net.sourceforge.pmd.cpd.internal.JavaCCTokenizer
The C++ tokenizer.
-
-
Field Summary
-
Fields inherited from interface net.sourceforge.pmd.cpd.Tokenizer
DEFAULT_SKIP_BLOCKS_PATTERN, IGNORE_ANNOTATIONS, IGNORE_IDENTIFIERS, IGNORE_LITERALS, IGNORE_USINGS, OPTION_IGNORE_LITERAL_SEQUENCES, OPTION_SKIP_BLOCKS, OPTION_SKIP_BLOCKS_PATTERN
-
-
Constructor Summary
Constructors Constructor Description CPPTokenizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TokenManager
getLexerForSource(SourceCode sourceCode)
protected TokenFilter
getTokenFilter(TokenManager tokenManager)
void
setProperties(Properties properties)
Sets the possible options for the C++ tokenizer.
-
-
-
Method Detail
-
setProperties
public void setProperties(Properties properties)
Sets the possible options for the C++ tokenizer.- Parameters:
properties
- the properties- See Also:
Tokenizer.OPTION_SKIP_BLOCKS
,Tokenizer.OPTION_SKIP_BLOCKS_PATTERN
,Tokenizer.OPTION_IGNORE_LITERAL_SEQUENCES
-
getLexerForSource
protected TokenManager getLexerForSource(SourceCode sourceCode)
- Specified by:
getLexerForSource
in classnet.sourceforge.pmd.cpd.internal.JavaCCTokenizer
-
getTokenFilter
protected TokenFilter getTokenFilter(TokenManager tokenManager)
- Overrides:
getTokenFilter
in classnet.sourceforge.pmd.cpd.internal.JavaCCTokenizer
-
-