asia.redact.bracket.properties.big
Class Line
java.lang.Object
asia.redact.bracket.properties.big.Line
public class Line
- extends Object
Representation of a line. "index" is the absolute offset of this line in the file at
the time it was read out.
This class is thread-safe.
- Author:
- Dave
text
final String text
index
final long index
ending
final LineEnding ending
Line
public Line(String text,
long index,
LineEnding ending)
nominalEnding
private PropertiesToken nominalEnding()
tokens
public List<PropertiesToken> tokens()
hasContinuation
public boolean hasContinuation()
- Return true if this line is a value extension of a line (part of a logical line)
- Returns:
isPrivateComment
public boolean isPrivateComment()
- Used to identify our private comment system for a comment header
- Returns:
logicalLineContents
public String logicalLineContents()
isNaturalLine
public boolean isNaturalLine()
- Natural lines contain keys, a delimiter, and a value (or initial value part)
- Returns:
isCommentLine
public boolean isCommentLine()
isEmptyLine
public boolean isEmptyLine()
commentContents
public String commentContents()
naturalLineContents
public String[] naturalLineContents()
getText
public String getText()
getIndex
public long getIndex()
getEnding
public LineEnding getEnding()
toString
public String toString()
- Overrides:
toString in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2011-2013 David R. Smith. All Rights Reserved.