Interface SyntaxTrivia
- All Superinterfaces:
Tree
- All Known Implementing Classes:
InternalSyntaxTrivia
Represents a Trivia in the SyntaxTree.
- Since:
- plugin 2.5
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionint
column()
Deprecated, for removal: This API element is subject to removal in a future version.for removal, since = 7.3, "column()" can be replaced by range().start().columnOffset() and "column() + 1" can be replaced by range().start().column()comment()
boolean
boolean
isComment
(SyntaxTrivia.CommentKind... kinds) range()
int
Deprecated, for removal: This API element is subject to removal in a future version.for removal, since = 7.3, use range().start().line()
-
Method Details
-
comment
String comment() -
commentContent
String commentContent() -
commentKind
SyntaxTrivia.CommentKind commentKind() -
isComment
-
isComment
-
startLine
Deprecated, for removal: This API element is subject to removal in a future version.for removal, since = 7.3, use range().start().line() -
column
Deprecated, for removal: This API element is subject to removal in a future version.for removal, since = 7.3, "column()" can be replaced by range().start().columnOffset() and "column() + 1" can be replaced by range().start().column()Warning: this is not the column number starting at 1 but the column offset starting at 0- Returns:
- column offset starting at 0
-
range
Range range()
-