public static final class StatementChunker.Builder extends Object
statement(token(A)).ignore(token(A)) for the input sequence "A" will produce statement, whereas
ignore(token(A)).statement(token(A)) will not.| Modifier and Type | Method and Description |
|---|---|
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.
|
public StatementChunker build()
public StatementChunker.Builder ignore(TokenMatcher... matchers)
TokenMatcherFactorypublic StatementChunker.Builder statement(TokenMatcher... matchers)
TokenMatcherFactoryCopyright © 2009-2012 SonarSource. All Rights Reserved.