Uses of Class
com.sonar.sslr.api.Token

Packages that use Token
com.sonar.sslr.api   
com.sonar.sslr.impl   
com.sonarsource.cobol.api.ast   
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
 Token Token.Builder.build()
           
 Token LexerOutput.get(int i)
           
 Token Comments.getCommentAtLine(int line)
          Deprecated. see Comments.getCommentTokensAtLine(int)
 Token LexerOutput.getFirstToken()
           
 Token AstNode.getLastToken()
           
 Token LexerOutput.getLastToken()
           
 Token Trivia.getToken()
           
 Token AstNode.getToken()
          Get the Token associated to this AstNode
 

Methods in com.sonar.sslr.api that return types with arguments of type Token
 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()
           
 Iterator<Token> Comments.iterator()
          Iterates over the collection of comment tokens
 

Methods in com.sonar.sslr.api with parameters of type Token
 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
 

Method parameters in com.sonar.sslr.api with type arguments of type Token
 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)
           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
AstNode(AstNodeType type, String name, Token token)
           
AstNode(Token token)
           
 

Constructor parameters in com.sonar.sslr.api with type arguments of type Token
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)
           Construct a preprocessor action.
 

Uses of Token in com.sonar.sslr.impl
 

Methods in com.sonar.sslr.impl that return types with arguments of type Token
 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)
           
 

Methods in com.sonar.sslr.impl with parameters of type Token
 void Lexer.addToken(Token... tokens)
           
 

Method parameters in com.sonar.sslr.impl with type arguments of type Token
 AstNode Parser.parse(List<Token> tokens)
           
 

Uses of Token in com.sonarsource.cobol.api.ast
 

Methods in com.sonarsource.cobol.api.ast with parameters of type Token
protected  void CobolAstCheck.log(String messageText, Token token, Object... messageParameters)
          Log a violation on a Token
 

Uses of Token in com.sonarsource.cobol.api.symbol
 

Methods in com.sonarsource.cobol.api.symbol that return Token
 Token DataItemValue.getToken()
           
 

Constructors in com.sonarsource.cobol.api.symbol with parameters of type Token
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
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
 Token Machine.tokenAt(int offset)
           
 

Method parameters in org.sonar.sslr.internal.vm with type arguments of type Token
 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
 String LexerfulParseErrorFormatter.format(List<Token> tokens, int errorIndex, List<List<MatcherPathElement>> failedPaths)
           
 

Uses of Token in org.sonar.sslr.parser
 

Method parameters in org.sonar.sslr.parser with type arguments of type Token
 AstNode ParserAdapter.parse(List<Token> tokens)
           
 



Copyright © 2009-2014 SonarSource. All Rights Reserved.