Skip navigation links
A E F G H I J M N O P R S T U V W 

A

add(int) - Method in class org.hjson.JsonArray
Appends the JSON representation of the specified int value to the end of this array.
add(long) - Method in class org.hjson.JsonArray
Appends the JSON representation of the specified long value to the end of this array.
add(float) - Method in class org.hjson.JsonArray
Appends the JSON representation of the specified float value to the end of this array.
add(double) - Method in class org.hjson.JsonArray
Appends the JSON representation of the specified double value to the end of this array.
add(boolean) - Method in class org.hjson.JsonArray
Appends the JSON representation of the specified boolean value to the end of this array.
add(String) - Method in class org.hjson.JsonArray
Appends the JSON representation of the specified string to the end of this array.
add(JsonValue) - Method in class org.hjson.JsonArray
Appends the specified JSON value to the end of this array.
add(String, int) - Method in class org.hjson.JsonObject
Appends a new member to the end of this object, with the specified name and the JSON representation of the specified int value.
add(String, long) - Method in class org.hjson.JsonObject
Appends a new member to the end of this object, with the specified name and the JSON representation of the specified long value.
add(String, float) - Method in class org.hjson.JsonObject
Appends a new member to the end of this object, with the specified name and the JSON representation of the specified float value.
add(String, double) - Method in class org.hjson.JsonObject
Appends a new member to the end of this object, with the specified name and the JSON representation of the specified double value.
add(String, boolean) - Method in class org.hjson.JsonObject
Appends a new member to the end of this object, with the specified name and the JSON representation of the specified boolean value.
add(String, String) - Method in class org.hjson.JsonObject
Appends a new member to the end of this object, with the specified name and the JSON representation of the specified string.
add(String, JsonValue) - Method in class org.hjson.JsonObject
Appends a new member to the end of this object, with the specified name and the specified JSON value.
asArray() - Method in class org.hjson.JsonArray
 
asArray() - Method in class org.hjson.JsonValue
Returns this JSON value as JsonArray, assuming that this value represents a JSON array.
asBoolean() - Method in class org.hjson.JsonValue
Returns this JSON value as a boolean value, assuming that this value is either true or false.
asDouble() - Method in class org.hjson.JsonValue
Returns this JSON value as a double value, assuming that this value represents a JSON number.
asDsf() - Method in class org.hjson.JsonValue
Returns this JSON value as a DSF object, assuming that this value represents a DSF.
asFloat() - Method in class org.hjson.JsonValue
Returns this JSON value as a float value, assuming that this value represents a JSON number.
asInt() - Method in class org.hjson.JsonValue
Returns this JSON value as an int value, assuming that this value represents a JSON number that can be interpreted as Java int.
asLong() - Method in class org.hjson.JsonValue
Returns this JSON value as a long value, assuming that this value represents a JSON number that can be interpreted as Java long.
asObject() - Method in class org.hjson.JsonObject
 
asObject() - Method in class org.hjson.JsonValue
Returns this JSON value as JsonObject, assuming that this value represents a JSON object.
asString() - Method in class org.hjson.JsonValue
Returns this JSON value as String, assuming that this value represents a JSON string.

E

equals(Object) - Method in class org.hjson.JsonArray
 
equals(Object) - Method in class org.hjson.JsonObject
 
equals(Object) - Method in class org.hjson.JsonObject.Member
 
equals(Object) - Method in class org.hjson.JsonValue
Indicates whether some other object is "equal to" this one according to the contract specified in Object.equals(Object).

F

FALSE - Static variable in class org.hjson.JsonValue
Represents the JSON literal false.

G

get(int) - Method in class org.hjson.JsonArray
Returns the value of the element at the specified position in this array.
get(String) - Method in class org.hjson.JsonObject
Returns the value of the member with the specified name in this object.
getBoolean(String, boolean) - Method in class org.hjson.JsonObject
Returns the boolean value of the member with the specified name in this object.
getColumn() - Method in exception org.hjson.ParseException
Returns the index of the character at which the error occurred, relative to the line.
getDescription() - Method in interface org.hjson.IHjsonDsfProvider
Gets the description of this DSF.
getDouble(String, double) - Method in class org.hjson.JsonObject
Returns the double value of the member with the specified name in this object.
getDsfProviders() - Method in class org.hjson.HjsonOptions
Returns the DSF providers.
getEmitRootBraces() - Method in class org.hjson.HjsonOptions
Deprecated.
will always return true.
getEol() - Static method in class org.hjson.JsonValue
Gets the newline charater(s).
getFloat(String, float) - Method in class org.hjson.JsonObject
Returns the float value of the member with the specified name in this object.
getInt(String, int) - Method in class org.hjson.JsonObject
Returns the int value of the member with the specified name in this object.
getLine() - Method in exception org.hjson.ParseException
Returns the number of the line in which the error occurred.
getLong(String, long) - Method in class org.hjson.JsonObject
Returns the long value of the member with the specified name in this object.
getName() - Method in interface org.hjson.IHjsonDsfProvider
Gets the name of this DSF.
getName() - Method in class org.hjson.JsonObject.Member
Returns the name of this member.
getOffset() - Method in exception org.hjson.ParseException
Returns the absolute index of the character at which the error occurred.
getParseLegacyRoot() - Method in class org.hjson.HjsonOptions
Detects whether objects without root braces are supported.
getString(String, String) - Method in class org.hjson.JsonObject
Returns the String value of the member with the specified name in this object.
getType() - Method in class org.hjson.JsonArray
 
