public class CommentLine extends Line
| Constructor and Description |
|---|
CommentLine(String line)
Creates a new CommentLine with exactly the given contents.
NOTE: No checks are done to see if this is actually a comment. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
String |
getComment() |
String |
getName()
Returns the name of this line.
The specific meaning differs between the different types of lines. |
String |
getPath() |
int |
hashCode() |
void |
setComment(String comment)
Sets this CommentLine to the given value.
If the given value does not start with a #, it will be added. (Leading whitespace is ignored when checking for the #) |
String |
toSave() |
StringBuilder |
toSave(StringBuilder b) |
String |
toString() |
public CommentLine(String line)
line - IllegalArgumentException - If line is nullpublic String getComment()
public void setComment(String comment)
comment - public StringBuilder toSave(StringBuilder b)
public String getName()
LineCommentLine - nullEmptyLine - nullCopyright © 2014. All rights reserved.