|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.duplications.token.TokenChunker.Builder
public static final class TokenChunker.Builder
Note that order is important, e.g.
token("A").ignore("A")
for the input string "A" will produce token, whereas
ignore("A").token("A")
will not.
Method Summary | |
---|---|
TokenChunker |
build()
|
TokenChunker.Builder |
ignore(String regularExpression)
Defines that sequence of characters must be ignored, if it matches specified regular expression. |
TokenChunker.Builder |
token(String regularExpression)
Defines that sequence of characters, which is matched specified regular expression, is a token. |
TokenChunker.Builder |
token(String regularExpression,
String normalizationValue)
Defines that sequence of characters, which is matched specified regular expression, is a token with specified value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public TokenChunker build()
public TokenChunker.Builder ignore(String regularExpression)
public TokenChunker.Builder token(String regularExpression)
public TokenChunker.Builder token(String regularExpression, String normalizationValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |