Index

A B C D E F G H I J L M N P R S T V 
All Classes and Interfaces|All Packages|Serialized Form

A

add(int, JsonElement) - Method in class technology.sola.json.JsonArray
 
add(Boolean) - Method in class technology.sola.json.JsonArray
Appends the specified boolean to the end of this JsonArray.
add(Double) - Method in class technology.sola.json.JsonArray
Appends the specified double to the end of this JsonArray.
add(Float) - Method in class technology.sola.json.JsonArray
Appends the specified float to the end of this JsonArray.
add(Integer) - Method in class technology.sola.json.JsonArray
Appends the specified integer to the end of this JsonArray.
add(Long) - Method in class technology.sola.json.JsonArray
Appends the specified long to the end of this JsonArray.
add(String) - Method in class technology.sola.json.JsonArray
Appends the specified string to the end of this JsonArray.
add(JsonArray) - Method in class technology.sola.json.JsonArray
Appends the specified JsonArray to the end of this JsonArray.
add(JsonElement) - Method in class technology.sola.json.JsonArray
 
add(JsonObject) - Method in class technology.sola.json.JsonArray
Appends the specified JsonObject to the end of this JsonArray.
addNull() - Method in class technology.sola.json.JsonArray
Appends JsonElementType.NULL to the end of this JsonArray.
asArray() - Method in class technology.sola.json.JsonElement
Returns this JsonElement's value as a JsonArray if its type is JsonElementType.JSON_ARRAY or else throws JsonElementTypeException.
asBoolean() - Method in class technology.sola.json.JsonElement
Returns this JsonElement's value as a boolean if its type is JsonElementType.BOOLEAN or else throws JsonElementTypeException.
asDouble() - Method in class technology.sola.json.JsonElement
Returns this JsonElement's value as a double if its type is JsonElementType.DOUBLE or else throws JsonElementTypeException.
asFloat() - Method in class technology.sola.json.JsonElement
Returns this JsonElement's value as a float if its type is JsonElementType.DOUBLE or else throws JsonElementTypeException.
asInt() - Method in class technology.sola.json.JsonElement
Returns this JsonElement's value as an int if its type is JsonElementType.LONG or else throws JsonElementTypeException.
asLong() - Method in class technology.sola.json.JsonElement
Returns this JsonElement's value as a long if its type is JsonElementType.LONG or else throws JsonElementTypeException.
asObject() - Method in class technology.sola.json.JsonElement
Returns this JsonElement's value as a JsonObject if its type is JsonElementType.JSON_OBJECT or else throws JsonElementTypeException.
asString() - Method in class technology.sola.json.JsonElement
Returns this JsonElement's value as a String if its type is JsonElementType.STRING or else throws JsonElementTypeException.

B

BOOLEAN - Enum constant in enum class technology.sola.json.JsonElementType
True or false.

C

COLON - Enum constant in enum class technology.sola.json.tokenizer.TokenType
:
column() - Method in record class technology.sola.json.tokenizer.Token
Returns the value of the column record component.
COMMA - Enum constant in enum class technology.sola.json.tokenizer.TokenType
,

D

DOUBLE - Enum constant in enum class technology.sola.json.JsonElementType
Decimal number.

E

EOF - Enum constant in enum class technology.sola.json.tokenizer.TokenType
End of the file.
equals(Object) - Method in record class technology.sola.json.serializer.JsonSerializerConfig
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class technology.sola.json.tokenizer.Token
Indicates whether some other object is "equal to" this one.

F

FALSE - Enum constant in enum class technology.sola.json.tokenizer.TokenType
false

G

getActual() - Method in exception technology.sola.json.parser.exception.InvalidSyntaxException
 
getActual() - Method in exception technology.sola.json.tokenizer.exception.InvalidKeywordException
 
getArray(int) - Method in class technology.sola.json.JsonArray
Returns the JsonArray at the specified position in this JsonArray.
getArray(String) - Method in class technology.sola.json.JsonObject
Returns the JsonArray for the specified key.
getArray(String, JsonArray) - Method in class technology.sola.json.JsonObject
Returns the JsonArray for the specified key.
getBoolean(int) - Method in class technology.sola.json.JsonArray
Returns the boolean at the specified position in this JsonArray.
getBoolean(String) - Method in class technology.sola.json.JsonObject
Returns the boolean for the specified key.
getBoolean(String, Boolean) - Method in class technology.sola.json.JsonObject
Returns the boolean for the specified key.
getColumn() - Method in interface technology.sola.json.exception.SolaJsonParsingError
 
