Package net.sourceforge.pmd.cpd
Class JavaTokenizer
- java.lang.Object
-
- net.sourceforge.pmd.cpd.internal.JavaCCTokenizer
-
- net.sourceforge.pmd.cpd.JavaTokenizer
-
- All Implemented Interfaces:
Tokenizer
public class JavaTokenizer extends net.sourceforge.pmd.cpd.internal.JavaCCTokenizer
-
-
Field Summary
Fields Modifier and Type Field Description static StringCPD_ENDstatic StringCPD_START-
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 JavaTokenizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TokenManagergetLexerForSource(SourceCode sourceCode)protected TokenFiltergetTokenFilter(TokenManager tokenManager)protected TokenEntryprocessToken(Tokens tokenEntries, GenericToken currentToken, String fileName)voidsetIgnoreAnnotations(boolean ignoreAnnotations)voidsetIgnoreIdentifiers(boolean ignore)voidsetIgnoreLiterals(boolean ignore)voidsetProperties(Properties properties)voidtokenize(SourceCode sourceCode, Tokens tokenEntries)
-
-
-
Field Detail
-
CPD_START
public static final String CPD_START
- See Also:
- Constant Field Values
-
CPD_END
public static final String CPD_END
- See Also:
- Constant Field Values
-
-
Method Detail
-
setProperties
public void setProperties(Properties properties)
-
tokenize
public void tokenize(SourceCode sourceCode, Tokens tokenEntries) throws IOException
- Specified by:
tokenizein interfaceTokenizer- Overrides:
tokenizein classnet.sourceforge.pmd.cpd.internal.JavaCCTokenizer- Throws:
IOException
-
getLexerForSource
protected TokenManager getLexerForSource(SourceCode sourceCode)
- Specified by:
getLexerForSourcein classnet.sourceforge.pmd.cpd.internal.JavaCCTokenizer
-
getTokenFilter
protected TokenFilter getTokenFilter(TokenManager tokenManager)
- Overrides:
getTokenFilterin classnet.sourceforge.pmd.cpd.internal.JavaCCTokenizer
-
processToken
protected TokenEntry processToken(Tokens tokenEntries, GenericToken currentToken, String fileName)
- Overrides:
processTokenin classnet.sourceforge.pmd.cpd.internal.JavaCCTokenizer
-
setIgnoreLiterals
public void setIgnoreLiterals(boolean ignore)
-
setIgnoreIdentifiers
public void setIgnoreIdentifiers(boolean ignore)
-
setIgnoreAnnotations
public void setIgnoreAnnotations(boolean ignoreAnnotations)
-
-