public final class LineSegment extends Object
A LineSegement consists of a content, a line and column number within the stream (regarding
the start of the content) and a terminator.
Note: The line number and the column number starts both with 1.
| Modifier and Type | Class and Description |
|---|---|
static class |
LineSegment.Terminator
Different types of content terminators.
|
| Constructor and Description |
|---|
LineSegment(String content,
int lineNumber,
int columnNumber,
LineSegment.Terminator terminator)
Constructs a new
LineSegment. |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnNumber() |
String |
getContent() |
int |
getLineNumber() |
LineSegment.Terminator |
getTerminator() |
public LineSegment(String content, int lineNumber, int columnNumber, LineSegment.Terminator terminator)
LineSegment.content - the contentlineNumber - the line numbercolumnNumber - the column numberterminator - the terminatorpublic String getContent()
public int getLineNumber()
public int getColumnNumber()
public LineSegment.Terminator getTerminator()
Copyright © 2014. All rights reserved.