Uses of Class
com.sonar.sslr.api.Token
Packages that use Token
Package
Description
Internals of Parser.
Members of this package must not be used from outside of SSLR.
-
Uses of Token in com.sonar.sslr.api
Methods in com.sonar.sslr.api that return TokenModifier and TypeMethodDescriptionToken.Builder.build()LexerOutput.get(int i) LexerOutput.getFirstToken()AstNode.getLastToken()LexerOutput.getLastToken()AstNode.getToken()Get the Token associated to this AstNodeTrivia.getToken()Methods in com.sonar.sslr.api that return types with arguments of type TokenModifier and TypeMethodDescriptionLexerOutput.getCommentTokens()Comments.getCommentTokensAtLine(int line) AstNode.getTokens()Return all tokens contained in this tree node.LexerOutput.getTokens()Trivia.getTokens()PreprocessorAction.getTokensToInject()Deprecated.Comments.iterator()Iterates over the collection of comment tokensMethods in com.sonar.sslr.api with parameters of type TokenModifier and TypeMethodDescriptionvoidAdd a token to the list without notifying preprocessors.static Token.Builderstatic 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 TokenModifier and TypeMethodDescriptionvoidLexerOutput.addAllTokens(List<Token> allNewtokens) Add a list of tokens to the list without notifying preprocessors.static TriviaTrivia.createSkippedText(List<Token> tokens) abstract PreprocessorActionDeprecated.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.voidConstructors in com.sonar.sslr.api with parameters of type TokenConstructor parameters in com.sonar.sslr.api with type arguments of type TokenModifierConstructorDescriptionComments(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 TokenModifier and TypeMethodDescriptionLexer.getTokens()Do not use this method, it is intended for internal unit testing onlyMethods in com.sonar.sslr.impl with parameters of type TokenMethod parameters in com.sonar.sslr.impl with type arguments of type Token -
Uses of Token in com.sonar.sslr.impl.typed
Methods in com.sonar.sslr.impl.typed with parameters of type Token -
Uses of Token in com.sonarsource.cobol.api.issue
Methods in com.sonarsource.cobol.api.issue with parameters of type TokenModifier and TypeMethodDescriptionprecise issue locationMethod parameters in com.sonarsource.cobol.api.issue with type arguments of type Token -
Uses of Token in com.sonarsource.cobol.api.symbol
Methods in com.sonarsource.cobol.api.symbol that return TokenConstructors in com.sonarsource.cobol.api.symbol with parameters of type Token -
Uses of Token in org.sonar.sslr.internal.matchers
Method parameters in org.sonar.sslr.internal.matchers with type arguments of type Token -
Uses of Token in org.sonar.sslr.internal.vm
Methods in org.sonar.sslr.internal.vm that return TokenMethod parameters in org.sonar.sslr.internal.vm with type arguments of type Token -
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 -
Uses of Token in org.sonar.sslr.parser
Method parameters in org.sonar.sslr.parser with type arguments of type Token