getColumn() - Method in exception technology.sola.json.parser.exception.InvalidSyntaxException
 
getColumn() - Method in exception technology.sola.json.tokenizer.exception.InvalidCharacterException
 
getColumn() - Method in exception technology.sola.json.tokenizer.exception.InvalidControlCharacterException
 
getColumn() - Method in exception technology.sola.json.tokenizer.exception.InvalidDecimalNumberException
 
getColumn() - Method in exception technology.sola.json.tokenizer.exception.InvalidExponentNumberException
 
getColumn() - Method in exception technology.sola.json.tokenizer.exception.InvalidKeywordException
 
getColumn() - Method in exception technology.sola.json.tokenizer.exception.InvalidLeadingZeroNumberException
 
getColumn() - Method in exception technology.sola.json.tokenizer.exception.InvalidNegativeNumberException
 
getColumn() - Method in exception technology.sola.json.tokenizer.exception.InvalidUnicodeCharacterException
 
getColumn() - Method in exception technology.sola.json.tokenizer.exception.StringNotClosedException
 
getDouble(int) - Method in class technology.sola.json.JsonArray
Returns the double at the specified position in this JsonArray.
getDouble(String) - Method in class technology.sola.json.JsonObject
Returns the double for the specified key.
getDouble(String, Double) - Method in class technology.sola.json.JsonObject
Returns the double for the specified key.
getExpected() - Method in exception technology.sola.json.parser.exception.InvalidSyntaxException
 
getExpected() - Method in exception technology.sola.json.tokenizer.exception.InvalidKeywordException
 
getFloat(int) - Method in class technology.sola.json.JsonArray
Returns the float at the specified position in this JsonArray.
getFloat(String) - Method in class technology.sola.json.JsonObject
Returns the float for the specified key.
getFloat(String, Float) - Method in class technology.sola.json.JsonObject
Returns the float for the specified key.
getInt(int) - Method in class technology.sola.json.JsonArray
Returns the integer at the specified position in this JsonArray.
getInt(String) - Method in class technology.sola.json.JsonObject
Returns the integer for the specified key.
getInt(String, Integer) - Method in class technology.sola.json.JsonObject
Returns the integer for the specified key.
getInvalidCharacter() - Method in exception technology.sola.json.tokenizer.exception.InvalidCharacterException
 
getLine() - Method in interface technology.sola.json.exception.SolaJsonParsingError
 
getLine() - Method in exception technology.sola.json.parser.exception.InvalidSyntaxException
 
getLine() - Method in exception technology.sola.json.tokenizer.exception.InvalidCharacterException
 
getLine() - Method in exception technology.sola.json.tokenizer.exception.InvalidControlCharacterException
 
getLine() - Method in exception technology.sola.json.tokenizer.exception.InvalidDecimalNumberException
 
getLine() - Method in exception technology.sola.json.tokenizer.exception.InvalidExponentNumberException
 
getLine() - Method in exception technology.sola.json.tokenizer.exception.InvalidKeywordException
 
getLine() - Method in exception technology.sola.json.tokenizer.exception.InvalidLeadingZeroNumberException
 
getLine() - Method in exception technology.sola.json.tokenizer.exception.InvalidNegativeNumberException
 
getLine() - Method in exception technology.sola.json.tokenizer.exception.InvalidUnicodeCharacterException
 
getLine() - Method in exception technology.sola.json.tokenizer.exception.StringNotClosedException
 
getLong(int) - Method in class technology.sola.json.JsonArray
Returns the long at the specified position in this JsonArray.
getLong(String) - Method in class technology.sola.json.JsonObject
Returns the long for the specified key.
getLong(String, Long) - Method in class technology.sola.json.JsonObject
Returns the long for the specified key.
getNextToken() - Method in class technology.sola.json.tokenizer.JsonTokenizer
 
