Package | Description |
---|---|
com.sonar.sslr.impl | |
com.sonar.sslr.impl.events | |
com.sonar.sslr.impl.matcher |
Modifier and Type | Method and Description |
---|---|
Matcher |
ParsingState.getOutpostMatcher() |
Modifier and Type | Method and Description |
---|---|
Token |
ParsingState.peekToken(int index,
Matcher matcher) |
Token |
ParsingState.peekToken(Matcher matcher) |
Token |
ParsingState.peekTokenIfExists(int index,
Matcher matcher) |
Token |
ParsingState.popToken(Matcher matcher) |
Modifier and Type | Field and Description |
---|---|
Matcher |
ExtendedStackTrace.longestMatcher |
Matcher |
ExtendedStackTrace.longestOutertMatcher |
Modifier and Type | Method and Description |
---|---|
Matcher |
FastStackMatcherAndPosition.getMatcher(int i) |
Matcher |
FastStackMatcherAndPosition.peekMatcher() |
Modifier and Type | Method and Description |
---|---|
void |
AutoCompleter.autoComplete(Matcher matcher) |
void |
AutoCompleter.autoComplete(Matcher matcher,
int maxTokens) |
void |
AutoCompleter.autoComplete(Matcher matcher,
java.util.List<Token> tokens) |
void |
AutoCompleter.autoComplete(Matcher matcher,
java.util.List<Token> tokens,
int maxTokens) |
void |
ParsingEventListener.enterMatcher(Matcher matcher,
ParsingState parsingState) |
void |
AutoCompleter.enterMatcher(Matcher matcher,
ParsingState parsingState) |
void |
ExtendedStackTrace.enterMatcher(Matcher matcher,
ParsingState parsingState) |
void |
ParsingEventListener.exitWithMatchMatcher(Matcher matcher,
ParsingState parsingState,
AstNode astNode) |
void |
AutoCompleter.exitWithMatchMatcher(Matcher matcher,
ParsingState parsingState,
AstNode astNode) |
void |
ExtendedStackTrace.exitWithMatchMatcher(Matcher matcher,
ParsingState parsingState,
AstNode astNode) |
void |
ParsingEventListener.exitWithoutMatchMatcher(Matcher matcher,
ParsingState parsingState) |
void |
AutoCompleter.exitWithoutMatchMatcher(Matcher matcher,
ParsingState parsingState) |
void |
ExtendedStackTrace.exitWithoutMatchMatcher(Matcher matcher,
ParsingState parsingState) |
void |
FastStackMatcherAndPosition.push(Matcher matcher,
int fromIndex) |
Modifier and Type | Class and Description |
---|---|
class |
AdjacentMatcher
This class is not intended to be instantiated or sub-classed by clients.
|
class |
AndMatcher
A
Matcher that tries all of its submatchers in sequence and only succeeds if all submatchers succeed. |
class |
AnyTokenButNotMatcher
This class is not intended to be instantiated or sub-classed by clients.
|
class |
AnyTokenMatcher
This class is not intended to be instantiated or sub-classed by clients.
|
class |
BooleanMatcher
This class is not intended to be instantiated or sub-classed by clients.
|
class |
BridgeMatcher
This class is not intended to be instantiated or sub-classed by clients.
|
class |
DelegatingMatcher
This class is not intended to be instantiated or sub-classed by clients.
|
class |
ExclusiveTillMatcher
This class is not intended to be instantiated or sub-classed by clients.
|
class |
InclusiveTillMatcher
This class is not intended to be instantiated or sub-classed by clients.
|
class |
LongestOneMatcher
This class is not intended to be instantiated or sub-classed by clients.
|
class |
MemoizedMatcher
This class is not intended to be instantiated or sub-classed by clients.
|
class |
MemoMatcher
Special wrapping
Matcher that performs memoization of its submatcher. |
class |
NextMatcher
A special
Matcher not actually matching any input but rather trying its submatcher against the current input
position. |
class |
NotMatcher
A special
Matcher not actually matching any input but rather trying its submatcher against the current input
position. |
class |
OneToNMatcher
A
Matcher that repeatedly tries its submatcher against the input. |
class |
OptMatcher
A
Matcher that tries its submatcher once against the input and always succeeds. |
class |
OrMatcher
A
Matcher trying all of its submatchers in sequence and succeeding when the first submatcher succeeds. |
class |
RuleMatcher
This class is not intended to be instantiated or sub-classed by clients.
|
class |
StandardMatcher
This class allows to remove usage of
BacktrackingEvent from Matcher s. |
class |
StatelessMatcher
This class is not intended to be instantiated or sub-classed by clients.
|
class |
TillNewLineMatcher
This class is not intended to be instantiated or sub-classed by clients.
|
class |
TokenMatcher
This class is not intended to be instantiated or sub-classed by clients.
|
class |
TokenTypeClassMatcher
This class is not intended to be instantiated or sub-classed by clients.
|
class |
TokenTypeMatcher
This class is not intended to be instantiated or sub-classed by clients.
|
class |
TokenTypesMatcher
This class is not intended to be instantiated or sub-classed by clients.
|
class |
TokenValueMatcher
This class is not intended to be instantiated or sub-classed by clients.
|
Modifier and Type | Field and Description |
---|---|
Matcher[] |
Matcher.children |
Modifier and Type | Method and Description |
---|---|
static Matcher |
GrammarFunctions.Advanced.adjacent(java.lang.Object element)
Match the element if and only if the first token of this element is adjacent to the previous consumed token.
|
static Matcher |
GrammarFunctions.Standard.and(java.lang.Object... elements)
Match all elements in a sequential order.
|
static Matcher |
GrammarFunctions.Advanced.anyToken()
Consume the next token whatever it is
|
static Matcher |
GrammarFunctions.Advanced.anyTokenButNot(java.lang.Object element)
Consume the next token if and only if the element doesn't match
|
static Matcher |
GrammarFunctions.Advanced.bridge(TokenType from,
TokenType to)
Consume all tokens between token from and token to.
|
protected static Matcher |
GrammarFunctions.convertToMatcher(java.lang.Object object) |
protected static Matcher[] |
GrammarFunctions.convertToMatchers(java.lang.Object[] objects) |
static Matcher |
GrammarFunctions.Advanced.exclusiveTill(java.lang.Object... elements)
Consume all tokens as long one of the provided elements is not encountered.
|
static Matcher |
GrammarFunctions.Standard.firstOf(java.lang.Object... elements) |
protected Matcher |
DelegatingMatcher.getDelegate() |
static Matcher |
GrammarFunctions.Advanced.isFalse()
For unit test only Not consume the next token whatever it is
|
static Matcher |
GrammarFunctions.Advanced.isOneOfThem(TokenType... types)
Match the next token if and only if its type belongs to the provided list
|
static Matcher |
GrammarFunctions.Advanced.isTrue()
For unit test only Consume the next token whatever it is
|
static Matcher |
GrammarFunctions.Advanced.longestOne(java.lang.Object... elements)
Match the longest alternative within the elements exactly once
|
static Matcher |
GrammarFunctions.Advanced.memoizeMatches(java.lang.Object element) |
static Matcher |
GrammarFunctions.Predicate.next(java.lang.Object... elements)
Syntactic predicate to check that the next tokens match some elements.
|
static Matcher |
GrammarFunctions.Predicate.not(java.lang.Object element)
Syntactic predicate to check that the next tokens don't match an element.
|
static Matcher |
GrammarFunctions.Standard.o2n(java.lang.Object... objects)
Match elements sequence zero or more times
|
static Matcher |
GrammarFunctions.Standard.one2n(java.lang.Object... elements)
Match elements sequence one or more times
|
static Matcher |
GrammarFunctions.Standard.opt(java.lang.Object... elements)
Optionally match the element(s).
|
static Matcher |
GrammarFunctions.Standard.or(java.lang.Object... elements)
Deprecated.
in 1.16, use
GrammarFunctions.Standard.firstOf(Object...) instead |
static Matcher |
GrammarFunctions.Advanced.till(java.lang.Object element)
Consume all tokens as long as the element is not encountered.
|
static Matcher |
GrammarFunctions.Advanced.tillNewLine()
Consume every following token which are on the current line
|
static Matcher |
DelegatingMatcher.unwrap(Matcher matcher) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
MatcherTreePrinter.print(Matcher matcher) |
protected void |
RuleDefinition.setMatcher(Matcher matcher) |
static Matcher |
DelegatingMatcher.unwrap(Matcher matcher) |
Constructor and Description |
---|
AdjacentMatcher(Matcher matcher) |
AndMatcher(Matcher... matchers) |
AnyTokenButNotMatcher(Matcher matcher) |
DelegatingMatcher(Matcher delegate) |
ExclusiveTillMatcher(Matcher... matchers) |
InclusiveTillMatcher(Matcher matcher) |
LongestOneMatcher(Matcher... matchers) |
Matcher(Matcher... children) |
MemoizedMatcher(Matcher... children) |
MemoMatcher(Matcher delegate) |
NextMatcher(Matcher matcher) |
NotMatcher(Matcher matcher) |
OneToNMatcher(Matcher matcher) |
OptMatcher(Matcher matcher) |
OrMatcher(Matcher... matchers) |
StandardMatcher(Matcher... matchers) |
StatelessMatcher(Matcher... children) |
Copyright © 2012 SonarSource. All Rights Reserved.