Package | Description |
---|---|
com.sonar.sslr.api | |
com.sonar.sslr.impl | |
com.sonar.sslr.impl.events | |
com.sonar.sslr.impl.matcher | |
com.sonarsource.cobol.api.ast | |
com.sonarsource.cobol.api.symbol | |
org.sonar.sslr.parser |
Modifier and Type | Method and Description |
---|---|
Token |
Token.Builder.build() |
Token |
LexerOutput.get(int i) |
Token |
Comments.getCommentAtLine(int line)
Deprecated.
|
Token |
LexerOutput.getFirstToken() |
Token |
LexerOutput.getLastToken() |
Token |
AstNode.getLastToken() |
Token |
AstNode.getToken()
Get the Token associated to this AstNode
|
Token |
Trivia.getToken() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Token> |
LexerOutput.getCommentTokens() |
java.util.List<Token> |
Comments.getCommentTokensAtLine(int line) |
java.util.List<Token> |
LexerOutput.getTokens() |
java.util.List<Token> |
AstNode.getTokens()
Return all tokens contained in this tree node.
|
java.util.List<Token> |
Trivia.getTokens() |
java.util.List<Token> |
PreprocessorAction.getTokensToInject() |
java.util.Iterator<Token> |
Comments.iterator()
Iterates over the collection of comment tokens
|
Modifier and Type | Method and Description |
---|---|
void |
LexerOutput.addToken(Token token)
Add a token to the list without notifying preprocessors.
|
static Token.Builder |
Token.builder(Token token) |
static Trivia |
Trivia.createComment(Token commentToken) |
static Trivia |
Trivia.createPreprocessingToken(Token preprocessingToken) |
static Trivia |
Trivia.createSkippedText(Token... tokens) |
boolean |
Token.isOnSameLineThan(Token other) |
abstract boolean |
Preprocessor2.process(Token token,
LexerOutput output)
This method is called just before adding a new Token to the LexerOutput.
|
void |
LexerOutput.pushBackTokenAndProcess(Token token,
Preprocessor2 preprocessorToExclude)
This method must be called by a preprocessor when a token has been temporary consumed by this preprocessor but finally must be pushed
back to the LexerOutput.
|
void |
AstAndTokenVisitor.visitToken(Token token)
Called sequentially for each token generated by the Lexer
|
Modifier and Type | Method and Description |
---|---|
void |
LexerOutput.addAllTokens(java.util.List<Token> allNewtokens)
Add a list of tokens to the list without notifying preprocessors.
|
static Trivia |
Trivia.createSkippedText(java.util.List<Token> tokens) |
abstract PreprocessorAction |
Preprocessor.process(java.util.List<Token> tokens)
Method called on each token seen by the current preprocessor.
|
void |
LexerOutput.pushBackTokensAndProcess(java.util.List<Token> tokens,
Preprocessor2 preprocessorToExclude)
This method must be called by a preprocessor when some tokens have been temporary consumed by this preprocessor but finally must be
pushed back to the LexerOutput.
|
void |
LexerOutput.setTokens(java.util.List<Token> tokens) |
Constructor and Description |
---|
AstNode(AstNodeType type,
java.lang.String name,
Token token) |
AstNode(Token token) |
Constructor and Description |
---|
LexerOutput(java.util.List<Token> tokens) |
PreprocessorAction(int numberOfConsumedTokens,
java.util.List<Trivia> triviaToInject,
java.util.List<Token> tokensToInject)
Construct a preprocessor action.
|
Modifier and Type | Method and Description |
---|---|
Token |
ParsingState.getOutpostMatcherToken() |
Token |
ParsingState.peekToken(int index,
Matcher matcher) |
Token |
ParsingState.peekToken(Matcher matcher) |
Token |
ParsingState.peekTokenIfExists(int index,
Matcher matcher) |
Token |
ParsingState.popToken(Matcher matcher) |
Token |
ParsingState.readToken(int tokenIndex) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Token> |
Lexer.getTokens() |
java.util.List<Token> |
Lexer.lex(java.io.File file) |
java.util.List<Token> |
Lexer.lex(java.lang.String sourceCode)
Do not use this method, it is intended for internal unit testing only
|
java.util.List<Token> |
Lexer.lex(java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
void |
Lexer.addToken(Token... tokens) |
Modifier and Type | Method and Description |
---|---|
AstNode |
Parser.parse(java.util.List<Token> tokens) |
AstNode |
Parser2.parse(java.util.List<Token> tokens) |
Constructor and Description |
---|
ParsingState(java.util.List<Token> tokens) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.util.List<Token>> |
AutoCompleter.getFullMatches() |
java.util.List<java.util.List<Token>> |
AutoCompleter.getPartialMatches() |
Modifier and Type | Method and Description |
---|---|
void |
AutoCompleter.autoComplete(Matcher matcher,
java.util.List<Token> tokens) |
void |
AutoCompleter.autoComplete(Matcher matcher,
java.util.List<Token> tokens,
int maxTokens) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
TokenValueMatcher.isExpectedToken(Token token) |
protected boolean |
TokenTypeClassMatcher.isExpectedToken(Token token) |
protected boolean |
BooleanMatcher.isExpectedToken(Token token) |
protected boolean |
TokenTypesMatcher.isExpectedToken(Token token) |
protected boolean |
TokenTypeMatcher.isExpectedToken(Token token) |
protected abstract boolean |
TokenMatcher.isExpectedToken(Token token) |
protected boolean |
AnyTokenMatcher.isExpectedToken(Token token) |
Modifier and Type | Method and Description |
---|---|
protected void |
CobolAstCheck.log(java.lang.String messageText,
Token token,
java.lang.Object... messageParameters)
Log a violation on a Token
|
Modifier and Type | Method and Description |
---|---|
Token |
DataItemValue.getToken() |
Constructor and Description |
---|
DataItemValue(Token token) |
Modifier and Type | Method and Description |
---|---|
AstNode |
ParserAdapter.parse(java.util.List<Token> tokens) |
Copyright © 2012 SonarSource. All Rights Reserved.