public class Trivia extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Trivia.TriviaKind |
Modifier and Type | Method and Description |
---|---|
static Trivia |
createComment(Token commentToken) |
static Trivia |
createPreprocessingDirective(AstNode ast,
Grammar grammar) |
static Trivia |
createPreprocessingDirective(PreprocessingDirective preprocessingDirective) |
static Trivia |
createPreprocessingToken(Token preprocessingToken) |
static Trivia |
createSkippedText(List<Token> tokens) |
static Trivia |
createSkippedText(Token... tokens) |
PreprocessingDirective |
getPreprocessingDirective() |
Token |
getToken() |
List<Token> |
getTokens() |
boolean |
hasPreprocessingDirective() |
boolean |
isComment() |
boolean |
isPreprocessor() |
boolean |
isSkippedText() |
String |
toString() |
public Token getToken()
public boolean isComment()
public boolean isPreprocessor()
public boolean isSkippedText()
public boolean hasPreprocessingDirective()
public PreprocessingDirective getPreprocessingDirective()
public static Trivia createPreprocessingDirective(PreprocessingDirective preprocessingDirective)
Copyright © 2009–2017 SonarSource. All rights reserved.