Package net.sourceforge.pmd.cpd
Interface Tokenizer
-
- All Known Implementing Classes:
AntlrTokenizer,AnyTokenizer,JavaCCTokenizer,TokenizerBase
public interface TokenizerTokenizes a source file into tokens consumable by CPD.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static voidtokenize(Tokenizer tokenizer, TextDocument textDocument, Tokens tokens)Wraps a call totokenize(TextDocument, TokenFactory)to properly create and close the token factory.voidtokenize(TextDocument document, TokenFactory tokens)Tokenize the source code and record tokens using the provided token factory.
-
-
-
Method Detail
-
tokenize
void tokenize(TextDocument document, TokenFactory tokens) throws IOException
Tokenize the source code and record tokens using the provided token factory.- Throws:
IOException
-
tokenize
static void tokenize(Tokenizer tokenizer, TextDocument textDocument, Tokens tokens) throws IOException
Wraps a call totokenize(TextDocument, TokenFactory)to properly create and close the token factory.- Throws:
IOException
-
-