ParsingContext which retains copies of variable attributes of a given ParsingContext to
store the state of the parsing process at a given point in time. All runtime operations such as stop()
will still work and affect the current parsing process.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final long | |
| private final int | |
| private final long | |
| private final String | |
| private final long | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | ParsingContextSnapshot(ParsingContext
the context object whose variable attributes will be copied over. context)Creates a snapshot of a given |
| comments | back to summary |
|---|---|
| private final Map<Long, String> comments | |
| currentChar | back to summary |
|---|---|
| private final long currentChar | |
| currentColumn | back to summary |
|---|---|
| private final int currentColumn | |
| currentLine | back to summary |
|---|---|
| private final long currentLine | |
| currentParsedContent | back to summary |
|---|---|
| private final String currentParsedContent | |
| currentRecord | back to summary |
|---|---|
| private final long currentRecord | |
| lastComment | back to summary |
|---|---|
| private final String lastComment | |
| ParsingContextSnapshot | back to summary |
|---|---|
| public ParsingContextSnapshot(ParsingContext context) Creates a snapshot of a given
| |
| comments | back to summary |
|---|---|
| public Map Overrides com. Implements com. Doc from com. Returns all comments collected by the parser so far.
An empty map will be returned if | |
| currentChar | back to summary |
|---|---|
| public long currentChar() Overrides com. Implements com. Doc from com. Returns the index of the last char read from the input so far.
| |
| currentColumn | back to summary |
|---|---|
| public int currentColumn() Overrides com. Implements com. Doc from com. Returns the column index of the record being processed.
| |
| currentLine | back to summary |
|---|---|
| public long currentLine() Overrides com. Implements com. Doc from com. Returns the current line of text being processed by the parser
| |
| currentParsedContent | back to summary |
|---|---|
| public String currentParsedContent() Overrides com. Implements com. Doc from com. Returns a String with the input character sequence parsed to produce the current record. | |
| currentRecord | back to summary |
|---|---|
| public long currentRecord() Overrides com. Implements com. Doc from com. Returns the index of the last valid record parsed from the input
| |
| lastComment | back to summary |
|---|---|
| public String lastComment() Overrides com. Implements com. Doc from com. Returns the last comment found in the input.
| |