|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonar.duplications.statement.StatementChunker.Builder
public static final class StatementChunker.Builder
Note that order is important, e.g.
statement(token(A)).ignore(token(A)) for the input sequence "A" will produce statement, whereas
ignore(token(A)).statement(token(A)) will not.
| Method Summary | |
|---|---|
StatementChunker |
build()
|
StatementChunker.Builder |
ignore(TokenMatcher... matchers)
Defines that sequence of tokens must be ignored, if it matches specified list of matchers. |
StatementChunker.Builder |
statement(TokenMatcher... matchers)
Defines that sequence of tokens, which is matched specified list of matchers, is a statement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public StatementChunker build()
public StatementChunker.Builder ignore(TokenMatcher... matchers)
TokenMatcherFactorypublic StatementChunker.Builder statement(TokenMatcher... matchers)
TokenMatcherFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||