getObject(int) - Method in class technology.sola.json.JsonArray
Returns the JsonObject at the specified position in this JsonArray.
getObject(String) - Method in class technology.sola.json.JsonObject
Returns the JsonObject for the specified key.
getObject(String, JsonObject) - Method in class technology.sola.json.JsonObject
Returns the JsonObject for the specified key.
getObjectClass() - Method in interface technology.sola.json.mapper.JsonMapper
 
getString(int) - Method in class technology.sola.json.JsonArray
Returns the String at the specified position in this JsonArray.
getString(String) - Method in class technology.sola.json.JsonObject
Returns the string for the specified key.
getString(String, String) - Method in class technology.sola.json.JsonObject
Returns the string for the specified key.
getType() - Method in class technology.sola.json.JsonElement
 

H

hashCode() - Method in record class technology.sola.json.serializer.JsonSerializerConfig
Returns a hash code value for this object.
hashCode() - Method in record class technology.sola.json.tokenizer.Token
Returns a hash code value for this object.

I

InvalidCharacterException - Exception in technology.sola.json.tokenizer.exception
Exception for when an invalid character is found during tokenization.
InvalidCharacterException(char, int, int) - Constructor for exception technology.sola.json.tokenizer.exception.InvalidCharacterException
Creates a new instance of this exception.
InvalidControlCharacterException - Exception in technology.sola.json.tokenizer.exception
Exception thrown when an invalid control character is found during tokenization.
InvalidControlCharacterException(int, int) - Constructor for exception technology.sola.json.tokenizer.exception.InvalidControlCharacterException
Creates a new instance of this exception.
InvalidDecimalNumberException - Exception in technology.sola.json.tokenizer.exception
Exception thrown when an invalid decimal number is found during tokenization.
InvalidDecimalNumberException(int, int) - Constructor for exception technology.sola.json.tokenizer.exception.InvalidDecimalNumberException
Creates a new instance of this exception.
InvalidExponentNumberException - Exception in technology.sola.json.tokenizer.exception
Exception thrown when an invalid exponential number is found during tokenization.
InvalidExponentNumberException(int, int) - Constructor for exception technology.sola.json.tokenizer.exception.InvalidExponentNumberException
Creates a new instance of this exception.
InvalidKeywordException - Exception in technology.sola.json.tokenizer.exception
Exception for when an invalid keyword is found during tokenization.
InvalidKeywordException(String, String, char, int, int) - Constructor for exception technology.sola.json.tokenizer.exception.InvalidKeywordException
Creates a new instance of this exception.
InvalidLeadingZeroNumberException - Exception in technology.sola.json.tokenizer.exception
Exception thrown when an invalid number starts with a leading zero is found during tokenization.
InvalidLeadingZeroNumberException(int, int) - Constructor for exception technology.sola.json.tokenizer.exception.InvalidLeadingZeroNumberException
Creates a new instance of this exception.
InvalidNegativeNumberException - Exception in technology.sola.json.tokenizer.exception
Exception thrown when an invalid negative number is found during tokenization.
InvalidNegativeNumberException(int, int) - Constructor for exception technology.sola.json.tokenizer.exception.InvalidNegativeNumberException
Creates a new instance of this exception.
InvalidSyntaxException - Exception in technology.sola.json.parser.exception
Exception thrown when invalid syntax is discovered during parsing.
InvalidSyntaxException(Token, TokenType...) - Constructor for exception technology.sola.json.parser.exception.InvalidSyntaxException
Creates a new instance of this exception.
InvalidUnicodeCharacterException - Exception in technology.sola.json.tokenizer.exception
Exception thrown when an invalid Unicode character is found during tokenization.
InvalidUnicodeCharacterException(int, int) - Constructor for exception technology.sola.json.tokenizer.exception.InvalidUnicodeCharacterException
Creates a new instance of this exception.
isNull() - Method in class technology.sola.json.JsonElement
 
isNull(int) - Method in class technology.sola.json.JsonArray
Returns true if the JsonElement at the specified position in this JsonArray as of type JsonElementType.NULL.
isNull(String) - Method in class technology.sola.json.JsonObject
Returns true if JsonElementType.NULL is at specified key.

J