getType() - Method in class org.hjson.JsonObject
 
getType() - Method in class org.hjson.JsonValue
Gets the type of this JSON value.
getValue() - Method in class org.hjson.JsonObject.Member
Returns the value of this member.

H

hashCode() - Method in class org.hjson.JsonArray
 
hashCode() - Method in class org.hjson.JsonObject
 
hashCode() - Method in class org.hjson.JsonObject.Member
 
hashCode() - Method in class org.hjson.JsonValue
 
hex(boolean) - Static method in class org.hjson.HjsonDsf
Returns a hex DSF provider
HjsonDsf - Class in org.hjson
Provides standard DSF providers.
HjsonOptions - Class in org.hjson
Defines options for Hjson
HjsonOptions() - Constructor for class org.hjson.HjsonOptions
 

I

IHjsonDsfProvider - Interface in org.hjson
A interface to support Domain Specific Formats for Hjson.
isArray() - Method in class org.hjson.JsonArray
 
isArray() - Method in class org.hjson.JsonValue
Detects whether this value represents a JSON array.
isBoolean() - Method in class org.hjson.JsonValue
Detects whether this value represents a boolean value.
isEmpty() - Method in class org.hjson.JsonArray
Returns true if this array contains no elements.
isEmpty() - Method in class org.hjson.JsonObject
Returns true if this object contains no members.
isFalse() - Method in class org.hjson.JsonValue
Detects whether this value represents the JSON literal false.
isNull() - Method in class org.hjson.JsonValue
Detects whether this value represents the JSON literal null.
isNumber() - Method in class org.hjson.JsonValue
Detects whether this value represents a JSON number.
isObject() - Method in class org.hjson.JsonObject
 
isObject() - Method in class org.hjson.JsonValue
Detects whether this value represents a JSON object.
isString() - Method in class org.hjson.JsonValue
Detects whether this value represents a JSON string.
isTrue() - Method in class org.hjson.JsonValue
Detects whether this value represents the JSON literal true.
iterator() - Method in class org.hjson.JsonArray
Returns an iterator over the values of this array in document order.
iterator() - Method in class org.hjson.JsonObject
Returns an iterator over the members of this object in document order.

J

JsonArray - Class in org.hjson
Represents a JSON array, an ordered collection of JSON values.
JsonArray() - Constructor for class org.hjson.JsonArray
Creates a new empty JsonArray.
JsonArray(JsonArray) - Constructor for class org.hjson.JsonArray
Creates a new JsonArray with the contents of the specified JSON array.
JsonObject - Class in org.hjson
Represents a JSON object, a set of name/value pairs, where the names are strings and the values are JSON values.
JsonObject() - Constructor for class org.hjson.JsonObject
Creates a new empty JsonObject.
JsonObject(JsonObject) - Constructor for class org.hjson.JsonObject
Creates a new JsonObject, initialized with the contents of the specified JSON object.
JsonObject.Member - Class in org.hjson
Represents a member of a JSON object, a pair of a name and a value.
JsonType - Enum in org.hjson
Defines the known json types.
JsonValue - Class in org.hjson
Represents a JSON value.

M

math() - Static method in class org.hjson.HjsonDsf
Returns a math DSF provider

N

names() - Method in class org.hjson.JsonObject
Returns a list of the names in this object in document order.
NULL - Static variable in class org.hjson.JsonValue
Represents the JSON literal null.

O

org.hjson - package org.hjson
 

P

parse(String) - Method in interface org.hjson.IHjsonDsfProvider
Tries to parse the text as a DSF value.
ParseException - Exception in org.hjson
An unchecked exception to indicate that an input does not qualify as valid JSON.

R

readHjson(Reader) - Static method in class org.hjson.JsonValue
Reads a Hjson value from the given reader.
readHjson(String) - Static method in class org.hjson.JsonValue
Reads a Hjson value from the given string.
readHjson(Reader, HjsonOptions) - Static method in class org.hjson.JsonValue
Reads a Hjson value from the given reader.
readHjson(String, HjsonOptions) - Static method in class org.hjson.JsonValue
Reads a Hjson value from the given string.
readJSON(Reader) - Static method in class org.hjson.JsonValue
Reads a JSON value from the given reader.
readJSON(String) - Static method in class org.hjson.JsonValue
Reads a JSON value from the given string.
remove(int) - Method in class org.hjson.JsonArray
Removes the element at the specified index from this array.
remove(String) - Method in class org.hjson.JsonObject
Removes a member with the specified name from this object.

S

