Package com.sonarsource.rpg.api.tree
Interface Comment
-
public interface Comment
A comment defined in a comment line (with an asterisk in position 7) or starting with "//" in free-form syntax. A comment is on a single line: multiple lines of comments are represented as separate instances ofComment
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
content()
boolean
isBlank()
int
line()
-
-
-
Method Detail
-
line
int line()
- Returns:
- line number of the comment
-
content
String content()
- Returns:
- content of the comment
-
isBlank
boolean isBlank()
- Returns:
- true if the comment is empty or contains only white spaces.
-
-