JSON_ARRAY - Enum constant in enum class technology.sola.json.JsonElementType
JSON_OBJECT - Enum constant in enum class technology.sola.json.JsonElementType
JsonArray - Class in technology.sola.json
JsonArray is an array of JsonElements.
JsonArray() - Constructor for class technology.sola.json.JsonArray
Constructs an empty JsonArray with an initial capacity of ten.
JsonArray(int) - Constructor for class technology.sola.json.JsonArray
Constructs an empty JsonArray with specified initial capacity.
JsonArray(Collection<? extends JsonElement>) - Constructor for class technology.sola.json.JsonArray
Constructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator.
JsonElement - Class in technology.sola.json
JsonElement represents any valid JSON value.
JsonElement() - Constructor for class technology.sola.json.JsonElement
Creates a JsonElement with type JsonElementType.NULL.
JsonElement(Boolean) - Constructor for class technology.sola.json.JsonElement
Creates a JsonElement with type JsonElementType.BOOLEAN if value is non-null or JsonElementType.NULL if null.
JsonElement(Double) - Constructor for class technology.sola.json.JsonElement
Creates a JsonElement with type JsonElementType.DOUBLE if value is non-null or JsonElementType.NULL if null.
JsonElement(Float) - Constructor for class technology.sola.json.JsonElement
Creates a JsonElement with type JsonElementType.DOUBLE if value is non-null or JsonElementType.NULL if null.
JsonElement(Integer) - Constructor for class technology.sola.json.JsonElement
Creates a JsonElement with type JsonElementType.LONG if value is non-null or JsonElementType.NULL if null.
JsonElement(Long) - Constructor for class technology.sola.json.JsonElement
Creates a JsonElement with type JsonElementType.LONG if value is non-null or JsonElementType.NULL if null.
JsonElement(String) - Constructor for class technology.sola.json.JsonElement
Creates a JsonElement with type JsonElementType.STRING if value is non-null or JsonElementType.NULL if null.
JsonElement(JsonArray) - Constructor for class technology.sola.json.JsonElement
Creates a JsonElement with type JsonElementType.JSON_ARRAY if value is non-null or JsonElementType.NULL if null.
JsonElement(JsonObject) - Constructor for class technology.sola.json.JsonElement
Creates a JsonElement with type JsonElementType.JSON_OBJECT if value is non-null or JsonElementType.NULL if null.
JsonElementType - Enum Class in technology.sola.json
Represents different types of JsonElements.
JsonElementTypeException - Exception in technology.sola.json.exception
Exception thrown when JsonElement is used in an unexpected way.
JsonElementTypeException(JsonElementType, JsonElementType) - Constructor for exception technology.sola.json.exception.JsonElementTypeException
Creates a new instance of this exception.
JsonMapper<T> - Interface in technology.sola.json.mapper
JsonMapper defines how a class will be converted to and from JsonObjects.
JsonObject - Class in technology.sola.json
JsonObject is a Map of JsonElement.
JsonObject() - Constructor for class technology.sola.json.JsonObject
Constructs an empty JsonObject with the default initial capacity (16) and the default load factor (0.75).
JsonObject(int) - Constructor for class technology.sola.json.JsonObject
Constructs an empty JsonObject with the specified initial capacity and the default load factor (0.75).
JsonObject(int, float) - Constructor for class technology.sola.json.JsonObject
Constructs an empty JsonObject with the specified initial capacity and the specified load factor.
JsonParser - Class in technology.sola.json.parser
A JSON parser implementation.
JsonParser(JsonTokenizer) - Constructor for class technology.sola.json.parser.JsonParser
Creates a new instance utilizing the provided JsonTokenizer.
JsonSerializer - Class in technology.sola.json.serializer
JsonSerializer contains methods for serializing JsonElements, JsonObjects and JsonArrays.
JsonSerializer(JsonSerializerConfig) - Constructor for class technology.sola.json.serializer.JsonSerializer
Creates an instance of JsonSerializer with desired JsonSerializerConfig.
JsonSerializerConfig - Record Class in technology.sola.json.serializer
Holds configuration properties for JsonSerializer.
JsonSerializerConfig(int) - Constructor for record class technology.sola.json.serializer.JsonSerializerConfig
Creates an instance of a JsonSerializerConfig record class.
JsonTokenizer - Class in technology.sola.json.tokenizer
A JSON tokenizer implementation.
JsonTokenizer(String) - Constructor for class technology.sola.json.tokenizer.JsonTokenizer
Creates a JsonTokenizer for the specified string.

