public class Comment extends Object implements CharSequence
| Constructor and Description |
|---|
Comment(String value)
If
value == null, this comment is set to "" (an empty line). |
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int index) |
String |
getComment() |
String |
getLine() |
int |
length() |
void |
setComment(String value)
If
value == null, this comment is set to "" (an empty line).If value does not start with a # (spaces are ignored), this comment is set to # + value. Otherwise, this comment is set to the given value. |
CharSequence |
subSequence(int start,
int end) |
Line |
toLine() |
String |
toString() |
public Comment(String value)
value == null, this comment is set to "" (an empty line).value - public String getLine()
public Line toLine()
public String getComment()
public void setComment(String value)
value == null, this comment is set to "" (an empty line).value - public int length()
length in interface CharSequencepublic char charAt(int index)
charAt in interface CharSequencepublic CharSequence subSequence(int start, int end)
subSequence in interface CharSequencepublic String toString()
toString in interface CharSequencetoString in class ObjectCopyright © 2014. All rights reserved.