public final class Position extends SqllrObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Position.Builder
Collects the members of a new
Position. |
SqllrObject.Reader<T>| Modifier and Type | Field and Description |
|---|---|
static List<String> |
MEMBERS
The members the schema defines, in schema order.
|
static SqllrObject.Reader<Position> |
READER
Reads a JSON object as a
Position. |
static List<String> |
REQUIRED
The members the schema requires.
|
| Modifier and Type | Method and Description |
|---|---|
static Position.Builder |
builder() |
static Position |
fromJson(Object json)
A
Position with the members of a JSON object, all kept. |
Long |
getColumn1()
The member
column1. |
Long |
getLine1()
The member
line1. |
Long |
getUtf16Offset0()
The member
utf16Offset0. |
Long |
getUtf8ByteOffset0()
The member
utf8ByteOffset0. |
Position.Builder |
toBuilder()
A builder holding every member of this object.
|
public static final SqllrObject.Reader<Position> READER
Position.public static Position fromJson(Object json)
Position with the members of a JSON object, all kept.public static Position.Builder builder()
public Position.Builder toBuilder()
public Long getLine1()
line1. 1-based line number. Null when absent; throws IllegalStateException
when the member holds another JSON type.public Long getColumn1()
column1. 1-based column number. Null when absent; throws
IllegalStateException when the member holds another JSON type.public Long getUtf8ByteOffset0()
utf8ByteOffset0. 0-based UTF-8 byte offset in the decoded text. A 0-based
ordinal. Null when absent; throws IllegalStateException when the member holds another JSON
type.public Long getUtf16Offset0()
utf16Offset0. 0-based UTF-16 code-unit offset. Module exact-spans. A
0-based ordinal. Null when absent; throws IllegalStateException when the member holds another
JSON type.