set(int, int) - Method in class org.hjson.JsonArray
Replaces the element at the specified position in this array with the JSON representation of the specified int value.
set(int, long) - Method in class org.hjson.JsonArray
Replaces the element at the specified position in this array with the JSON representation of the specified long value.
set(int, float) - Method in class org.hjson.JsonArray
Replaces the element at the specified position in this array with the JSON representation of the specified float value.
set(int, double) - Method in class org.hjson.JsonArray
Replaces the element at the specified position in this array with the JSON representation of the specified double value.
set(int, boolean) - Method in class org.hjson.JsonArray
Replaces the element at the specified position in this array with the JSON representation of the specified boolean value.
set(int, String) - Method in class org.hjson.JsonArray
Replaces the element at the specified position in this array with the JSON representation of the specified string.
set(int, JsonValue) - Method in class org.hjson.JsonArray
Replaces the element at the specified position in this array with the specified JSON value.
set(String, int) - Method in class org.hjson.JsonObject
Sets the value of the member with the specified name to the JSON representation of the specified int value.
set(String, long) - Method in class org.hjson.JsonObject
Sets the value of the member with the specified name to the JSON representation of the specified long value.
set(String, float) - Method in class org.hjson.JsonObject
Sets the value of the member with the specified name to the JSON representation of the specified float value.
set(String, double) - Method in class org.hjson.JsonObject
Sets the value of the member with the specified name to the JSON representation of the specified double value.
set(String, boolean) - Method in class org.hjson.JsonObject
Sets the value of the member with the specified name to the JSON representation of the specified boolean value.
set(String, String) - Method in class org.hjson.JsonObject
Sets the value of the member with the specified name to the JSON representation of the specified string.
set(String, JsonValue) - Method in class org.hjson.JsonObject
Sets the value of the member with the specified name to the specified JSON value.
setDsfProviders(IHjsonDsfProvider[]) - Method in class org.hjson.HjsonOptions
Sets the DSF providers.
setEmitRootBraces(boolean) - Method in class org.hjson.HjsonOptions
Deprecated.
root braces are always emitted.
setEol(String) - Static method in class org.hjson.JsonValue
Sets the newline charater(s).
setParseLegacyRoot(boolean) - Method in class org.hjson.HjsonOptions
Sets whether root braces should be emitted.
size() - Method in class org.hjson.JsonArray
Returns the number of elements in this array.
size() - Method in class org.hjson.JsonObject
Returns the number of members (name/value pairs) in this object.
stringify(JsonValue) - Method in interface org.hjson.IHjsonDsfProvider
Stringifies DSF values.
Stringify - Enum in org.hjson
The ToString format.

T

toString() - Method in class org.hjson.JsonValue
Returns the JSON string for this value in its minimal form, without any additional whitespace.
toString(Stringify) - Method in class org.hjson.JsonValue
Returns the JSON/Hjson string for this value using the given formatting.
toString(HjsonOptions) - Method in class org.hjson.JsonValue
Returns the Hjson string for this value using the given formatting.
TRUE - Static variable in class org.hjson.JsonValue
Represents the JSON literal true.

U

unmodifiableArray(JsonArray) - Static method in class org.hjson.JsonArray
Returns an unmodifiable wrapper for the specified JsonArray.
unmodifiableObject(JsonObject) - Static method in class org.hjson.JsonObject
Returns an unmodifiable JsonObject for the specified one.

V

valueOf(String) - Static method in enum org.hjson.JsonType
Returns the enum constant of this type with the specified name.
valueOf(int) - Static method in class org.hjson.JsonValue
Returns a JsonValue instance that represents the given int value.
valueOf(long) - Static method in class org.hjson.JsonValue
Returns a JsonValue instance that represents the given long value.
valueOf(float) - Static method in class org.hjson.JsonValue
Returns a JsonValue instance that represents the given float value.
valueOf(double) - Static method in class org.hjson.JsonValue
Returns a JsonValue instance that represents the given double value.
valueOf(String) - Static method in class org.hjson.JsonValue
Returns a JsonValue instance that represents the given string.
valueOf(boolean) - Static method in class org.hjson.JsonValue
Returns a JsonValue instance that represents the given boolean value.
valueOf(String) - Static method in enum org.hjson.Stringify
Returns the enum constant of this type with the specified name.
valueOfDsf(Object) - Static method in class org.hjson.JsonValue
Returns a JsonValue instance that represents the given DSF value.
values() - Method in class org.hjson.JsonArray
Returns a list of the values in this array in document order.
values() - Static method in enum org.hjson.JsonType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.hjson.Stringify
Returns an array containing the constants of this enum type, in the order they are declared.

W

writeTo(Writer) - Method in class org.hjson.JsonValue
Writes the JSON representation of this value to the given writer in its minimal form, without any additional whitespace.
writeTo(Writer, Stringify) - Method in class org.hjson.JsonValue
Writes the JSON/Hjson representation of this value to the given writer using the given formatting.
writeTo(Writer, HjsonOptions) - Method in class org.hjson.JsonValue
Writes the Hjson representation of this value to the given writer.
A E F G H I J M N O P R S T U V W 
Skip navigation links