|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectasia.redact.bracket.properties.line.Line
public class Line
Representation of a line of text in a file. Index is the absolute offset of this line in the file at the time it was read out. This class is thread-safe.
| Field Summary | |
|---|---|
(package private) LineEnding |
ending
|
(package private) long |
index
|
(package private) String |
text
|
| Constructor Summary | |
|---|---|
Line(String text,
long index,
LineEnding ending)
|
|
| Method Summary | |
|---|---|
String |
commentContents()
|
boolean |
equals(Object obj)
|
LineEnding |
getEnding()
|
long |
getIndex()
|
String |
getText()
|
boolean |
hasContinuation()
Return true if this line is a value extension of a line (part of a logical line) |
int |
hashCode()
|
boolean |
isCommentLine()
|
boolean |
isEmptyLine()
|
boolean |
isNaturalLine()
Natural lines contain keys, a delimiter, and a value (or initial value part) |
boolean |
isPrivateComment()
Used to identify our private comment system for a comment header |
String |
logicalLineContents()
|
String[] |
naturalLineContents()
|
private PropertiesToken |
nominalEnding()
|
List<PropertiesToken> |
tokens()
Tokenize a line of text from a properties file. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
final String text
final long index
final LineEnding ending
| Constructor Detail |
|---|
public Line(String text,
long index,
LineEnding ending)
| Method Detail |
|---|
private PropertiesToken nominalEnding()
public List<PropertiesToken> tokens()
public boolean hasContinuation()
public boolean isPrivateComment()
public String logicalLineContents()
public boolean isNaturalLine()
public boolean isCommentLine()
public boolean isEmptyLine()
public String commentContents()
public String[] naturalLineContents()
public String getText()
public long getIndex()
public LineEnding getEnding()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||