public class KeywordsTokenizer extends NotThreadSafeTokenizer
Constructor and Description |
---|
KeywordsTokenizer(String tagBefore,
String tagAfter,
Set<String> keywords) |
KeywordsTokenizer(String tagBefore,
String tagAfter,
Set<String> keywords,
String regex) |
KeywordsTokenizer(String tagBefore,
String tagAfter,
String... keywords) |
Modifier and Type | Method and Description |
---|---|
KeywordsTokenizer |
clone() |
boolean |
consume(CodeReader code,
HtmlCodeBuilder codeBuilder)
Tries to consume the character stream at the current reading cursor position (provided by the
CodeReader ). |
void |
setCaseInsensitive(boolean caseInsensitive) |
public KeywordsTokenizer(String tagBefore, String tagAfter, Set<String> keywords)
public KeywordsTokenizer(String tagBefore, String tagAfter, Set<String> keywords, String regex)
public KeywordsTokenizer(String tagBefore, String tagAfter, String... keywords)
public boolean consume(CodeReader code, HtmlCodeBuilder codeBuilder)
Channel
CodeReader
). If
the character stream is consumed the method must return true and the OUTPUT object can be fed.consume
in class Channel<HtmlCodeBuilder>
code
- the handle on the input character streamcodeBuilder
- the OUTPUT that can be optionally fed by the Channelpublic void setCaseInsensitive(boolean caseInsensitive)
public KeywordsTokenizer clone()
clone
in class NotThreadSafeTokenizer
Copyright © 2009-2012 SonarSource. All Rights Reserved.