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.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 -
-
Uses of Token in com.sonar.sslr.api
Methods in com.sonar.sslr.api that return Token Modifier and Type Method Description TokenToken.Builder. build()TokenLexerOutput. get(int i)TokenComments. getCommentAtLine(int line)Deprecated.TokenLexerOutput. getFirstToken()TokenAstNode. getLastToken()TokenLexerOutput. getLastToken()TokenAstNode. getToken()Get the Token associated to this AstNodeTokenTrivia. 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 voidLexerOutput. addToken(Token token)Add a token to the list without notifying preprocessors.static Token.BuilderToken. builder(Token token)static TriviaTrivia. createComment(Token commentToken)static TriviaTrivia. createPreprocessingToken(Token preprocessingToken)static TriviaTrivia. createSkippedText(Token... tokens)booleanToken. isOnSameLineThan(Token other)abstract booleanPreprocessor2. process(Token token, LexerOutput output)This method is called just before adding a new Token to the LexerOutput.voidLexerOutput. 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.voidAstAndTokenVisitor. 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 voidLexerOutput. addAllTokens(List<Token> allNewtokens)Add a list of tokens to the list without notifying preprocessors.static TriviaTrivia. createSkippedText(List<Token> tokens)abstract PreprocessorActionPreprocessor. process(List<Token> tokens)Deprecated.Method called on each token seen by the current preprocessor.voidLexerOutput. 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.voidLexerOutput. 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 voidLexer. addToken(Token... tokens)Method parameters in com.sonar.sslr.impl with type arguments of type Token Modifier and Type Method Description AstNodeParser. 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 voidAstNodeReflector. setToken(AstNode astNode, Token token) -
Uses of Token in com.sonarsource.cobol.api.ast
Methods in com.sonarsource.cobol.api.ast with parameters of type Token Modifier and Type Method Description protected voidCobolAstCheck. log(String messageText, Token token, Object... messageParameters)Deprecated.Use:protected voidCobolAstCheck. logOnTokenWithCost(Token token, Double cost, String messageText, Object... messageParameters)Deprecated.Use: -
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 TLocationBuilder. on(Token token)TLocationBuilder. 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 TMultiLocationBuilder. 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 TokenDataItemValue. 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 AstNodeLexerfulAstCreator. 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 TokenMachine. tokenAt(int offset)Method parameters in org.sonar.sslr.internal.vm with type arguments of type Token Modifier and Type Method Description StringCobolErrorFormatter. format(List<Token> tokens, int errorIndex)static ParseNodeMachine. 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 StringLexerfulParseErrorFormatter. 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 AstNodeParserAdapter. parse(List<Token> tokens)
-