L

L_BRACKET - Enum constant in enum class technology.sola.json.tokenizer.TokenType
[
L_CURLY - Enum constant in enum class technology.sola.json.tokenizer.TokenType
{
line() - Method in record class technology.sola.json.tokenizer.Token
Returns the value of the line record component.
LONG - Enum constant in enum class technology.sola.json.JsonElementType
Long or integer.

M

merge(JsonObject) - Method in class technology.sola.json.JsonObject
Merges this JsonObject with another resulting in a new JsonObject.

N

NULL - Enum constant in enum class technology.sola.json.JsonElementType
null.
NULL - Enum constant in enum class technology.sola.json.tokenizer.TokenType
null
NUMBER - Enum constant in enum class technology.sola.json.tokenizer.TokenType
((-[1-9])|0)[0-9]+(.[0-9]+)?([eE][-+]?[0-9]+)

P

parse() - Method in class technology.sola.json.parser.JsonParser
Parses utilizing the provided JsonTokenizer.
parse(String) - Method in class technology.sola.json.SolaJson
Parses a JSON string into a JsonElement.
parse(String, JsonMapper<T>) - Method in class technology.sola.json.SolaJson
Parses a JSON string into an object of type T using a JsonMapper.
parseList(String, JsonMapper<T>) - Method in class technology.sola.json.SolaJson
Parses a JSON string into a List of type T using a JsonMapper.
put(String, Boolean) - Method in class technology.sola.json.JsonObject
Associates a boolean with specified key.
put(String, Double) - Method in class technology.sola.json.JsonObject
Associates a double with specified key.
put(String, Float) - Method in class technology.sola.json.JsonObject
Associates a float with specified key.
put(String, Integer) - Method in class technology.sola.json.JsonObject
Associates a integer with specified key.
put(String, Long) - Method in class technology.sola.json.JsonObject
Associates a long with specified key.
put(String, String) - Method in class technology.sola.json.JsonObject
Associates a string with specified key.
put(String, JsonArray) - Method in class technology.sola.json.JsonObject
Associates a JsonArray with specified key.
put(String, JsonElement) - Method in class technology.sola.json.JsonObject
 
put(String, JsonObject) - Method in class technology.sola.json.JsonObject
Associates a JsonObject with specified key.
putNull(String) - Method in class technology.sola.json.JsonObject

R

R_BRACKET - Enum constant in enum class technology.sola.json.tokenizer.TokenType
]
R_CURLY - Enum constant in enum class technology.sola.json.tokenizer.TokenType
}

S

serialize(JsonArray) - Method in class technology.sola.json.serializer.JsonSerializer
Serializes a JsonArray to a String utilizing the current JsonSerializerConfig.
serialize(JsonElement) - Method in class technology.sola.json.serializer.JsonSerializer
Serializes a JsonElement to a String utilizing the current JsonSerializerConfig.
serialize(JsonObject) - Method in class technology.sola.json.serializer.JsonSerializer
Serializes a JsonObject to a String utilizing the current JsonSerializerConfig.
SolaJson - Class in technology.sola.json
SolaJson contains methods for parsing strings into JsonElements and serializing JsonElements into strings.
SolaJson() - Constructor for class technology.sola.json.SolaJson
Creates a new SolaJson instance with default JsonSerializerConfig.
SolaJson(JsonSerializerConfig) - Constructor for class technology.sola.json.SolaJson
Creates a new SolaJson instance with desired JsonSerializerConfig.
SolaJsonParsingError - Interface in technology.sola.json.exception
SolaJsonParsingError contains general information about an error that happened while parsing JSON.
spaces() - Method in record class technology.sola.json.serializer.JsonSerializerConfig
Returns the value of the spaces record component.
STRING - Enum constant in enum class technology.sola.json.JsonElementType
Sting of characters.
STRING - Enum constant in enum class technology.sola.json.tokenizer.TokenType
" (Any codepoint except " or \ or control characters) "
stringify(List<T>, JsonMapper<T>) - Method in class technology.sola.json.SolaJson
Serializes a list of objects of type T to a string using a JsonMapper.
stringify(JsonArray) - Method in class technology.sola.json.SolaJson
Serializes a JsonArray.
stringify(JsonObject) - Method in class technology.sola.json.SolaJson
Serializes a JsonObject.
stringify(T, JsonMapper<T>) - Method in class technology.sola.json.SolaJson
Serializes an object of type T to a string using a JsonMapper.
StringNotClosedException - Exception in technology.sola.json.tokenizer.exception
Exception thrown when a string was discovered to be not closed during tokenization.
StringNotClosedException(int, int) - Constructor for exception technology.sola.json.tokenizer.exception.StringNotClosedException
Creates a new instance of this exception.

