Package net.sourceforge.pmd.cpd
Class CsTokenizer
- java.lang.Object
-
- net.sourceforge.pmd.cpd.AntlrTokenizer
-
- net.sourceforge.pmd.cpd.CsTokenizer
-
- All Implemented Interfaces:
Tokenizer
public class CsTokenizer extends AntlrTokenizer
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 CsTokenizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AntlrTokenManager
getLexerForSource(SourceCode sourceCode)
protected AntlrTokenFilter
getTokenFilter(AntlrTokenManager tokenManager)
void
setIgnoreLiteralSequences(boolean ignoreLiteralSequences)
void
setIgnoreUsings(boolean ignoreUsings)
void
setProperties(Properties properties)
Sets the possible options for the C# tokenizer.-
Methods inherited from class net.sourceforge.pmd.cpd.AntlrTokenizer
getCharStreamFromSourceCode, tokenize
-
-
-
-
Method Detail
-
setProperties
public void setProperties(Properties properties)
Sets the possible options for the C# tokenizer.- Parameters:
properties
- the properties- See Also:
Tokenizer.IGNORE_USINGS
,Tokenizer.OPTION_IGNORE_LITERAL_SEQUENCES
-
setIgnoreUsings
public void setIgnoreUsings(boolean ignoreUsings)
-
setIgnoreLiteralSequences
public void setIgnoreLiteralSequences(boolean ignoreLiteralSequences)
-
getLexerForSource
protected AntlrTokenManager getLexerForSource(SourceCode sourceCode)
- Specified by:
getLexerForSource
in classAntlrTokenizer
-
getTokenFilter
protected AntlrTokenFilter getTokenFilter(AntlrTokenManager tokenManager)
- Overrides:
getTokenFilter
in classAntlrTokenizer
-
-