Index
All Classes and Interfaces|All Packages|Serialized Form
A
- actual - Variable in exception class com.leastfixedpoint.json.JSONTypeError
- add(Object) - Method in class com.leastfixedpoint.json.JSONValue
-
Append an object to the underlying list.
- allowJavaNull - Variable in class com.leastfixedpoint.json.JSONWriter
- array() - Method in class com.leastfixedpoint.json.JSONReader
- array(Object) - Method in class com.leastfixedpoint.json.JSONWriter
- ARRAY_COMMA_OR_END - Enum constant in enum class com.leastfixedpoint.json.JSONEventReader.State
- ARRAY_END - Enum constant in enum class com.leastfixedpoint.json.JSONReader.Lexeme
- ARRAY_START - Enum constant in enum class com.leastfixedpoint.json.JSONReader.Lexeme
- atBoundary() - Method in class com.leastfixedpoint.json.JSONEventReader
-
Returns true iff the parser is not mid-way through some object; that is, we are at a boundary between JSON values.
- atEOF() - Method in class com.leastfixedpoint.json.JSONReader
B
- bigDecimalValue() - Method in class com.leastfixedpoint.json.JSONValue
-
Extract a
BigDecimal
value from the underlying object. - blob - Variable in class com.leastfixedpoint.json.JSONValue
- bool(boolean) - Method in class com.leastfixedpoint.json.JSONWriter
- booleanValue() - Method in class com.leastfixedpoint.json.JSONValue
-
Extract a boolean value from an underlying
Boolean
. - buffer() - Method in class com.leastfixedpoint.json.JSONReader
C
- check(char) - Method in class com.leastfixedpoint.json.JSONReader
- checkDrop(char) - Method in class com.leastfixedpoint.json.JSONReader
- checkNull() - Method in class com.leastfixedpoint.json.JSONValue
- COLON - Enum constant in enum class com.leastfixedpoint.json.JSONReader.Lexeme
- com.leastfixedpoint.json - package com.leastfixedpoint.json
-
A package for JSON reading and writing for Java.
- COMMA - Enum constant in enum class com.leastfixedpoint.json.JSONReader.Lexeme
- containsKey(String) - Method in class com.leastfixedpoint.json.JSONValue
-
Tests whether there is an object at the given key in the underlying map.
- curr() - Method in class com.leastfixedpoint.json.JSONReader
D
- doubleValue() - Method in class com.leastfixedpoint.json.JSONValue
-
Extract a double value from an underlying
Number
. - drop() - Method in class com.leastfixedpoint.json.JSONReader
E
- emit(char) - Method in class com.leastfixedpoint.json.JSONWriter
- emit(Object) - Method in class com.leastfixedpoint.json.JSONWriter
- emitUnicode(char) - Method in class com.leastfixedpoint.json.JSONWriter
- EOF - Variable in class com.leastfixedpoint.json.JSONReader
- equals(Object) - Method in class com.leastfixedpoint.json.JSONValue
- expected - Variable in exception class com.leastfixedpoint.json.JSONTypeError
- expectEOF() - Method in class com.leastfixedpoint.json.JSONReader
-
Consumes any whitespace in the stream, and returns normally if it then finds itself at the end of the stream.
F
- FIRST_ARRAY_VALUE - Enum constant in enum class com.leastfixedpoint.json.JSONEventReader.State
- FIRST_MAP_KEY - Enum constant in enum class com.leastfixedpoint.json.JSONEventReader.State
- formatClassList(Class<?>[]) - Static method in exception class com.leastfixedpoint.json.JSONTypeError
G
- GENERAL - Enum constant in enum class com.leastfixedpoint.json.JSONEventReader.State
- get(int) - Method in class com.leastfixedpoint.json.JSONValue
-
Retrieve the object at the index'th position in the underlying list.
- get(int, Object) - Method in class com.leastfixedpoint.json.JSONValue
-
Retrieve the object at the index'th position in the underlying list, or the given default value if there is no such index.
- get(String) - Method in class com.leastfixedpoint.json.JSONValue
-
Retrieve the object at the given key in the underlying map.
- get(String, Object) - Method in class com.leastfixedpoint.json.JSONValue
-
Retrieve the object at the given key in the underlying map, or the given default value if there is no such key.
- getActual() - Method in exception class com.leastfixedpoint.json.JSONTypeError
- getAllowJavaNull() - Method in class com.leastfixedpoint.json.JSONWriter
-
Answers true iff the writer allows java's null value to be written as JSON null.
- getContainer() - Method in exception class com.leastfixedpoint.json.JSONMissingIndexError
- getContainer() - Method in exception class com.leastfixedpoint.json.JSONMissingKeyError
- getExpected() - Method in exception class com.leastfixedpoint.json.JSONTypeError
- getIndentMode() - Method in class com.leastfixedpoint.json.JSONWriter
-
Answers true iff pretty indentation is turned on for this instance.
- getIndex() - Method in exception class com.leastfixedpoint.json.JSONMissingIndexError
- getKey() - Method in exception class com.leastfixedpoint.json.JSONMissingKeyError
- getLineNumber() - Method in exception class com.leastfixedpoint.json.JSONSyntaxError
- getReader() - Method in class com.leastfixedpoint.json.JSONReader
-
Retrieve the underlying LineNumberReader.
- getRequired(int) - Method in class com.leastfixedpoint.json.JSONValue
-
Retrieve the object at the index'th position in the underlying list, throwing JSONMissingIndexError if there is no such index.
- getRequired(String) - Method in class com.leastfixedpoint.json.JSONValue
-
Retrieve the object at the given key in the underlying map, throwing JSONMissingKeyError if there is no such key.
- getSortKeys() - Method in class com.leastfixedpoint.json.JSONWriter
-
Answers true iff the writer sorts keys when writing objects, to ensure deterministic ordering.
- getWriter() - Method in class com.leastfixedpoint.json.JSONWriter
-
Retrieve the underlying Writer.
- gotoState(JSONEventReader.State) - Method in class com.leastfixedpoint.json.JSONEventReader
H
- hashCode() - Method in class com.leastfixedpoint.json.JSONValue
- hex - Static variable in class com.leastfixedpoint.json.JSONWriter
I
- indentLevel - Variable in class com.leastfixedpoint.json.JSONWriter
- indentMode - Variable in class com.leastfixedpoint.json.JSONWriter
- INSTANCE - Enum constant in enum class com.leastfixedpoint.json.JSONNull
-
The single instance representing JSON nulls.
- isBoolean() - Method in class com.leastfixedpoint.json.JSONValue
-
Answers true iff the underlying value is a Boolean.
- isList() - Method in class com.leastfixedpoint.json.JSONValue
-
Answers true iff the underlying value is a
List
. - isMap() - Method in class com.leastfixedpoint.json.JSONValue
-
Answers true iff the underlying value is a
Map
. - isNull() - Method in class com.leastfixedpoint.json.JSONValue
-
Answers true iff the underlying value is a JSON null (i.e.,
JSONNull.INSTANCE
). - isNumber() - Method in class com.leastfixedpoint.json.JSONValue
-
Answers true iff the underlying value is a Number.
- isString() - Method in class com.leastfixedpoint.json.JSONValue
-
Answers true iff the underlying value is a String.
- iterable(Iterable<?>) - Method in class com.leastfixedpoint.json.JSONWriter
J
- JSONError - Exception Class in com.leastfixedpoint.json
-
Signalled by JSONReader and JSONWriter on various kinds of formatting errors, be they errors in JSON text or errors in some Java object graph being serialized.
- JSONError(String) - Constructor for exception class com.leastfixedpoint.json.JSONError
- JSONEventReader - Class in com.leastfixedpoint.json
-
SAX-style event-emitting JSON parser.
- JSONEventReader(JSONReader) - Constructor for class com.leastfixedpoint.json.JSONEventReader
- JSONEventReader.State - Enum Class in com.leastfixedpoint.json
- JSONMissingIndexError - Exception Class in com.leastfixedpoint.json
-
Signalled to indicate access to a missing (but required) position in a JSON array.
- JSONMissingIndexError(int, List<Object>) - Constructor for exception class com.leastfixedpoint.json.JSONMissingIndexError
- JSONMissingKeyError - Exception Class in com.leastfixedpoint.json
-
Signalled to indicate access to a missing (but required) element of a JSON dictionary.
- JSONMissingKeyError(String, Map<String, Object>) - Constructor for exception class com.leastfixedpoint.json.JSONMissingKeyError
- JSONNull - Enum Class in com.leastfixedpoint.json
-
Quasi-singleton; represents JSON null values.
- jsonReader - Variable in class com.leastfixedpoint.json.JSONEventReader
- JSONReader - Class in com.leastfixedpoint.json
-
Parse JSON text to Java values.
- JSONReader(Reader) - Constructor for class com.leastfixedpoint.json.JSONReader
-
Construct a reader that reads JSON text from the given Reader.
- JSONReader.Lexeme - Enum Class in com.leastfixedpoint.json
-
Most JSON tokens are self-representing; the remainder are represented with instances of Lexeme.
- JSONSchemaError - Exception Class in com.leastfixedpoint.json
-
Signalled to indicate a problem with the structure of a value not being as expected.
- JSONSchemaError(String) - Constructor for exception class com.leastfixedpoint.json.JSONSchemaError
- JSONSerializable - Interface in com.leastfixedpoint.json
-
Interface for classes that wish to control their own serialization.
- JSONSerializationError - Exception Class in com.leastfixedpoint.json
-
Describes some portion of a Java object graph that cannot be serialized to JSON.
- JSONSerializationError(String) - Constructor for exception class com.leastfixedpoint.json.JSONSerializationError
- jsonSerialize(JSONWriter<W>) - Method in interface com.leastfixedpoint.json.JSONSerializable
-
Called during serialization to JSON.
- jsonSerialize(JSONWriter<W>) - Method in class com.leastfixedpoint.json.JSONValue
- JSONSyntaxError - Exception Class in com.leastfixedpoint.json
-
Signalled during JSONReader operation to indicate problems with the input JSON text.
- JSONSyntaxError(String, int) - Constructor for exception class com.leastfixedpoint.json.JSONSyntaxError
-
Construct a syntax error report exception.
- JSONTypeError - Exception Class in com.leastfixedpoint.json
-
Signalled to indicate a violation of a type constraint.
- JSONTypeError(Class<?>[], Object) - Constructor for exception class com.leastfixedpoint.json.JSONTypeError
- JSONTypeError(Class<?>, Object) - Constructor for exception class com.leastfixedpoint.json.JSONTypeError
- JSONValue - Class in com.leastfixedpoint.json
-
Helper class for concise traversal and construction of JSON values in the representation used by
JSONReader
andJSONWriter
. - JSONValue(Object) - Constructor for class com.leastfixedpoint.json.JSONValue
- JSONWriter<W> - Class in com.leastfixedpoint.json
-
Writes certain Java objects as JSON to a Writer.
- JSONWriter(W) - Constructor for class com.leastfixedpoint.json.JSONWriter
-
Construct a JSONWriter that will output on the given Writer, by default without pretty indentation.
- JSONWriter(W, boolean) - Constructor for class com.leastfixedpoint.json.JSONWriter
-
Construct a JSONWriter that will output on the given Writer, with optional pretty indentation.
L
- list() - Method in class com.leastfixedpoint.json.JSONValue
-
Iterate over JSONValue-wrapped items in the underlying value, which is cast to a
List
- listIterable(Collection<Object>) - Method in class com.leastfixedpoint.json.JSONValue
- listValue() - Method in class com.leastfixedpoint.json.JSONValue
-
Cast the underlying value to
List
. - longValue() - Method in class com.leastfixedpoint.json.JSONValue
-
Extract a long value from an underlying
Number
.
M
- map(Map<?, ?>) - Method in class com.leastfixedpoint.json.JSONWriter
- MAP_COLON - Enum constant in enum class com.leastfixedpoint.json.JSONEventReader.State
- MAP_COMMA_OR_END - Enum constant in enum class com.leastfixedpoint.json.JSONEventReader.State
- MAP_VALUE - Enum constant in enum class com.leastfixedpoint.json.JSONEventReader.State
- mapEntries() - Method in class com.leastfixedpoint.json.JSONValue
-
Iterate over JSONValue-wrapped entries in the underlying value, which is cast to a
Map
- mapKeys() - Method in class com.leastfixedpoint.json.JSONValue
-
Iterate over keys of the underlying value, which is cast to a
Map
- mapValue() - Method in class com.leastfixedpoint.json.JSONValue
-
Cast the underlying value to
Map
. - mapValues() - Method in class com.leastfixedpoint.json.JSONValue
-
Iterate over JSONValue-wrapped entries in the underlying value, which is cast to a
Map
- maybeEnterNested(Object) - Method in class com.leastfixedpoint.json.JSONEventReader
N
- newline() - Method in class com.leastfixedpoint.json.JSONWriter
-
If pretty indentation is turned on, outputs a newline character followed by a number of spaces corresponding to the current indentation level (which is not under direct control of any public methods)
- newList() - Static method in class com.leastfixedpoint.json.JSONValue
-
Construct a new
List
, suitable for use as a JSON value. - newMap() - Static method in class com.leastfixedpoint.json.JSONValue
-
Construct a new
Map
, suitable for use as a JSON value. - next() - Method in class com.leastfixedpoint.json.JSONEventReader
-
Yields the next JSON token.
- nextLexeme() - Method in class com.leastfixedpoint.json.JSONReader
-
Read the next JSON token from the input stream.
- NO_TOKEN - Variable in class com.leastfixedpoint.json.JSONReader
- number() - Method in class com.leastfixedpoint.json.JSONReader
- number(Number) - Method in class com.leastfixedpoint.json.JSONWriter
O
- object() - Method in class com.leastfixedpoint.json.JSONReader
- OBJECT_END - Enum constant in enum class com.leastfixedpoint.json.JSONReader.Lexeme
- OBJECT_START - Enum constant in enum class com.leastfixedpoint.json.JSONReader.Lexeme
P
- pop() - Method in class com.leastfixedpoint.json.JSONEventReader
- pushAndGoto(JSONEventReader.State) - Method in class com.leastfixedpoint.json.JSONEventReader
- put(String, Object) - Method in class com.leastfixedpoint.json.JSONValue
-
Replace the object at the given key in the underlying map.
R
- read() - Method in class com.leastfixedpoint.json.JSONReader
-
Reads and returns the next JSON value.
- readAtom(String, Object) - Method in class com.leastfixedpoint.json.JSONReader
- reader - Variable in class com.leastfixedpoint.json.JSONReader
- readFrom(Reader) - Static method in class com.leastfixedpoint.json.JSONReader
-
Reads and returns a single JSON value from the given Reader.
- readFrom(Reader, boolean) - Static method in class com.leastfixedpoint.json.JSONReader
-
Reads and returns a single JSON value from the given Reader.
- readFrom(String) - Static method in class com.leastfixedpoint.json.JSONReader
-
Reads and returns a single JSON value from the given input JSON source text.
- readFrom(String, boolean) - Static method in class com.leastfixedpoint.json.JSONReader
-
Reads and returns a single JSON value from the given input JSON source text.
- readValue() - Method in class com.leastfixedpoint.json.JSONReader
-
As read(), but wraps the result in
JSONValue
. - readValue(Reader) - Static method in class com.leastfixedpoint.json.JSONReader
-
Reads and returns a single JSONValue from the given Reader.
- readValue(String) - Static method in class com.leastfixedpoint.json.JSONReader
-
Reads and returns a single JSONValue from the given input JSON source text.
- readValue(String, boolean) - Static method in class com.leastfixedpoint.json.JSONReader
-
Reads and returns a single JSONValue from the given input JSON source text.
- remove(String) - Method in class com.leastfixedpoint.json.JSONValue
-
Remove the object at the given key in the underlying map.
S
- set(int, Object) - Method in class com.leastfixedpoint.json.JSONValue
-
Replace the object at the index'th position in the underlying list.
- setAllowJavaNull(boolean) - Method in class com.leastfixedpoint.json.JSONWriter
-
If given true, allows java's null value to be written as JSON null; otherwise, requires nulls to be represented with instances of JSONNull.
- setIndentMode(boolean) - Method in class com.leastfixedpoint.json.JSONWriter
-
Alters the pretty indentation mode of this instance for future writes.
- setSortKeys(boolean) - Method in class com.leastfixedpoint.json.JSONWriter
-
If given true, enables object key-sorting on write; false disables sorting.
- size() - Method in class com.leastfixedpoint.json.JSONValue
- skipWhiteSpace() - Method in class com.leastfixedpoint.json.JSONReader
- sortKeys - Variable in class com.leastfixedpoint.json.JSONWriter
- state - Variable in class com.leastfixedpoint.json.JSONEventReader
- stateStack - Variable in class com.leastfixedpoint.json.JSONEventReader
- string(char) - Method in class com.leastfixedpoint.json.JSONReader
-
Read a string with a specific delimiter (either ' or ")
- string(Object) - Method in class com.leastfixedpoint.json.JSONWriter
- stringValue() - Method in class com.leastfixedpoint.json.JSONValue
-
Cast the underlying value to
String
. - SUBSEQUENT_ARRAY_VALUE - Enum constant in enum class com.leastfixedpoint.json.JSONEventReader.State
- SUBSEQUENT_MAP_KEY - Enum constant in enum class com.leastfixedpoint.json.JSONEventReader.State
T
- toString() - Method in class com.leastfixedpoint.json.JSONValue
U
- unwrap(Object) - Static method in class com.leastfixedpoint.json.JSONValue
-
If given a JSONValue, extracts the underlying object; otherwise, simply returns the value given.
V
- value() - Method in class com.leastfixedpoint.json.JSONValue
-
Extract the underlying value contained in this object.
- valueGuard(Object) - Method in class com.leastfixedpoint.json.JSONReader
- valueOf(String) - Static method in enum class com.leastfixedpoint.json.JSONEventReader.State
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.leastfixedpoint.json.JSONNull
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.leastfixedpoint.json.JSONReader.Lexeme
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.leastfixedpoint.json.JSONEventReader.State
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.leastfixedpoint.json.JSONNull
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.leastfixedpoint.json.JSONReader.Lexeme
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- wrap(Object) - Static method in class com.leastfixedpoint.json.JSONValue
-
Returns a JSONValue wrapping the given object, unless the argument is null or already a JSONValue, in which case it is returned directly.
- write(Object) - Method in class com.leastfixedpoint.json.JSONWriter
-
Emit the given object as JSON to the embedded Writer.
- writer - Variable in class com.leastfixedpoint.json.JSONWriter
- writeTo(Writer, Object) - Static method in class com.leastfixedpoint.json.JSONWriter
-
Serializes value as JSON, outputting to writer, without pretty indentation.
- writeTo(W, Object, boolean) - Static method in class com.leastfixedpoint.json.JSONWriter
-
Serializes value as JSON, outputting to writer, with optional pretty indentation.
- writeToString(Object) - Static method in class com.leastfixedpoint.json.JSONWriter
-
Returns JSON text corresponding to value, without pretty indentation.
- writeToString(Object, boolean) - Static method in class com.leastfixedpoint.json.JSONWriter
-
Returns JSON text corresponding to value, with optional pretty indentation.
- writeToString(String) - Static method in class com.leastfixedpoint.json.JSONWriter
-
Returns JSON text corresponding to value.
_
- _buffer - Variable in class com.leastfixedpoint.json.JSONReader
- _read() - Method in class com.leastfixedpoint.json.JSONReader
All Classes and Interfaces|All Packages|Serialized Form