Package | Description |
---|---|
com.sonar.sslr.api | |
com.sonar.sslr.impl | |
com.sonarsource.cobol.api.ast | |
com.sonarsource.cobol.api.issue | |
com.sonarsource.cobol.api.symbol | |
org.sonar.sslr.internal.matchers |
Internals of Parser.
|
org.sonar.sslr.internal.vm | |
org.sonar.sslr.internal.vm.lexerful |
Members of this package must not be used from outside of SSLR.
|
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 |
AstNode.getLastToken() |
Token |
LexerOutput.getLastToken() |
Token |
Trivia.getToken() |
Token |
AstNode.getToken()
Get the Token associated to this AstNode
|
Modifier and Type | Method and Description |
---|---|
Collection<Token> |
LexerOutput.getCommentTokens() |
List<Token> |
Comments.getCommentTokensAtLine(int line) |
List<Token> |
Trivia.getTokens() |
List<Token> |
AstNode.getTokens()
Return all tokens contained in this tree node.
|
List<Token> |
LexerOutput.getTokens() |
List<Token> |
PreprocessorAction.getTokensToInject()
Deprecated.
|
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(List<Token> allNewtokens)
Add a list of tokens to the list without notifying preprocessors.
|
static Trivia |
Trivia.createSkippedText(List<Token> tokens) |
abstract PreprocessorAction |
Preprocessor.process(List<Token> tokens)
Deprecated.
Method called on each token seen by the current preprocessor.
|
void |
LexerOutput.pushBackTokensAndProcess(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(List<Token> tokens) |
Constructor and Description |
---|
AstNode(AstNodeType type,
String name,
Token token) |
AstNode(Token token) |
Constructor and Description |
---|
Comments(com.google.common.collect.ListMultimap<Integer,Token> comments) |
Comments(com.google.common.collect.ListMultimap<Integer,Token> comments,
CommentAnalyser analyser) |
LexerOutput(List<Token> tokens) |
PreprocessorAction(int numberOfConsumedTokens,
List<Trivia> triviaToInject,
List<Token> tokensToInject)
Deprecated.
Construct a preprocessor action.
|
Modifier and Type | Method and Description |
---|---|
List<Token> |
Lexer.getTokens() |
List<Token> |
Lexer.lex(File file) |
List<Token> |
Lexer.lex(String sourceCode)
Do not use this method, it is intended for internal unit testing only
|
List<Token> |
Lexer.lex(URL url) |
Modifier and Type | Method and Description |
---|---|
void |
Lexer.addToken(Token... tokens) |
Modifier and Type | Method and Description |
---|---|
AstNode |
Parser.parse(List<Token> tokens) |
Modifier and Type | Method and Description |
---|---|
protected void |
CobolAstCheck.log(String messageText,
Token token,
Object... messageParameters)
Deprecated.
Use:
If "messageParameters" exists, format the message using: |
protected void |
CobolAstCheck.logOnTokenWithCost(Token token,
Double cost,
String messageText,
Object... messageParameters)
Deprecated.
Use:
If "messageParameters" exists, format the message using: |
Modifier and Type | Method and Description |
---|---|
T |
LocationBuilder.on(Token token) |
T |
LocationBuilder.onRange(Token firstToken,
Token lastToken)
precise issue location
|
Modifier and Type | Method and Description |
---|---|
T |
MultiLocationBuilder.onTokens(Stream<Token> tokenStream) |
Modifier and Type | Method and Description |
---|---|
Token |
DataItemValue.getToken() |
Constructor and Description |
---|
DataItemValue(Token token) |
Modifier and Type | Method and Description |
---|---|
static AstNode |
LexerfulAstCreator.create(ParseNode node,
List<Token> tokens) |
Modifier and Type | Method and Description |
---|---|
Token |
Machine.tokenAt(int offset) |
Modifier and Type | Method and Description |
---|---|
String |
CobolErrorFormatter.format(List<Token> tokens,
int errorIndex) |
static ParseNode |
Machine.parse(List<Token> tokens,
CompiledGrammar grammar) |
Modifier and Type | Method and Description |
---|---|
String |
LexerfulParseErrorFormatter.format(List<Token> tokens,
int errorIndex) |
Modifier and Type | Method and Description |
---|---|
AstNode |
ParserAdapter.parse(List<Token> tokens) |
Copyright © 2009–2017 SonarSource. All rights reserved.