Package | Description |
---|---|
org.sonar.duplications.java | |
org.sonar.duplications.statement |
Provides a basic framework to create list of statements from list of tokens.
|
org.sonar.duplications.statement.matcher |
Modifier and Type | Class and Description |
---|---|
class |
BridgeWithExceptionTokenMatcher |
Modifier and Type | Method and Description |
---|---|
static TokenMatcher |
TokenMatcherFactory.anyToken() |
static TokenMatcher |
TokenMatcherFactory.bridge(String lToken,
String rToken) |
static TokenMatcher |
TokenMatcherFactory.forgetLastToken() |
static TokenMatcher |
TokenMatcherFactory.from(String token) |
static TokenMatcher |
TokenMatcherFactory.opt(TokenMatcher optMatcher) |
static TokenMatcher |
TokenMatcherFactory.to(String... tokens) |
static TokenMatcher |
TokenMatcherFactory.token(String token) |
Modifier and Type | Method and Description |
---|---|
static StatementChannel |
StatementChannel.create(TokenMatcher... tokenMatchers) |
static StatementChannel |
StatementChannel.createBlackHole(TokenMatcher... tokenMatchers) |
StatementChunker.Builder |
StatementChunker.Builder.ignore(TokenMatcher... matchers)
Defines that sequence of tokens must be ignored, if it matches specified list of matchers.
|
static TokenMatcher |
TokenMatcherFactory.opt(TokenMatcher optMatcher) |
StatementChunker.Builder |
StatementChunker.Builder.statement(TokenMatcher... matchers)
Defines that sequence of tokens, which is matched specified list of matchers, is a statement.
|
Modifier and Type | Class and Description |
---|---|
class |
AnyTokenMatcher
Consumes any token, but only one.
|
class |
BridgeTokenMatcher
Consumes everything between pair of tokens.
|
class |
ExactTokenMatcher
Consumes only one specified token.
|
class |
ForgetLastTokenMatcher
Last token would be returned to the queue.
|
class |
OptTokenMatcher
Delegates consumption to another matcher.
|
class |
UptoTokenMatcher
Consumes everything up to one of the specified tokens.
|
Constructor and Description |
---|
OptTokenMatcher(TokenMatcher matcher) |
Copyright © 2009-2012 SonarSource. All Rights Reserved.