T

technology.sola.json - module technology.sola.json
Defines the sola-json API.
technology.sola.json - package technology.sola.json
This package provides the core classes for sola-json.
technology.sola.json.exception - package technology.sola.json.exception
This package provides various exceptions for errors that may happen during various sola-json operations.
technology.sola.json.mapper - package technology.sola.json.mapper
This package provides classes for mapping between Java objects and JSON.
technology.sola.json.parser - package technology.sola.json.parser
This package provides functionality for parsing JSON utilizing a JsonTokenizer.
technology.sola.json.parser.exception - package technology.sola.json.parser.exception
This package provides various exceptions for errors that may happen during parsing.
technology.sola.json.serializer - package technology.sola.json.serializer
This package provides functionality for serializing JsonElement, JsonObject and JsonArray.
technology.sola.json.tokenizer - package technology.sola.json.tokenizer
This package provides functionality for tokenizing a JSON string.
technology.sola.json.tokenizer.exception - package technology.sola.json.tokenizer.exception
This package provides various exceptions for errors that may happen during tokenization.
toJson(List<T>) - Method in interface technology.sola.json.mapper.JsonMapper
Converts a List of T into a JsonArray.
toJson(T) - Method in interface technology.sola.json.mapper.JsonMapper
Converts object of type T into a JsonObject.
Token - Record Class in technology.sola.json.tokenizer
Creates a new token instance of TokenType with value.
Token(TokenType, int, int) - Constructor for record class technology.sola.json.tokenizer.Token
Creates a new token instance of TokenType that does not have a value.
Token(TokenType, String, int, int) - Constructor for record class technology.sola.json.tokenizer.Token
Creates an instance of a Token record class.
TokenType - Enum Class in technology.sola.json.tokenizer
Tokens that JsonTokenizer will recognize.
toList(JsonArray) - Method in interface technology.sola.json.mapper.JsonMapper
Converts a JsonArray into a List of specified type T.
toObject(JsonObject) - Method in interface technology.sola.json.mapper.JsonMapper
Converts a JsonObject into an object of type T.
toString() - Method in class technology.sola.json.JsonArray
Formats this JsonArray as a string with no indentation.
toString() - Method in class technology.sola.json.JsonElement
Formats this JsonElement as a string with no indentation.
toString() - Method in class technology.sola.json.JsonObject
Formats this JsonObject as a string with no indentation.
toString() - Method in record class technology.sola.json.serializer.JsonSerializerConfig
Returns a string representation of this record class.
toString() - Method in record class technology.sola.json.tokenizer.Token
Returns a string representation of this record class.
toString(int) - Method in class technology.sola.json.JsonArray
Formats this JsonArray as a string with specified number of spaces for indentation.
toString(int) - Method in class technology.sola.json.JsonElement
Formats this JsonElement as a string with specified spaces for indentation.
toString(int) - Method in class technology.sola.json.JsonObject
Formats this JsonObject as a string with specified spaces for indentation.
TRUE - Enum constant in enum class technology.sola.json.tokenizer.TokenType
true
type() - Method in record class technology.sola.json.tokenizer.Token
Returns the value of the type record component.

V

value() - Method in record class technology.sola.json.tokenizer.Token
Returns the value of the value record component.
valueOf(String) - Static method in enum class technology.sola.json.JsonElementType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class technology.sola.json.tokenizer.TokenType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class technology.sola.json.JsonElementType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class technology.sola.json.tokenizer.TokenType
Returns an array containing the constants of this enum class, in the order they are declared.
A B C D E F G H I J L M N P R S T V 
All Classes and Interfaces|All Packages|Serialized Form