Package org.sonar.plugins.java.api.tree
Interface SyntaxTrivia
- All Superinterfaces:
Tree
- All Known Implementing Classes:
InternalSyntaxTrivia
Represents a Trivia in the SyntaxTree.
- Since:
- plugin 2.5
-
Nested Class Summary
-
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()
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() -
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()
-