A B C D E F G H I J K L N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- actual() - Method in exception com.github.tnakamot.json.value.WrongValueTypeException
- add(boolean) - Method in class com.github.tnakamot.json.value.JSONValueArray
-
Add a JSON boolean value to this array.
- add(double) - Method in class com.github.tnakamot.json.value.JSONValueArray
-
Add a JSON number value to this array.
- add(int, JSONValue) - Method in class com.github.tnakamot.json.value.JSONValueArray
- add(int, JSONValue) - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
-
Deprecated.
- add(int, JSONValue) - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- add(long) - Method in class com.github.tnakamot.json.value.JSONValueArray
-
Add a JSON number value to this array.
- add(JSONValue) - Method in class com.github.tnakamot.json.value.JSONValueArray
- add(JSONValue) - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
-
Deprecated.
- add(JSONValue) - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- add(String) - Method in class com.github.tnakamot.json.value.JSONValueArray
-
Add a JSON string value to this array.
- addAll(int, Collection) - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
-
Deprecated.
- addAll(int, Collection<? extends JSONValue>) - Method in class com.github.tnakamot.json.value.JSONValueArray
- addAll(int, Collection<? extends JSONValue>) - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- addAll(Collection) - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
-
Deprecated.
- addAll(Collection<? extends JSONValue>) - Method in class com.github.tnakamot.json.value.JSONValueArray
- addAll(Collection<? extends JSONValue>) - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- ARRAY - com.github.tnakamot.json.value.JSONValueType
B
- begin() - Method in exception com.github.tnakamot.json.pointer.InvalidJSONPointerException
-
Beginning location of the character range where the problem is.
- begin() - Static method in class com.github.tnakamot.json.token.StringLocation
- begin() - Method in class com.github.tnakamot.json.value.JSONValueStructured
-
The beginning token of this structured value.
- BEGIN_ARRAY - com.github.tnakamot.json.token.JSONTokenType
- BEGIN_OBJECT - com.github.tnakamot.json.token.JSONTokenType
- beginning() - Method in class com.github.tnakamot.json.token.StringRange
-
The beginning location of this range.
- beginningLocation() - Method in class com.github.tnakamot.json.pointer.JSONPointerReferenceToken
-
Location of the beginning of the token within the original JSON Pointer string.
- beginningLocation() - Method in class com.github.tnakamot.json.token.JSONToken
-
Location of the beginning of the token within the source JSON text.
- BOOLEAN - com.github.tnakamot.json.token.JSONTokenType
- BOOLEAN - com.github.tnakamot.json.value.JSONValueType
- build() - Method in class com.github.tnakamot.json.parser.JSONParserErrorHandlingOptions.Builder
-
Build a new instance of
JSONParserErrorHandlingOptions
. - builder() - Static method in class com.github.tnakamot.json.parser.JSONParserErrorHandlingOptions
-
Returns a new builder of this class.
C
- canBeLong() - Method in class com.github.tnakamot.json.value.JSONValueNumber
-
Returns if this token can be converted to a Java long value.
- clear() - Method in class com.github.tnakamot.json.value.JSONValueArray
- clear() - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
-
Deprecated.
- clear() - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- clear() - Method in class com.github.tnakamot.json.value.JSONValueObject
- clear() - Method in class com.github.tnakamot.json.value.JSONValueObjectImmutable
-
Deprecated.
- clear() - Method in class com.github.tnakamot.json.value.JSONValueObjectMutable
- column() - Method in class com.github.tnakamot.json.token.StringLocation
- com.github.tnakamot.json - package com.github.tnakamot.json
-
Provides
JSONText
. - com.github.tnakamot.json.parser - package com.github.tnakamot.json.parser
-
This package provides classes to parse JSON text based on RFC 8259.
- com.github.tnakamot.json.pointer - package com.github.tnakamot.json.pointer
-
This package provides classes for JSON Pointer (RFC 6901).
- com.github.tnakamot.json.schema - package com.github.tnakamot.json.schema
-
This package provides classes for JSON Schema 2019-09.
- com.github.tnakamot.json.token - package com.github.tnakamot.json.token
-
This package provides classes to represent tokens in JSON text.
- com.github.tnakamot.json.value - package com.github.tnakamot.json.value
-
This package provides classes to represent JSON values in Java based on RFC 8259.
- commonName() - Method in class com.github.tnakamot.json.schema.JSONSchemaVersion
- contains(Object) - Method in class com.github.tnakamot.json.value.JSONValueArray
- contains(Object) - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
- contains(Object) - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- containsAll(Collection) - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
- containsAll(Collection) - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- containsAll(Collection<?>) - Method in class com.github.tnakamot.json.value.JSONValueArray
- containsKey(Object) - Method in class com.github.tnakamot.json.value.JSONValueObject
- containsKey(Object) - Method in class com.github.tnakamot.json.value.JSONValueObjectImmutable
- containsKey(Object) - Method in class com.github.tnakamot.json.value.JSONValueObjectMutable
- containsKey(String) - Method in class com.github.tnakamot.json.value.JSONValueObject
-
Check if this JSON object has a value which has the given name.
- containsKey(String) - Method in class com.github.tnakamot.json.value.JSONValueObjectImmutable
-
Check if this JSON object has a value which has the given name.
- containsKey(String) - Method in class com.github.tnakamot.json.value.JSONValueObjectMutable
-
Check if this JSON object has a value which has the given name.
- containsValue(Object) - Method in class com.github.tnakamot.json.value.JSONValueObject
- containsValue(Object) - Method in class com.github.tnakamot.json.value.JSONValueObjectImmutable
- containsValue(Object) - Method in class com.github.tnakamot.json.value.JSONValueObjectMutable
D
- DEFAULT_VERSION - Static variable in class com.github.tnakamot.json.schema.JSONSchemaVersion
- DRAFT_06 - Static variable in class com.github.tnakamot.json.schema.JSONSchemaVersion
- DRAFT_07 - Static variable in class com.github.tnakamot.json.schema.JSONSchemaVersion
- DRAFT_2019_09 - Static variable in class com.github.tnakamot.json.schema.JSONSchemaVersion
- duplicateKeys() - Method in class com.github.tnakamot.json.parser.JSONParserResult
-
Returns lists of duplicated keys found when parsing.
E
- end() - Method in exception com.github.tnakamot.json.pointer.InvalidJSONPointerException
-
End location of the character range where the problem is.
- end() - Method in class com.github.tnakamot.json.token.StringRange
-
The end location of this range.
- end() - Method in class com.github.tnakamot.json.value.JSONValueStructured
-
The end token of this structured value.
- END_ARRAY - com.github.tnakamot.json.token.JSONTokenType
- END_OBJECT - com.github.tnakamot.json.token.JSONTokenType
- endLocation() - Method in class com.github.tnakamot.json.pointer.JSONPointerReferenceToken
-
Location of the end of the token within the original JSON Pointer string.
- endLocation() - Method in class com.github.tnakamot.json.token.JSONToken
-
Location of the end of the token within the source JSON text.
- entrySet() - Method in class com.github.tnakamot.json.value.JSONValueObject
- entrySet() - Method in class com.github.tnakamot.json.value.JSONValueObjectImmutable
- entrySet() - Method in class com.github.tnakamot.json.value.JSONValueObjectMutable
- equals(Object) - Method in class com.github.tnakamot.json.schema.JSONSchemaVersion
- equals(Object) - Method in class com.github.tnakamot.json.value.JSONValueArray
- equals(Object) - Method in class com.github.tnakamot.json.value.JSONValueBoolean
- equals(Object) - Method in class com.github.tnakamot.json.value.JSONValueNull
- equals(Object) - Method in class com.github.tnakamot.json.value.JSONValueNumber
-
To best comply with JSON Schema this method tries to compare the value mathematically using
BigDecimal
. - equals(Object) - Method in class com.github.tnakamot.json.value.JSONValueObject
- equals(Object) - Method in class com.github.tnakamot.json.value.JSONValueString
- evaluate(JSONPointer) - Method in class com.github.tnakamot.json.JSONText
-
Evaluate the given JSON Pointer and return the found JSON value.
- evaluate(JSONValue) - Method in class com.github.tnakamot.json.pointer.JSONPointer
-
Evaluate this JSON pointer in the context of the given root value of a JSON document.
- evaluate(String) - Method in class com.github.tnakamot.json.JSONText
-
Evaluate the given JSON Pointer and return the found JSON value.
- evaluate(String, boolean) - Method in class com.github.tnakamot.json.JSONText
-
Evaluate the given JSON Pointer and return the found JSON value.
- expected() - Method in exception com.github.tnakamot.json.value.WrongValueTypeException
F
- failOnDuplicateKey() - Method in class com.github.tnakamot.json.parser.JSONParserErrorHandlingOptions
-
Returns whether the parse should throw an exception when it encounters duplicated keys in one JSON object.
- failOnDuplicateKey(boolean) - Method in class com.github.tnakamot.json.parser.JSONParserErrorHandlingOptions.Builder
- failOnTooBigNumber() - Method in class com.github.tnakamot.json.parser.JSONParserErrorHandlingOptions
-
Returns whether the parse should throw an exception when there is a number that is not in the range [-(2^53)+1, 2^53 - 1].
- failOnTooBigNumber(boolean) - Method in class com.github.tnakamot.json.parser.JSONParserErrorHandlingOptions.Builder
- FALSE - Static variable in class com.github.tnakamot.json.value.JSONValueBoolean
- fromFile(File) - Static method in class com.github.tnakamot.json.JSONText
-
Reads JSON text from a file and returns an instance of
JSONText
for further processing. - fromString(String) - Static method in class com.github.tnakamot.json.JSONText
-
Convert the given String to an instance of
JSONText
. - fromString(String, String) - Static method in class com.github.tnakamot.json.JSONText
-
Convert the given String to an instance of
JSONText
. - fromURI(URI) - Static method in class com.github.tnakamot.json.schema.JSONSchemaVersion
- fromURL(URL) - Static method in class com.github.tnakamot.json.JSONText
-
Reads JSON text from a URL and returns an instance of
JSONText
for further processing.
G
- get() - Method in class com.github.tnakamot.json.JSONText
-
Returns the content of this JSON text as a string.
- get(int) - Method in class com.github.tnakamot.json.value.JSONValueArray
- get(int) - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
- get(int) - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- get(JSONValueString) - Method in class com.github.tnakamot.json.value.JSONValueObject
-
Returns the JSON value of the given name.
- get(JSONValueString) - Method in class com.github.tnakamot.json.value.JSONValueObjectImmutable
-
Returns the JSON value of the given name.
- get(JSONValueString) - Method in class com.github.tnakamot.json.value.JSONValueObjectMutable
-
Returns the JSON value of the given name.
- get(Object) - Method in class com.github.tnakamot.json.value.JSONValueObject
- get(Object) - Method in class com.github.tnakamot.json.value.JSONValueObjectImmutable
- get(Object) - Method in class com.github.tnakamot.json.value.JSONValueObjectMutable
- get(String) - Method in class com.github.tnakamot.json.value.JSONValueObject
-
Returns the JSON value which has the given name.
- get(String) - Method in class com.github.tnakamot.json.value.JSONValueObjectImmutable
-
Returns the JSON value which has the given name.
- get(String) - Method in class com.github.tnakamot.json.value.JSONValueObjectMutable
-
Returns the JSON value which has the given name.
- getArray(int) - Method in class com.github.tnakamot.json.value.JSONValueArray
-
Returns an array value at the specified position in this array.
- getArray(String) - Method in class com.github.tnakamot.json.value.JSONValueObject
-
Returns the array value to which the specified key is mapped, or null if this map contains no mapping for the key.
- getBoolean(int) - Method in class com.github.tnakamot.json.value.JSONValueArray
-
Returns a boolean value at the specified position in this array.
- getBoolean(String) - Method in class com.github.tnakamot.json.value.JSONValueObject
-
Returns the boolean value to which the specified key is mapped, or null if this map contains no mapping for the key.
- getDouble(int) - Method in class com.github.tnakamot.json.value.JSONValueArray
-
Returns a number value at the specified position in this array.
- getDouble(String) - Method in class com.github.tnakamot.json.value.JSONValueObject
-
Returns the double value to which the specified key is mapped, or null if this map contains no mapping for the key.
- getLong(int) - Method in class com.github.tnakamot.json.value.JSONValueArray
-
Returns a number value at the specified position in this array.
- getLong(String) - Method in class com.github.tnakamot.json.value.JSONValueObject
-
Returns the long value to which the specified key is mapped, or null if this map contains no mapping for the key.
- getMessage() - Method in exception com.github.tnakamot.json.parser.JSONParserException
- getMessage() - Method in exception com.github.tnakamot.json.pointer.InvalidJSONPointerException
- getObject(int) - Method in class com.github.tnakamot.json.value.JSONValueArray
-
Returns an object value at the specified position in this array.
- getObject(String) - Method in class com.github.tnakamot.json.value.JSONValueObject
-
Returns the object value to which the specified key is mapped, or null if this map contains no mapping for the key.
- getString(int) - Method in class com.github.tnakamot.json.value.JSONValueArray
-
Returns a string value at the specified position in this array.
- getString(String) - Method in class com.github.tnakamot.json.value.JSONValueObject
-
Returns the string value to which the specified key is mapped, or null if this map contains no mapping for the key.
H
- hashCode() - Method in class com.github.tnakamot.json.value.JSONValueArray
- hashCode() - Method in class com.github.tnakamot.json.value.JSONValueBoolean
- hashCode() - Method in class com.github.tnakamot.json.value.JSONValueNull
- hashCode() - Method in class com.github.tnakamot.json.value.JSONValueNumber
-
To best comply with JSON Schema this method tries to return the same hash for two JSONValueNumber which have mathematically have the same numeric value.
- hashCode() - Method in class com.github.tnakamot.json.value.JSONValueObject
- hashCode() - Method in class com.github.tnakamot.json.value.JSONValueString
I
- index() - Method in class com.github.tnakamot.json.pointer.JSONPointerReferenceToken
-
Reference token as an index of a JSON array value.
- indexOf(Object) - Method in class com.github.tnakamot.json.value.JSONValueArray
- indexOf(Object) - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
- indexOf(Object) - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- INSTANCE - Static variable in class com.github.tnakamot.json.value.JSONValueNull
-
An instance of null value without token information.
- InvalidJSONPointerException - Exception in com.github.tnakamot.json.pointer
- InvalidJSONPointerException(String, String, int, int) - Constructor for exception com.github.tnakamot.json.pointer.InvalidJSONPointerException
-
Instantiate the exception with a JSON Pointer text that has an error.
- InvalidJSONPointerIndexOutOfBoundsException - Exception in com.github.tnakamot.json.pointer
-
Thrown when the index in the JSON Pointer is out of bounds of the JSON array value.
- InvalidJSONPointerIndexOutOfBoundsException(JSONPointerReferenceToken, int) - Constructor for exception com.github.tnakamot.json.pointer.InvalidJSONPointerIndexOutOfBoundsException
- InvalidJSONPointerMemberNotExistException - Exception in com.github.tnakamot.json.pointer
-
Thrown when a member with the specified name does not exist.
- InvalidJSONPointerMemberNotExistException(JSONPointerReferenceToken) - Constructor for exception com.github.tnakamot.json.pointer.InvalidJSONPointerMemberNotExistException
- InvalidJSONPointerNotIndexException - Exception in com.github.tnakamot.json.pointer
-
Thrown when a reference token does not represent an index of a JSON array
- InvalidJSONPointerNotIndexException(JSONPointerReferenceToken) - Constructor for exception com.github.tnakamot.json.pointer.InvalidJSONPointerNotIndexException
- InvalidJSONPointerReachedPrimitiveException - Exception in com.github.tnakamot.json.pointer
-
Thrown when a JSON Pointer reaches a primitive JSON value (null, boolean, string or number), but it references a child of that value.
- InvalidJSONPointerReachedPrimitiveException(JSONPointerReferenceToken) - Constructor for exception com.github.tnakamot.json.pointer.InvalidJSONPointerReachedPrimitiveException
- InvalidJSONPointerSyntaxException - Exception in com.github.tnakamot.json.pointer
-
Thrown when the given pointer String violates syntax defined in RFC 6901.
- InvalidJSONPointerSyntaxException(String) - Constructor for exception com.github.tnakamot.json.pointer.InvalidJSONPointerSyntaxException
-
Instantiate the exception with an empty JSON Pointer text.
- InvalidJSONPointerSyntaxException(String, String, int) - Constructor for exception com.github.tnakamot.json.pointer.InvalidJSONPointerSyntaxException
-
Instantiate the exception with a JSON Pointer text that has a syntax error.
- InvalidJSONPointerWithTokenException - Exception in com.github.tnakamot.json.pointer
-
Thrown when evaluation of a JSON Pointer encounters an error.
- InvalidJSONPointerWithTokenException(String, JSONPointerReferenceToken) - Constructor for exception com.github.tnakamot.json.pointer.InvalidJSONPointerWithTokenException
-
Instantiate the exception with a reference token.
- InvalidJSONSchemaURIException - Exception in com.github.tnakamot.json.schema
- InvalidJSONSchemaURIException(URI, JSONSchemaVersion[]) - Constructor for exception com.github.tnakamot.json.schema.InvalidJSONSchemaURIException
- isEmpty() - Method in class com.github.tnakamot.json.value.JSONValueArray
- isEmpty() - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
- isEmpty() - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- isEmpty() - Method in class com.github.tnakamot.json.value.JSONValueObject
- isEmpty() - Method in class com.github.tnakamot.json.value.JSONValueObjectImmutable
- isEmpty() - Method in class com.github.tnakamot.json.value.JSONValueObjectMutable
- isParsed() - Method in class com.github.tnakamot.json.JSONText
-
Returns whether this JSON text has been successfully parsed in the past.
- iterator() - Method in class com.github.tnakamot.json.value.JSONValueArray
- iterator() - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
- iterator() - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
J
- JSON_BEGIN_ARRAY - Static variable in class com.github.tnakamot.json.token.JSONToken
- JSON_BEGIN_OBJECT - Static variable in class com.github.tnakamot.json.token.JSONToken
- JSON_END_ARRAY - Static variable in class com.github.tnakamot.json.token.JSONToken
- JSON_END_OBJECT - Static variable in class com.github.tnakamot.json.token.JSONToken
- JSON_FALSE - Static variable in class com.github.tnakamot.json.token.JSONTokenBoolean
- JSON_NAME_SEPARATOR - Static variable in class com.github.tnakamot.json.token.JSONToken
- JSON_NULL - Static variable in class com.github.tnakamot.json.token.JSONTokenNull
- JSON_TRUE - Static variable in class com.github.tnakamot.json.token.JSONTokenBoolean
- JSON_VALUE_SEPARATOR - Static variable in class com.github.tnakamot.json.token.JSONToken
- JSONLexer - Class in com.github.tnakamot.json.parser
-
An implementation of lexical analyzer for JSON texts.
- JSONLexer(JSONText, JSONParserErrorHandlingOptions) - Constructor for class com.github.tnakamot.json.parser.JSONLexer
-
Create an instance of JSON lexical analyzer for the given JSON text.
- JSONParser - Class in com.github.tnakamot.json.parser
-
An implementation of a parser of JSON texts.
- JSONParser(List<JSONToken>, JSONParserErrorHandlingOptions) - Constructor for class com.github.tnakamot.json.parser.JSONParser
-
Create an instance of JSON parse for the given sequence of JSON tokens.
- JSONParserErrorHandlingOptions - Class in com.github.tnakamot.json.parser
-
A data structure to hold options to change the behavior of the JSON parser when it encounters a questionable JSON token and switches to change the error message format
JSONParserException
. - JSONParserErrorHandlingOptions.Builder - Class in com.github.tnakamot.json.parser
-
Builder class of
JSONParserErrorHandlingOptions
. - JSONParserException - Exception in com.github.tnakamot.json.parser
-
Thrown when a JSON lexical analyzer fails to tokenize a given JSON text or the parser fails due to a syntax error.
- JSONParserException(JSONText, StringLocation, JSONParserErrorHandlingOptions, String) - Constructor for exception com.github.tnakamot.json.parser.JSONParserException
-
Instantiate this exception.
- JSONParserException(JSONText, StringLocation, StringLocation, JSONParserErrorHandlingOptions, String) - Constructor for exception com.github.tnakamot.json.parser.JSONParserException
-
Instantiate this exception.
- JSONParserException(JSONText, StringRange, JSONParserErrorHandlingOptions, String) - Constructor for exception com.github.tnakamot.json.parser.JSONParserException
-
Instantiate this exception.
- JSONParserResult - Class in com.github.tnakamot.json.parser
-
Result of parsing a JSON text.
- JSONPointer - Class in com.github.tnakamot.json.pointer
-
JSON Pointer implementation compliant with RFC 6901.
- JSONPointer(JSONValueString) - Constructor for class com.github.tnakamot.json.pointer.JSONPointer
-
Create a new JSON Pointer instance from a JSON string value.
- JSONPointer(JSONValueString, boolean) - Constructor for class com.github.tnakamot.json.pointer.JSONPointer
-
Create a new JSON Pointer instance from a JSON string value.
- JSONPointer(String) - Constructor for class com.github.tnakamot.json.pointer.JSONPointer
-
Create a new JSON Pointer instance from a Java String.
- JSONPointer(String, boolean) - Constructor for class com.github.tnakamot.json.pointer.JSONPointer
-
Create a new JSON Pointer instance from a Java String.
- JSONPointerLexer - Class in com.github.tnakamot.json.pointer
-
An implementation of lexical analyzer for JSON Pointer.
- JSONPointerReferenceToken - Class in com.github.tnakamot.json.pointer
-
Represents one reference token of a JSON Pointer.
- jsonRoot() - Method in class com.github.tnakamot.json.schema.JSONRootSchema
- JSONRootSchema - Class in com.github.tnakamot.json.schema
- JSONSchema - Class in com.github.tnakamot.json.schema
- JSONSchema() - Constructor for class com.github.tnakamot.json.schema.JSONSchema
- JSONSchemaVersion - Class in com.github.tnakamot.json.schema
-
Represent a version of JSON Schema (e.g.
- JSONText - Class in com.github.tnakamot.json
-
Represents one JSON text.
- JSONToken - Class in com.github.tnakamot.json.token
-
Represents one token in JSON text.
- JSONToken(JSONTokenType, String, StringLocation, JSONText) - Constructor for class com.github.tnakamot.json.token.JSONToken
-
Create one JSON text token.
- JSONToken(JSONTokenType, String, StringLocation, StringLocation, JSONText) - Constructor for class com.github.tnakamot.json.token.JSONToken
-
Create one JSON text token.
- JSONTokenBoolean - Class in com.github.tnakamot.json.token
-
Represents one "boolean" type token in JSON text.
- JSONTokenBoolean(String, StringLocation, StringLocation, JSONText) - Constructor for class com.github.tnakamot.json.token.JSONTokenBoolean
-
Creates one "boolean" type token of a JSON text.
- JSONTokenNull - Class in com.github.tnakamot.json.token
-
Represents one "null" token in JSON text.
- JSONTokenNull(StringLocation, StringLocation, JSONText) - Constructor for class com.github.tnakamot.json.token.JSONTokenNull
-
Creates one "null" type token of a JSON text.
- JSONTokenNumber - Class in com.github.tnakamot.json.token
-
Represents one "number" type token in JSON text.
- JSONTokenNumber(String, StringLocation, StringLocation, JSONText) - Constructor for class com.github.tnakamot.json.token.JSONTokenNumber
-
Creates one "number" type token of a JSON text.
- JSONTokenString - Class in com.github.tnakamot.json.token
-
Represents one "string" type token in JSON text.
- JSONTokenString(String, String, StringLocation, StringLocation, JSONText) - Constructor for class com.github.tnakamot.json.token.JSONTokenString
-
Creates one "string" type token of a JSON text.
- JSONTokenType - Enum in com.github.tnakamot.json.token
-
Represents a type of token in JSON text.
- JSONValue - Class in com.github.tnakamot.json.value
-
Represents one JSON value.
- JSONValueArray - Class in com.github.tnakamot.json.value
-
Represents one JSON 'array' value.
- JSONValueArrayImmutable - Class in com.github.tnakamot.json.value
-
Represents one JSON 'array' value (immutable).
- JSONValueArrayMutable - Class in com.github.tnakamot.json.value
-
Represents one JSON 'array' value (mutable).
- JSONValueArrayMutable() - Constructor for class com.github.tnakamot.json.value.JSONValueArrayMutable
-
Create an instance of a Java representation of an empty JSON 'array' value.
- JSONValueArrayMutable(List<JSONValue>) - Constructor for class com.github.tnakamot.json.value.JSONValueArrayMutable
-
Create an instance of a Java representation of a JSON 'array' value.
- JSONValueBoolean - Class in com.github.tnakamot.json.value
-
Represents one JSON 'boolean' value.
- JSONValueBoolean(JSONTokenBoolean) - Constructor for class com.github.tnakamot.json.value.JSONValueBoolean
-
Create an instance of a Java representation of a JSON boolean value from a JSON boolean token.
- JSONValueNull - Class in com.github.tnakamot.json.value
-
Represents one JSON 'null' value.
- JSONValueNull(JSONToken) - Constructor for class com.github.tnakamot.json.value.JSONValueNull
-
Create an instance of a Java representation of a JSON null value with source JSON text information.
- JSONValueNumber - Class in com.github.tnakamot.json.value
-
Represents one JSON 'number' value.
- JSONValueNumber(double) - Constructor for class com.github.tnakamot.json.value.JSONValueNumber
-
Create an instance of a Java representation of a JSON number value from a Java double value.
- JSONValueNumber(long) - Constructor for class com.github.tnakamot.json.value.JSONValueNumber
-
Create an instance of a Java representation of a JSON number value from a Java long value.
- JSONValueNumber(JSONTokenNumber) - Constructor for class com.github.tnakamot.json.value.JSONValueNumber
-
Create an instance of a Java representation of a JSON number value from a JSON number token.
- JSONValueNumber(String) - Constructor for class com.github.tnakamot.json.value.JSONValueNumber
-
Create an instance of a Java representation of a JSON number value.
- JSONValueObject - Class in com.github.tnakamot.json.value
-
Represents one JSON 'object' value.
- JSONValueObjectImmutable - Class in com.github.tnakamot.json.value
-
Represents one JSON 'object' value (immutable).
- JSONValueObjectImmutable(Map<JSONValueString, JSONValue>) - Constructor for class com.github.tnakamot.json.value.JSONValueObjectImmutable
-
Create an instance of a Java representation of a JSON 'object' value.
- JSONValueObjectImmutable(Map<JSONValueString, JSONValue>, JSONToken, JSONToken) - Constructor for class com.github.tnakamot.json.value.JSONValueObjectImmutable
-
Create an instance of a Java representation of a JSON 'object' value.
- JSONValueObjectMutable - Class in com.github.tnakamot.json.value
-
Represents one JSON 'object' value (mutable).
- JSONValueObjectMutable() - Constructor for class com.github.tnakamot.json.value.JSONValueObjectMutable
-
Create an instance of a Java representation of an empty JSON 'object' value.
- JSONValuePrimitive - Class in com.github.tnakamot.json.value
-
Represents one JSON primitive value.
- JSONValueString - Class in com.github.tnakamot.json.value
-
Represents one JSON 'string' value.
- JSONValueString(JSONTokenString) - Constructor for class com.github.tnakamot.json.value.JSONValueString
-
Create an instance of a Java representation of a JSON string value from a JSON string token.
- JSONValueString(String) - Constructor for class com.github.tnakamot.json.value.JSONValueString
-
Create an instance of a Java representation of a JSON string value.
- JSONValueStructured - Class in com.github.tnakamot.json.value
-
Represents one JSON structured value.
- JSONValueType - Enum in com.github.tnakamot.json.value
-
Represents a type of a JSON value.
K
- keySet() - Method in class com.github.tnakamot.json.value.JSONValueObject
- keySet() - Method in class com.github.tnakamot.json.value.JSONValueObjectImmutable
- keySet() - Method in class com.github.tnakamot.json.value.JSONValueObjectMutable
L
- lastIndexOf(Object) - Method in class com.github.tnakamot.json.value.JSONValueArray
- lastIndexOf(Object) - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
- lastIndexOf(Object) - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- line() - Method in class com.github.tnakamot.json.token.StringLocation
- listIterator() - Method in class com.github.tnakamot.json.value.JSONValueArray
- listIterator() - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
- listIterator() - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- listIterator(int) - Method in class com.github.tnakamot.json.value.JSONValueArray
- listIterator(int) - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
- listIterator(int) - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- location() - Method in exception com.github.tnakamot.json.parser.JSONParserException
-
Returns the location of the problem where the lexical analyzer failed to tokenize the given JSON text or the parse failed.
N
- name() - Method in class com.github.tnakamot.json.JSONText
-
Return a short name of the source of this JSON text.
- name() - Method in class com.github.tnakamot.json.pointer.JSONPointerReferenceToken
-
Unescaped reference token as a member name of a JSON object value.
- NAME_SEPARATOR - com.github.tnakamot.json.token.JSONTokenType
- next() - Method in class com.github.tnakamot.json.parser.JSONLexer
-
Read the JSON text and return the next JSON token.
- next(boolean) - Method in class com.github.tnakamot.json.token.StringLocation
- NULL - com.github.tnakamot.json.token.JSONTokenType
- NULL - com.github.tnakamot.json.value.JSONValueType
- NUMBER - com.github.tnakamot.json.token.JSONTokenType
- NUMBER - com.github.tnakamot.json.value.JSONValueType
- NUMBER_PATTERN - Static variable in class com.github.tnakamot.json.value.JSONValueNumber
-
Regex pattern that exactly matches the "number" tokens defined in RFC 8259 - 6.
- numbersTooBigForDouble() - Method in class com.github.tnakamot.json.parser.JSONParserResult
-
Returns list of numbers that are found to be too big for Java double primitive when parsing.
O
- OBJECT - com.github.tnakamot.json.value.JSONValueType
P
- parent() - Method in class com.github.tnakamot.json.pointer.JSONPointerReferenceToken
-
String representation of the JSON Pointer of the parent.
- parse() - Method in class com.github.tnakamot.json.JSONText
-
Parse this JSON text.
- parse() - Method in class com.github.tnakamot.json.parser.JSONParser
-
Parse the given sequence of JSON tokens and return the root JSON value.
- parse(boolean) - Method in class com.github.tnakamot.json.parser.JSONParser
-
Parse the given sequence of JSON tokens and return the root JSON value.
- parse(JSONParserErrorHandlingOptions) - Method in class com.github.tnakamot.json.JSONText
-
Parse this JSON text.
- pointer() - Method in class com.github.tnakamot.json.pointer.JSONPointerReferenceToken
-
JSON Pointer that this reference token belongs to.
- position() - Method in class com.github.tnakamot.json.token.StringLocation
- previous() - Method in class com.github.tnakamot.json.pointer.JSONPointerReferenceToken
-
Previous reference token which represents a parent node.
- previous() - Method in class com.github.tnakamot.json.token.StringLocation
- put(JSONValueString, JSONValue) - Method in class com.github.tnakamot.json.value.JSONValueObject
- put(JSONValueString, JSONValue) - Method in class com.github.tnakamot.json.value.JSONValueObjectImmutable
-
Deprecated.
- put(JSONValueString, JSONValue) - Method in class com.github.tnakamot.json.value.JSONValueObjectMutable
- put(String, boolean) - Method in class com.github.tnakamot.json.value.JSONValueObject
-
Associates the specified boolean value with the specified key in this JSON object.
- put(String, double) - Method in class com.github.tnakamot.json.value.JSONValueObject
-
Associates the specified number value with the specified key in this JSON object.
- put(String, long) - Method in class com.github.tnakamot.json.value.JSONValueObject
-
Associates the specified number value with the specified key in this JSON object.
- put(String, JSONValue) - Method in class com.github.tnakamot.json.value.JSONValueObject
-
Associates the specified value with the specified key in this JSON object.
- put(String, String) - Method in class com.github.tnakamot.json.value.JSONValueObject
-
Associates the specified string value with the specified key in this JSON object.
- putAll(Map<? extends JSONValueString, ? extends JSONValue>) - Method in class com.github.tnakamot.json.value.JSONValueObject
- putAll(Map<? extends JSONValueString, ? extends JSONValue>) - Method in class com.github.tnakamot.json.value.JSONValueObjectImmutable
-
Deprecated.
- putAll(Map<? extends JSONValueString, ? extends JSONValue>) - Method in class com.github.tnakamot.json.value.JSONValueObjectMutable
R
- range() - Method in class com.github.tnakamot.json.token.JSONToken
-
Location of this token within the source JSON text.
- readAsSchema(JSONText) - Static method in class com.github.tnakamot.json.schema.JSONRootSchema
-
Read the given JSON Text (JSON Document) as JSON Schema.
- readURLToString(URL, Charset) - Static method in class com.github.tnakamot.json.Utils
- remove(int) - Method in class com.github.tnakamot.json.value.JSONValueArray
- remove(int) - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
-
Deprecated.
- remove(int) - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- remove(Object) - Method in class com.github.tnakamot.json.value.JSONValueArray
- remove(Object) - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
-
Deprecated.
- remove(Object) - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- remove(Object) - Method in class com.github.tnakamot.json.value.JSONValueObject
- remove(Object) - Method in class com.github.tnakamot.json.value.JSONValueObjectImmutable
-
Deprecated.
- remove(Object) - Method in class com.github.tnakamot.json.value.JSONValueObjectMutable
- remove(String) - Method in class com.github.tnakamot.json.value.JSONValueObject
- removeAll(Collection<?>) - Method in class com.github.tnakamot.json.value.JSONValueArray
- removeAll(Collection<?>) - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
-
Deprecated.
- removeAll(Collection<?>) - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- retainAll(Collection<?>) - Method in class com.github.tnakamot.json.value.JSONValueArray
- retainAll(Collection<?>) - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
-
Deprecated.
- retainAll(Collection<?>) - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- root() - Method in class com.github.tnakamot.json.parser.JSONParserResult
-
Returns the root JSON value that the parser found.
S
- set(int, JSONValue) - Method in class com.github.tnakamot.json.value.JSONValueArray
- set(int, JSONValue) - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
-
Deprecated.
- set(int, JSONValue) - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- showErrorLine() - Method in class com.github.tnakamot.json.parser.JSONParserErrorHandlingOptions
-
Returns whether an error message should show actual JSON text line where the problme happened with markers to indicate which character(s) have the problem.
- showErrorLine(boolean) - Method in class com.github.tnakamot.json.parser.JSONParserErrorHandlingOptions.Builder
-
Set
JSONParserErrorHandlingOptions.showErrorLine()
option. - showLineAndColumnNumber() - Method in class com.github.tnakamot.json.parser.JSONParserErrorHandlingOptions
-
Returns whether an error message should show line and column number instead of character position within a JSON text source
- showLineAndColumnNumber(boolean) - Method in class com.github.tnakamot.json.parser.JSONParserErrorHandlingOptions.Builder
- showURI() - Method in class com.github.tnakamot.json.parser.JSONParserErrorHandlingOptions
-
Returns whether an error message should show URI of a JSON text source instead of a short name.
- showURI(boolean) - Method in class com.github.tnakamot.json.parser.JSONParserErrorHandlingOptions.Builder
-
Set
JSONParserErrorHandlingOptions.showURI()
option. - size() - Method in class com.github.tnakamot.json.value.JSONValueArray
- size() - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
- size() - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- size() - Method in class com.github.tnakamot.json.value.JSONValueObject
- size() - Method in class com.github.tnakamot.json.value.JSONValueObjectImmutable
- size() - Method in class com.github.tnakamot.json.value.JSONValueObjectMutable
- source() - Method in class com.github.tnakamot.json.JSONText
-
Return the object which represents the source of this JSON text.
- source() - Method in exception com.github.tnakamot.json.parser.JSONParserException
- source() - Method in class com.github.tnakamot.json.token.JSONToken
-
Source JSON text where this token was extracted from.
- STRING - com.github.tnakamot.json.token.JSONTokenType
- STRING - com.github.tnakamot.json.value.JSONValueType
- StringLocation - Class in com.github.tnakamot.json.token
-
Represents a location in a
String
. - StringRange - Class in com.github.tnakamot.json.token
-
Represents a range in a
String
. - StringRange(StringLocation, StringLocation) - Constructor for class com.github.tnakamot.json.token.StringRange
- subList(int, int) - Method in class com.github.tnakamot.json.value.JSONValueArray
- subList(int, int) - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
- subList(int, int) - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- SUPPORTED_VERSIONS - Static variable in class com.github.tnakamot.json.schema.JSONSchemaVersion
T
- text() - Method in exception com.github.tnakamot.json.pointer.InvalidJSONPointerException
-
Returns the JSON Pointer text that has an error.
- text() - Method in class com.github.tnakamot.json.pointer.JSONPointer
-
Return the pointer string.
- text() - Method in class com.github.tnakamot.json.pointer.JSONPointerReferenceToken
-
escaped reference token.
- text() - Method in class com.github.tnakamot.json.token.JSONToken
-
Text representation of this token as it appears in the source JSON text.
- text() - Method in class com.github.tnakamot.json.token.JSONTokenNumber
-
Text representation of this token as it appears in the source JSON text.
- text() - Method in class com.github.tnakamot.json.value.JSONValueNumber
-
Return a JSON text representation of this JSON number value.
- toArray() - Method in class com.github.tnakamot.json.value.JSONValueArray
- toArray() - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
- toArray() - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- toArray(T[]) - Method in class com.github.tnakamot.json.value.JSONValueArray
- toArray(T[]) - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
- toArray(T[]) - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- toDouble() - Method in class com.github.tnakamot.json.value.JSONValueNumber
-
This method returns a Java double value that this JSON number represents.
- toImmutable() - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
-
Return the copy of this JSON array as an immutable Java array.
- toImmutable() - Method in class com.github.tnakamot.json.value.JSONValueObjectMutable
-
Return the copy of this JSON object as an immutable Java object.
- toImmutable(JSONToken, JSONToken) - Method in class com.github.tnakamot.json.value.JSONValueObjectMutable
-
Return the copy of this JSON object as an immutable Java object with token information.
- toImmutable(JSONToken, JSONToken) - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
-
Return the copy of this JSON array as an immutable Java array.
- token() - Method in exception com.github.tnakamot.json.pointer.InvalidJSONPointerWithTokenException
-
The reference token which has an error.
- token() - Method in class com.github.tnakamot.json.value.JSONValuePrimitive
-
The source token of this JSON value.
- tokenize(boolean) - Method in class com.github.tnakamot.json.pointer.JSONPointerLexer
-
Tokenize the given JSON Pointer.
- tokens() - Method in class com.github.tnakamot.json.JSONText
-
Tokenize this JSON text.
- tokens() - Method in class com.github.tnakamot.json.pointer.JSONPointer
-
Return the reference tokens.
- tokens(JSONParserErrorHandlingOptions) - Method in class com.github.tnakamot.json.JSONText
-
Tokenize this JSON text.
- toLong() - Method in class com.github.tnakamot.json.value.JSONValueNumber
-
This method returns a Java long value that this token represents.
- toMutable() - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
-
Return the copy of this JSON array as a mutable Java object.
- toMutable() - Method in class com.github.tnakamot.json.value.JSONValueObjectImmutable
-
Return the copy of this JSON object as a mutable Java object.
- toString() - Method in class com.github.tnakamot.json.JSONText
- toString() - Method in class com.github.tnakamot.json.value.JSONValueBoolean
- toString() - Method in class com.github.tnakamot.json.value.JSONValueNull
- toString() - Method in class com.github.tnakamot.json.value.JSONValueNumber
- toString() - Method in class com.github.tnakamot.json.value.JSONValueString
- toTokenBytes() - Method in class com.github.tnakamot.json.value.JSONValue
-
Convert this JSON value to a byte array which can be saved as a JSON text to a file or transmitted to network.
- toTokenBytes(String, String) - Method in class com.github.tnakamot.json.value.JSONValue
-
Convert this JSON value to a byte array which can be saved as a JSON text to a file or transmitted to network.
- toTokenString() - Method in class com.github.tnakamot.json.value.JSONValue
-
Convert this JSON value to
String
which can be saved as a JSON text to a file or transmitted to network. - toTokenString() - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
- toTokenString() - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- toTokenString() - Method in class com.github.tnakamot.json.value.JSONValueBoolean
- toTokenString() - Method in class com.github.tnakamot.json.value.JSONValueNull
- toTokenString() - Method in class com.github.tnakamot.json.value.JSONValueNumber
- toTokenString() - Method in class com.github.tnakamot.json.value.JSONValueObjectImmutable
- toTokenString() - Method in class com.github.tnakamot.json.value.JSONValueObjectMutable
- toTokenString() - Method in class com.github.tnakamot.json.value.JSONValueString
- toTokenString(String, String) - Method in class com.github.tnakamot.json.value.JSONValue
-
Convert this JSON value to
String
which can be saved as a JSON text to a file or transmitted to network. - toTokenString(String, String) - Method in class com.github.tnakamot.json.value.JSONValueArrayImmutable
- toTokenString(String, String) - Method in class com.github.tnakamot.json.value.JSONValueArrayMutable
- toTokenString(String, String) - Method in class com.github.tnakamot.json.value.JSONValueBoolean
- toTokenString(String, String) - Method in class com.github.tnakamot.json.value.JSONValueNull
- toTokenString(String, String) - Method in class com.github.tnakamot.json.value.JSONValueNumber
- toTokenString(String, String) - Method in class com.github.tnakamot.json.value.JSONValueObjectImmutable
- toTokenString(String, String) - Method in class com.github.tnakamot.json.value.JSONValueObjectMutable
- toTokenString(String, String) - Method in class com.github.tnakamot.json.value.JSONValueString
- TRUE - Static variable in class com.github.tnakamot.json.value.JSONValueBoolean
- type() - Method in class com.github.tnakamot.json.token.JSONToken
-
Type of this token.
- type() - Method in class com.github.tnakamot.json.value.JSONValue
-
Type of this JSON value.
U
- UnsupportedJSONSchemaVersionException - Exception in com.github.tnakamot.json.schema
- UnsupportedJSONSchemaVersionException(JSONSchemaVersion, JSONSchemaVersion[]) - Constructor for exception com.github.tnakamot.json.schema.UnsupportedJSONSchemaVersionException
- uri() - Method in class com.github.tnakamot.json.JSONText
-
Return a URI of the source of this JSON text.
- uri() - Method in exception com.github.tnakamot.json.schema.InvalidJSONSchemaURIException
- URIs() - Method in class com.github.tnakamot.json.schema.JSONSchemaVersion
- Utils - Class in com.github.tnakamot.json
-
Collection of utility methods.
- Utils() - Constructor for class com.github.tnakamot.json.Utils
V
- VALID_VERSIONS - Static variable in class com.github.tnakamot.json.schema.JSONSchemaVersion
- value() - Method in class com.github.tnakamot.json.token.JSONTokenBoolean
- value() - Method in class com.github.tnakamot.json.token.JSONTokenString
-
Returns the string value of this token represents.
- value() - Method in class com.github.tnakamot.json.value.JSONValueBoolean
-
Return the value represented by Java boolean primitives of this JSON boolean value.
- value() - Method in class com.github.tnakamot.json.value.JSONValueString
-
Return the value represented by a Java
String
object of this JSON string value. - VALUE_SEPARATOR - com.github.tnakamot.json.token.JSONTokenType
- valueOf(boolean) - Static method in class com.github.tnakamot.json.value.JSONValueBoolean
-
Convert Java boolean primitive to a JSON boolean value
- valueOf(String) - Static method in enum com.github.tnakamot.json.token.JSONTokenType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.github.tnakamot.json.value.JSONValueType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.github.tnakamot.json.token.JSONTokenType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Method in class com.github.tnakamot.json.value.JSONValueObject
- values() - Method in class com.github.tnakamot.json.value.JSONValueObjectImmutable
- values() - Method in class com.github.tnakamot.json.value.JSONValueObjectMutable
- values() - Static method in enum com.github.tnakamot.json.value.JSONValueType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- version() - Method in class com.github.tnakamot.json.schema.JSONRootSchema
- versionID() - Method in class com.github.tnakamot.json.schema.JSONSchemaVersion
W
- warningStream() - Method in class com.github.tnakamot.json.parser.JSONParserErrorHandlingOptions
-
Returns the stream where warnings should be printed.
- warningStream(PrintStream) - Method in class com.github.tnakamot.json.parser.JSONParserErrorHandlingOptions.Builder
-
Set
JSONParserErrorHandlingOptions.warningStream()
option. - WrongValueTypeException - Exception in com.github.tnakamot.json.value
-
Thrown when this library gets a JSON value of unexpected type.
- WrongValueTypeException(String, JSONValueType, JSONValueType) - Constructor for exception com.github.tnakamot.json.value.WrongValueTypeException
All Classes All Packages