public abstract class Line extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Line()
|
|
Line(String path) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getName()
Returns the name of this line.
The specific meaning differs between the different types of lines. |
String |
getPath() |
int |
hashCode() |
abstract String |
toSave() |
abstract StringBuilder |
toSave(StringBuilder b) |
abstract String |
toString() |
protected String path
protected Line()
public Line(String path)
path - - The path of this line.IllegalArgumentException - If path is null or ends with a dot.public abstract String toSave()
public abstract StringBuilder toSave(StringBuilder b)
public String getName()
CommentLine - nullEmptyLine - nullpublic String getPath()
null for CommentLines and EmptyLines.Copyright © 2014. All rights reserved.