Uses of Class
com.sonar.sslr.api.Token
-
Packages that use Token Package Description com.sonar.sslr.api com.sonar.sslr.impl com.sonar.sslr.impl.typed 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 -
-
Uses of Token in com.sonar.sslr.api
Methods in com.sonar.sslr.api that return Token Modifier and Type Method Description Token
Token.Builder. build()
Token
LexerOutput. get(int i)
Token
LexerOutput. getFirstToken()
Token
AstNode. getLastToken()
Token
LexerOutput. getLastToken()
Token
AstNode. getToken()
Get the Token associated to this AstNodeToken
Trivia. getToken()
Methods in com.sonar.sslr.api that return types with arguments of type Token Modifier and Type Method Description Collection<Token>
LexerOutput. getCommentTokens()
List<Token>
Comments. getCommentTokensAtLine(int line)
List<Token>
AstNode. getTokens()
Return all tokens contained in this tree node.List<Token>
LexerOutput. getTokens()
List<Token>
Trivia. getTokens()
List<Token>
PreprocessorAction. getTokensToInject()
Deprecated.Iterator<Token>
Comments. iterator()
Iterates over the collection of comment tokensMethods in com.sonar.sslr.api with parameters of type Token Modifier and Type Method 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 LexerMethod parameters in com.sonar.sslr.api with type arguments of type Token Modifier and Type Method 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)
Constructors in com.sonar.sslr.api with parameters of type Token Constructor Description AstNode(AstNodeType type, String name, Token token)
AstNode(Token token)
Constructor parameters in com.sonar.sslr.api with type arguments of type Token Constructor 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)
-
Uses of Token in com.sonar.sslr.impl
Methods in com.sonar.sslr.impl that return types with arguments of type Token Modifier and Type Method 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 onlyList<Token>
Lexer. lex(URL url)
Methods in com.sonar.sslr.impl with parameters of type Token Modifier and Type Method Description void
Lexer. addToken(Token... tokens)
Method parameters in com.sonar.sslr.impl with type arguments of type Token Modifier and Type Method Description AstNode
Parser. parse(List<Token> tokens)
-
Uses of Token in com.sonar.sslr.impl.typed
Methods in com.sonar.sslr.impl.typed with parameters of type Token Modifier and Type Method Description static void
AstNodeReflector. setToken(AstNode astNode, Token token)
-
Uses of Token in com.sonarsource.cobol.api.issue
Methods in com.sonarsource.cobol.api.issue with parameters of type Token Modifier and Type Method Description T
LocationBuilder. on(Token token)
T
LocationBuilder. onRange(Token firstToken, Token lastToken)
precise issue locationMethod parameters in com.sonarsource.cobol.api.issue with type arguments of type Token Modifier and Type Method Description T
MultiLocationBuilder. onTokens(Stream<Token> tokenStream)
-
Uses of Token in com.sonarsource.cobol.api.symbol
Methods in com.sonarsource.cobol.api.symbol that return Token Modifier and Type Method Description Token
DataItemValue. getToken()
Constructors in com.sonarsource.cobol.api.symbol with parameters of type Token Constructor Description DataItemValue(Token token)
-
Uses of Token in org.sonar.sslr.internal.matchers
Method parameters in org.sonar.sslr.internal.matchers with type arguments of type Token Modifier and Type Method Description static AstNode
LexerfulAstCreator. create(ParseNode node, List<Token> tokens)
-
Uses of Token in org.sonar.sslr.internal.vm
Methods in org.sonar.sslr.internal.vm that return Token Modifier and Type Method Description Token
Machine. tokenAt(int offset)
Method parameters in org.sonar.sslr.internal.vm with type arguments of type Token Modifier and Type Method Description String
CobolErrorFormatter. format(List<Token> tokens, int errorIndex)
static ParseNode
Machine. parse(List<Token> tokens, CompiledGrammar grammar)
-
Uses of Token in org.sonar.sslr.internal.vm.lexerful
Method parameters in org.sonar.sslr.internal.vm.lexerful with type arguments of type Token Modifier and Type Method Description String
LexerfulParseErrorFormatter. format(List<Token> tokens, int errorIndex)
-
Uses of Token in org.sonar.sslr.parser
Method parameters in org.sonar.sslr.parser with type arguments of type Token Modifier and Type Method Description AstNode
ParserAdapter. parse(List<Token> tokens)
-