Index

A B C D E G H I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

addAt(int, JSONObject) - Method in class com.blackrook.json.JSONObject
Adds a member to a specific index in this JSONObject, shifting the contents, but only if this is an array.
addCaseInsensitiveKeyword(String, int) - Method in class com.blackrook.json.struct.Lexer.Kernel
Adds a keyword to the Lexer, case-insensitive.
addCommentEndDelimiter(String, int) - Method in class com.blackrook.json.struct.Lexer.Kernel
Adds a comment-ending delimiter to this lexer.
addCommentLineDelimiter(String, int) - Method in class com.blackrook.json.struct.Lexer.Kernel
Adds a line comment delimiter to this lexer.
addCommentStartDelimiter(String, int) - Method in class com.blackrook.json.struct.Lexer.Kernel
Adds a comment-starting delimiter to this lexer.
addDelimiter(String, int) - Method in class com.blackrook.json.struct.Lexer.Kernel
Adds a delimiter to this lexer.
addKeyword(String, int) - Method in class com.blackrook.json.struct.Lexer.Kernel
Adds a keyword to the Lexer, case-sensitive.
addMember(String, JSONConverterSet, Object) - Method in class com.blackrook.json.JSONObject
Adds a member to this JSONObject, if this is an Object type.
addMember(String, JSONObject) - Method in class com.blackrook.json.JSONObject
Adds a member to this JSONObject, if this is an Object type.
addMember(String, Object) - Method in class com.blackrook.json.JSONObject
Adds a member to this JSONObject, if this is an Object type.
addRawStringDelimiter(char, char) - Method in class com.blackrook.json.struct.Lexer.Kernel
Adds a raw string delimiter to this lexer along with its ending character.
addStringDelimiter(char, char) - Method in class com.blackrook.json.struct.Lexer.Kernel
Adds a string delimiter to this lexer along with its ending character.
append(JSONObject) - Method in class com.blackrook.json.JSONObject
Appends a member to the end of this JSONObject, but only if this is an array.
applyToObject(T) - Method in class com.blackrook.json.JSONObject
Applies this object to an object bean / plain ol' Java object, or Array.
applyToObject(T, JSONConverterSet) - Method in class com.blackrook.json.JSONObject
Applies this object to an object bean / plain ol' Java object, or Array.

B

BOOLEAN - Enum constant in enum com.blackrook.json.JSONObject.Type
Boolean type.

C

clearCurrentLexeme() - Method in class com.blackrook.json.struct.Lexer
Clears the current token lexeme buffer.
close() - Method in class com.blackrook.json.struct.Lexer.ReaderStack.Stream
 
com.blackrook.json - package com.blackrook.json
Contains a set of classes for JSON parsing and object handling.
com.blackrook.json.annotation - package com.blackrook.json.annotation
Contains a set of classes for JSON annotating Java elements pertinent to JSON conversion.
com.blackrook.json.converters - package com.blackrook.json.converters
Contains some pre-packaged converters.
com.blackrook.json.struct - package com.blackrook.json.struct
Additional helper data structures.
construct(Constructor, Object...) - Static method in class com.blackrook.json.struct.Utils
Creates a new instance of a class from a class type.
converter() - Element in annotation type com.blackrook.json.annotation.JSONType
This class's converter class.
create(Class) - Static method in class com.blackrook.json.struct.Utils
Creates a new instance of a class from a class type.
create(T) - Static method in class com.blackrook.json.JSONObject
Creates a new JSON object using the default converter set.
create(T, JSONConverterSet) - Static method in class com.blackrook.json.JSONObject
Creates a new JSON object using an associated specific converter set.
createEmptyArray() - Static method in class com.blackrook.json.JSONObject
Creates a JSONObject that represents an empty array type.
createEmptyObject() - Static method in class com.blackrook.json.JSONObject
Creates a JSONObject that represents an empty object type.
currentToken() - Method in class com.blackrook.json.struct.Lexer.Parser
Gets the token read from the last Lexer.Parser.nextToken() call.
currentType(int...) - Method in class com.blackrook.json.struct.Lexer.Parser
Attempts to match the type of the current token.

D

DEBUG - Static variable in class com.blackrook.json.struct.Lexer
 

E

END_OF_LEXER - Static variable in class com.blackrook.json.struct.Lexer
Lexer end-of-stream char.
END_OF_STREAM - Static variable in class com.blackrook.json.struct.Lexer
Lexer end-of-stream char.
Exception() - Constructor for exception class com.blackrook.json.struct.Lexer.Parser.Exception
 
Exception(String) - Constructor for exception class com.blackrook.json.struct.Lexer.Parser.Exception
 
Exception(String, Throwable) - Constructor for exception class com.blackrook.json.struct.Lexer.Parser.Exception
 

G

get(int) - Method in class com.blackrook.json.JSONObject
Gets an object member of this JSONObject by index, if this is an array.
get(String) - Method in class com.blackrook.json.JSONObject
Gets an object member of this JSONObject by name.
getAlias() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile.FieldInfo
 
getAlias() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile.MethodInfo
 
getAlias(Field) - Method in interface com.blackrook.json.struct.TypeProfileFactory.MemberPolicy
Gets an alias name for the provided field.
getAlias(Method) - Method in interface com.blackrook.json.struct.TypeProfileFactory.MemberPolicy
Gets an alias name for the provided method.
getArrayDimensions(Class) - Static method in class com.blackrook.json.struct.Utils
Gets how many dimensions that this array, represented by the provided type, has.
getArrayDimensions(Object) - Static method in class com.blackrook.json.struct.Utils
Gets how many array dimensions that an object (presumably an array) has.
getArrayType(Class) - Static method in class com.blackrook.json.struct.Utils
Gets the class type of this array type, if this is an array type.
getArrayType(Object) - Static method in class com.blackrook.json.struct.Utils
Gets the class type of this array, if this is an array.
getBoolean() - Method in class com.blackrook.json.JSONObject
Returns the value of this JSON Object as an boolean.
getByte() - Method in class com.blackrook.json.JSONObject
Returns the value of this JSON Object as a byte.
getCharIndex() - Method in class com.blackrook.json.struct.Lexer.Token
 
getConverter(Class) - Method in class com.blackrook.json.JSONConverterSet
Gets a converter for a type.
getConverter(Class) - Static method in class com.blackrook.json.JSONObject
Gets a converter for a type for the default converter set.
getCurrentLexeme() - Method in class com.blackrook.json.struct.Lexer
Gets the current token lexeme.
getCurrentLineCharacterIndex() - Method in class com.blackrook.json.struct.Lexer.ReaderStack
 
getCurrentLineNumber() - Method in class com.blackrook.json.struct.Lexer
Gets the lexer's current stream's line number.
getCurrentLineNumber() - Method in class com.blackrook.json.struct.Lexer.ReaderStack
 
getCurrentStream() - Method in class com.blackrook.json.struct.Lexer
Gets the current stream.
getCurrentStreamName() - Method in class com.blackrook.json.struct.Lexer
 
getCurrentStreamName() - Method in class com.blackrook.json.struct.Lexer.ReaderStack
 
getDecimalSeparator() - Method in class com.blackrook.json.struct.Lexer.Kernel
Gets the current decimal separator character.
getDouble() - Method in class com.blackrook.json.JSONObject
Returns the value of this JSON Object as a double.
getEnumInstance(String, Class) - Static method in class com.blackrook.json.struct.Utils
Returns the enum instance of a class given class and name, or null if not a valid name.
getField() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile.FieldInfo
 
getFieldValue(Object, Field) - Static method in class com.blackrook.json.struct.Utils
Gets the value of a field on an object.
getFloat() - Method in class com.blackrook.json.JSONObject
Returns the value of this JSON Object as a float.
getGetterMethodsByAlias() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile
Returns a reference to the map that contains this profile's getter methods.
getGetterMethodsByName() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile
Returns a reference to the map that contains this profile's getter methods.
getIndentation() - Method in class com.blackrook.json.JSONWriter.Options
 
getInt() - Method in class com.blackrook.json.JSONObject
Returns the value of this JSON Object as an integer.
getJSONObject(Object) - Method in class com.blackrook.json.JSONDefaultConverter
 
getJSONObject(Date) - Method in class com.blackrook.json.converters.JSONDateFormatConverter
 
getJSONObject(Date) - Method in class com.blackrook.json.converters.JSONDateMillisConverter
 
getJSONObject(T) - Method in interface com.blackrook.json.JSONConverter
Returns a JSON object that represents this object instance (and its contents).
getKeyClass() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile.FieldInfo
 
getKeyClass() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile.MethodInfo
 
getLexeme() - Method in class com.blackrook.json.struct.Lexer.Token
 
getLexer() - Method in class com.blackrook.json.struct.Lexer.Parser
Gets the Lexer that this Parser uses.
getLineNumber() - Method in class com.blackrook.json.struct.Lexer.Token
 
getList() - Method in class com.blackrook.json.JSONObject
Returns the underlying value as a list of objects.
getLong() - Method in class com.blackrook.json.JSONObject
Returns the value of this JSON Object as a long.
getMap() - Method in class com.blackrook.json.JSONObject
Returns the underlying value as a map of string to object.
getMemberCount() - Method in class com.blackrook.json.JSONObject
Gets the amount of members in this object, if this is an object.
getMemberNames() - Method in class com.blackrook.json.JSONObject
Returns an array of member names on this object, if it is Object typed.
getMethod() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile.MethodInfo
 
getObject(JSONObject) - Method in class com.blackrook.json.converters.JSONDateFormatConverter
 
getObject(JSONObject) - Method in class com.blackrook.json.converters.JSONDateMillisConverter
 
getObject(JSONObject) - Method in interface com.blackrook.json.JSONConverter
Returns a Java Object that is equivalent to the input JSON Object.
getObject(JSONObject) - Method in class com.blackrook.json.JSONDefaultConverter
Returns null.
getPrimaryClass() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile.FieldInfo
 
getPrimaryClass() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile.MethodInfo
 
getProfile(Class) - Method in class com.blackrook.json.struct.TypeProfileFactory
Creates a new profile for a provided type.
getPublicFieldsByAlias() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile
Returns a reference to the map that contains this profile's public fields.
getPublicFieldsByName() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile
Returns a reference to the map that contains this profile's public fields.
getRawStringEnd(char) - Method in class com.blackrook.json.struct.Lexer
Gets the character that ends a raw String, using the starting character.
getSetterMethodsByAlias() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile
Returns a reference to the map that contains this profile's setter methods.
getSetterMethodsByName() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile
Returns a reference to the map that contains this profile's setter methods.
getShort() - Method in class com.blackrook.json.JSONObject
Returns the value of this JSON Object as a short.
getState() - Method in class com.blackrook.json.struct.Lexer
 
getStreamName() - Method in class com.blackrook.json.struct.Lexer.Token
 
getString() - Method in class com.blackrook.json.JSONObject
Returns the value of this JSON Object as a String.
getStringEnd(char) - Method in class com.blackrook.json.struct.Lexer
Gets the character that ends a String, using the starting character.
getTokenInfoLine(String) - Method in class com.blackrook.json.struct.Lexer.Parser
Returns a stock error line for when an error/warning or whatever occurs during parse.
getType() - Method in class com.blackrook.json.JSONObject
Gets this object's JavaScript type.
getType() - Method in class com.blackrook.json.struct.Lexer.Token
 
getType() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile.FieldInfo
 
getType() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile.MethodInfo
 
getValue() - Method in class com.blackrook.json.JSONObject
Gets this object's encapsulated value.
getValueClass() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile.FieldInfo
 
getValueClass() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile.MethodInfo
 

H

hasMember(String) - Method in class com.blackrook.json.JSONObject
Returns true if this is an object AND contains a member of a particular name.

I

invokeBlind(Method, Object, Object...) - Static method in class com.blackrook.json.struct.Utils
Blindly invokes a method, only throwing a RuntimeException if something goes wrong.
isArray() - Method in class com.blackrook.json.JSONObject
Checks if this is Object-typed and is an array.
isArray(Class) - Static method in class com.blackrook.json.struct.Utils
Tests if a class is actually an array type.
isArray(Object) - Static method in class com.blackrook.json.struct.Utils
Tests if an object is actually an array type.
isCommentEndDelimiterStart(char) - Method in class com.blackrook.json.struct.Lexer
Checks if this is a (or the start of a) block-comment-ending delimiter character.
isDelimiterStart(char) - Method in class com.blackrook.json.struct.Lexer
Checks if this is a (or the start of a) delimiter character.
isDigit(char) - Method in class com.blackrook.json.struct.Lexer
Convenience method for Character.isDigit(char).
isEmpty() - Method in class com.blackrook.json.struct.Lexer.ReaderStack
 
isEmpty(Object) - Static method in class com.blackrook.json.struct.Utils
Checks if a value is "empty."
isExponent(char) - Method in class com.blackrook.json.struct.Lexer
Checks if char is the exponent character in a number.
isExponentSign(char) - Method in class com.blackrook.json.struct.Lexer
Checks if char is the exponent sign character in a number.
isHexDigit(char) - Method in class com.blackrook.json.struct.Lexer
Returns true if this is a hex digit (0-9, A-F, a-f).
isIgnored(Field) - Method in interface com.blackrook.json.struct.TypeProfileFactory.MemberPolicy
Checks if a field is ignored by the profile generator.
isIgnored(Method) - Method in interface com.blackrook.json.struct.TypeProfileFactory.MemberPolicy
Checks if a method is ignored by the profile generator.
isLetter(char) - Method in class com.blackrook.json.struct.Lexer
Convenience method for Character.isLetter(char).
isLexerEnd(char) - Method in class com.blackrook.json.struct.Lexer
Checks if a char equals Lexer.END_OF_LEXER.
isMap() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile.FieldInfo
 
isMap() - Method in class com.blackrook.json.struct.TypeProfileFactory.Profile.MethodInfo
 
isNewline(char) - Method in class com.blackrook.json.struct.Lexer
Checks if a char equals Lexer.NEWLINE.
isNull() - Method in class com.blackrook.json.JSONObject
Checks if this is a null object.
isNull(T, T) - Static method in class com.blackrook.json.struct.Utils
Returns the first object if it is not null, otherwise returns the second.
isObject() - Method in class com.blackrook.json.JSONObject
Checks if this is Object-typed.
isOmittingNullMembers() - Method in class com.blackrook.json.JSONWriter.Options
 
isPoint(char) - Method in class com.blackrook.json.struct.Lexer
Checks if a character is a decimal point (depends on locale/kernel).
isRawStringStart(char) - Method in class com.blackrook.json.struct.Lexer
Checks if this is a character that starts a multiline String.
isSpace(char) - Method in class com.blackrook.json.struct.Lexer
Checks if a char is a space.
isStreamEnd(char) - Method in class com.blackrook.json.struct.Lexer
Checks if a char equals Lexer.END_OF_STREAM.
isStringEnd(char) - Method in class com.blackrook.json.struct.Lexer
Checks if this is a character that ends a String.
isStringEscape(char) - Method in class com.blackrook.json.struct.Lexer
Checks if this is a character that is a String escape character.
isStringStart(char) - Method in class com.blackrook.json.struct.Lexer
Checks if this is a character that starts a String.
isTab(char) - Method in class com.blackrook.json.struct.Lexer
Checks if a char is a tab.
isUndefined() - Method in class com.blackrook.json.JSONObject
Checks if this is UNDEFINED.
isUnderscore(char) - Method in class com.blackrook.json.struct.Lexer
Convenience method for c == '_'.
isWhitespace(char) - Method in class com.blackrook.json.struct.Lexer
Convenience method for Character.isWhitespace(char).

J

JSONCollectionType - Annotation Type in com.blackrook.json.annotation
Provides a hint to the default deserializer that the generic type for a collection takes a specific single type (Lists, Sets).
JSONConversionException - Exception Class in com.blackrook.json
JSON conversion exception, thrown when a JSONConverter fails.
JSONConversionException() - Constructor for exception class com.blackrook.json.JSONConversionException
Creates a new exception.
JSONConversionException(String) - Constructor for exception class com.blackrook.json.JSONConversionException
Creates a new exception.
JSONConversionException(String, Throwable) - Constructor for exception class com.blackrook.json.JSONConversionException
Creates a new exception with a message.
JSONConversionException(Throwable) - Constructor for exception class com.blackrook.json.JSONConversionException
Creates a new exception.
JSONConverter<T> - Interface in com.blackrook.json
JSON converters.
JSONConverterSet - Class in com.blackrook.json
A set of converters for converting Java object types to JSON types, and back.
JSONConverterSet() - Constructor for class com.blackrook.json.JSONConverterSet
Creates a new converter set.
JSONDateFormatConverter - Class in com.blackrook.json.converters
A special converter that converts dates from strings to Dates in JSON member data.
JSONDateFormatConverter(String) - Constructor for class com.blackrook.json.converters.JSONDateFormatConverter
Creates a new converter using a SimpleDateFormat string.
JSONDateFormatConverter(String, TimeZone) - Constructor for class com.blackrook.json.converters.JSONDateFormatConverter
Creates a new converter using a SimpleDateFormat string.
JSONDateMillisConverter - Class in com.blackrook.json.converters
A special converter that converts dates from milliseconds since Epoch to Dates in JSON member data.
JSONDateMillisConverter() - Constructor for class com.blackrook.json.converters.JSONDateMillisConverter
Creates a new converter.
JSONDefaultConverter - Class in com.blackrook.json
Default converter for all types of objects that are not a part of the annotated conversions.
JSONDefaultConverter() - Constructor for class com.blackrook.json.JSONDefaultConverter
 
JSONIgnore - Annotation Type in com.blackrook.json.annotation
An annotation for telling JSONObject that this field or method should not be serialized into a JSON construct of any kind.
JSONISODateTimeConverter - Class in com.blackrook.json.converters
A JSON date/time converter that uses the format yyyy-MM-dd'T'HH:mm:ss.SSS'Z' in UTC time as the format.
JSONISODateTimeConverter() - Constructor for class com.blackrook.json.converters.JSONISODateTimeConverter
Creates a new converter.
JSONMapType - Annotation Type in com.blackrook.json.annotation
Provides a hint to the default deserializer that the generic types for a map-based collection that takes a two types (Maps).
JSONName - Annotation Type in com.blackrook.json.annotation
An annotation for telling JSONObject that this field or method should be mapped to a particular name.
JSONObject - Class in com.blackrook.json
JSON Object abstraction.
JSONObject.Type - Enum in com.blackrook.json
JavaScript type of a JSONObject.
JSONReader - Class in com.blackrook.json
A class for reading JSON data into JSONObjects.
JSONReader() - Constructor for class com.blackrook.json.JSONReader
 
JSONType - Annotation Type in com.blackrook.json.annotation
An annotation for telling JSONObject that this object type needs special rules for conversion (both to and from this type).
JSONWriter - Class in com.blackrook.json
A class for writing JSON data to JSON representation.
JSONWriter(JSONWriter.Options) - Constructor for class com.blackrook.json.JSONWriter
Creates a new JSONWriter with a set of options to be used for every write.
JSONWriter.Options - Class in com.blackrook.json
The JSON export options to pass to the writer methods.

K

Kernel() - Constructor for class com.blackrook.json.struct.Lexer.Kernel
Creates a new, blank LexerKernel with default settings.
keyType() - Element in annotation type com.blackrook.json.annotation.JSONMapType
 

L

length() - Method in class com.blackrook.json.JSONObject
Gets length of this array-typed object.
Lexer - Class in com.blackrook.json.struct
Breaks up a stream of characters into lexicographical tokens.
Lexer(Lexer.Kernel, Reader) - Constructor for class com.blackrook.json.struct.Lexer
Creates a new lexer around a reader.
Lexer(Lexer.Kernel, String) - Constructor for class com.blackrook.json.struct.Lexer
Creates a new lexer around a String, that will be wrapped into a StringReader.
Lexer(Lexer.Kernel, String, Reader) - Constructor for class com.blackrook.json.struct.Lexer
Creates a new lexer around a reader.
Lexer(Lexer.Kernel, String, String) - Constructor for class com.blackrook.json.struct.Lexer
Creates a new lexer around a String, that will be wrapped into a StringReader.
Lexer.Kernel - Class in com.blackrook.json.struct
This is a info kernel that tells a Lexer how to interpret certain characters and identifiers.
Lexer.Parser - Class in com.blackrook.json.struct
Abstract parser class.
Lexer.Parser.Exception - Exception Class in com.blackrook.json.struct
Thrown when a Parser has a problem.
Lexer.ReaderStack - Class in com.blackrook.json.struct
This holds a series of Reader streams such that the stream on top is the current active stream.
Lexer.ReaderStack.Stream - Class in com.blackrook.json.struct
Stream encapsulation of a single named Reader.
Lexer.Token - Class in com.blackrook.json.struct
Lexer token object.

M

matchType(int) - Method in class com.blackrook.json.struct.Lexer.Parser
Matches the current token.
modifyType(Lexer.Token) - Method in class com.blackrook.json.struct.Lexer
Called when the lexer wants to create a token, but the lexeme of the token may cause this token to be a different type.

N

NEWLINE - Static variable in class com.blackrook.json.struct.Lexer
Lexer newline char.
newObject(Class) - Method in class com.blackrook.json.JSONObject
Creates a new instance of a class, populated with values from this object.
newObject(Class, JSONConverterSet) - Method in class com.blackrook.json.JSONObject
Creates a new instance of a class, populated with values from this object.
nextToken() - Method in class com.blackrook.json.struct.Lexer
Gets the next token.
nextToken() - Method in class com.blackrook.json.struct.Lexer.Parser
Reads and sets the current token to the next token.
NULL - Static variable in class com.blackrook.json.JSONObject
Null member.
NUMBER - Enum constant in enum com.blackrook.json.JSONObject.Type
Numeric type.

O

OBJECT - Enum constant in enum com.blackrook.json.JSONObject.Type
Object type for objects, or null.
Options() - Constructor for class com.blackrook.json.JSONWriter.Options
 

P

parseBoolean(String) - Static method in class com.blackrook.json.struct.Utils
Attempts to parse a boolean from a string.
parseBoolean(String, boolean) - Static method in class com.blackrook.json.struct.Utils
Attempts to parse a boolean from a string.
parseByte(String) - Static method in class com.blackrook.json.struct.Utils
Attempts to parse a byte from a string.
parseByte(String, byte) - Static method in class com.blackrook.json.struct.Utils
Attempts to parse a byte from a string.
parseChar(String) - Static method in class com.blackrook.json.struct.Utils
Attempts to parse a char from a string.
parseChar(String, char) - Static method in class com.blackrook.json.struct.Utils
Attempts to parse a byte from a string.
parseDouble(String) - Static method in class com.blackrook.json.struct.Utils
Attempts to parse a double from a string.
parseDouble(String, double) - Static method in class com.blackrook.json.struct.Utils
Attempts to parse a double from a string.
parseFloat(String) - Static method in class com.blackrook.json.struct.Utils
Attempts to parse a float from a string.
parseFloat(String, float) - Static method in class com.blackrook.json.struct.Utils
Attempts to parse a float from a string.
parseInt(String) - Static method in class com.blackrook.json.struct.Utils
Attempts to parse an int from a string.
parseInt(String, int) - Static method in class com.blackrook.json.struct.Utils
Attempts to parse an int from a string.
parseLong(String) - Static method in class com.blackrook.json.struct.Utils
Attempts to parse a long from a string.
parseLong(String, long) - Static method in class com.blackrook.json.struct.Utils
Attempts to parse a long from a string.
Parser(Lexer) - Constructor for class com.blackrook.json.struct.Lexer.Parser
Constructs the parser and binds a Lexer to it.
parseShort(String) - Static method in class com.blackrook.json.struct.Utils
Attempts to parse a short from a string.
parseShort(String, short) - Static method in class com.blackrook.json.struct.Utils
Attempts to parse a short from a string.
peek() - Method in class com.blackrook.json.struct.Lexer.ReaderStack
Gets the reference to the topmost (current) stream.
pop() - Method in class com.blackrook.json.JSONObject
Removes a member from the ending index of this JSONObject, but only if this is an array.
pop() - Method in class com.blackrook.json.struct.Lexer.ReaderStack
Pops a Lexer.ReaderStack.Stream off of the top of this stack.
push(JSONObject) - Method in class com.blackrook.json.JSONObject
Adds a member to the end of this JSONObject, but only if this is an array.
push(String, Reader) - Method in class com.blackrook.json.struct.Lexer.ReaderStack
Pushes another reader onto the stack.
pushStream(String, Reader) - Method in class com.blackrook.json.struct.Lexer
Pushes a stream onto the encapsulated reader stack.

R

readChar() - Method in class com.blackrook.json.struct.Lexer
Reads a character from the stream.
readChar() - Method in class com.blackrook.json.struct.Lexer.ReaderStack
Reads the next character.
ReaderStack() - Constructor for class com.blackrook.json.struct.Lexer.ReaderStack
Creates a new empty ReaderStack.
ReaderStack(String, Reader) - Constructor for class com.blackrook.json.struct.Lexer.ReaderStack
Creates a new ReaderStack.
readJSON(File) - Static method in class com.blackrook.json.JSONReader
Reads in a new JSONObject from a File.
readJSON(InputStream) - Static method in class com.blackrook.json.JSONReader
Reads in a new JSONObject from an InputStream.
readJSON(Reader) - Static method in class com.blackrook.json.JSONReader
Reads in a new JSONObject from a Reader.
readJSON(Class, File) - Static method in class com.blackrook.json.JSONReader
Reads in a new object from a string of characters and returns it as a new object converted from the JSON.
readJSON(Class, File, JSONConverterSet) - Static method in class com.blackrook.json.JSONReader
Reads in a new object from a file and returns it as a new object converted from the JSON.
readJSON(Class, InputStream) - Static method in class com.blackrook.json.JSONReader
Reads in a new object from an InputStream.
readJSON(Class, InputStream, JSONConverterSet) - Static method in class com.blackrook.json.JSONReader
Reads in a new object from an InputStream.
readJSON(Class, Reader) - Static method in class com.blackrook.json.JSONReader
Reads in a new object from a Reader.
readJSON(Class, Reader, JSONConverterSet) - Static method in class com.blackrook.json.JSONReader
Reads in a new object from a Reader.
readJSON(Class, String) - Static method in class com.blackrook.json.JSONReader
Reads in a new object from a string of characters and returns it as a new object converted from the JSON.
readJSON(Class, String, JSONConverterSet) - Static method in class com.blackrook.json.JSONReader
Reads in a new object from a string of characters and returns it as a new object converted from the JSON.
readJSON(String) - Static method in class com.blackrook.json.JSONReader
Reads in a new JSONObject from a string of characters.
removeAt(int) - Method in class com.blackrook.json.JSONObject
Removes a member from a specific index in this JSONObject, shifting the contents, but only if this is an array.
removeMember(String) - Method in class com.blackrook.json.JSONObject
Removes a member from this JSONObject, if this is an Object type.

S

saveChar(char) - Method in class com.blackrook.json.struct.Lexer
Saves a character for the next token.
setConverter(Class, JSONConverter) - Method in class com.blackrook.json.JSONConverterSet
Sets a converter for a type.
setConverter(Class, JSONConverter) - Static method in class com.blackrook.json.JSONObject
Sets a converter for a type.
setConverterSet(JSONConverterSet) - Method in class com.blackrook.json.JSONWriter.Options
Replaces the underlying converter set.
setDecimalSeparator(char) - Method in class com.blackrook.json.struct.Lexer.Kernel
Sets the current decimal separator character.
setDelimBreak(char) - Method in class com.blackrook.json.struct.Lexer
Sets if we are in a delimiter break.
setEmitComments(boolean) - Method in class com.blackrook.json.struct.Lexer.Kernel
Sets if this lexer emits comment tokens.
setEmitNewlines(boolean) - Method in class com.blackrook.json.struct.Lexer.Kernel
Sets if this lexer emits newline tokens.
setEmitSpaces(boolean) - Method in class com.blackrook.json.struct.Lexer.Kernel
Sets if this lexer emits space tokens?
setEmitStreamBreak(boolean) - Method in class com.blackrook.json.struct.Lexer.Kernel
Sets if this lexer emits stream break tokens.
setEmitTabs(boolean) - Method in class com.blackrook.json.struct.Lexer.Kernel
Sets if this lexer emits tab tokens.
setFieldValue(Object, Field, Object) - Static method in class com.blackrook.json.struct.Utils
Sets the value of a field on an object.
setIndentation(String) - Method in class com.blackrook.json.JSONWriter.Options
Sets the indentation string to use for pretty-printing indentation.
setLexeme(String) - Method in class com.blackrook.json.struct.Lexer.Token
Sets this token's lexeme.
setMultilineStringStartAndEnd(char) - Method in class com.blackrook.json.struct.Lexer
Sets the end character for a string.
setOmittingNullMembers(boolean) - Method in class com.blackrook.json.JSONWriter.Options
Sets if the writer omits null values from being exported from objects.
setState(int) - Method in class com.blackrook.json.struct.Lexer
Sets the current state.
setStringStartAndEnd(char) - Method in class com.blackrook.json.struct.Lexer
Sets the end character for a string.
setType(int) - Method in class com.blackrook.json.struct.Lexer.Token
Sets this token's type.
size() - Method in class com.blackrook.json.struct.Lexer.ReaderStack
 
STRING - Enum constant in enum com.blackrook.json.JSONObject.Type
String type.

T

Token(String, int, String, int, int) - Constructor for class com.blackrook.json.struct.Lexer.Token
 
toString() - Method in class com.blackrook.json.JSONObject
 
toString() - Method in class com.blackrook.json.struct.Lexer.Token
 
TYPE_COMMENT - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: Comment.
TYPE_DELIM_CLOSE_COMMENT - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: Close comment.
TYPE_DELIM_COMMENT - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: Delimiter Comment (never returned).
TYPE_DELIM_LINE_COMMENT - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: Line comment.
TYPE_DELIM_NEWLINE - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: New line character.
TYPE_DELIM_OPEN_COMMENT - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: Open comment.
TYPE_DELIM_SPACE - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: Space.
TYPE_DELIM_TAB - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: Tab.
TYPE_DELIMITER - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: Delimiter (never returned).
TYPE_END_OF_LEXER - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: End of lexer.
TYPE_END_OF_STREAM - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: End of stream.
TYPE_EXPONENT - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: Exponent state (never returned).
TYPE_EXPONENT_POWER - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: Exponent power state (never returned).
TYPE_FLOAT - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: Floating point state (never returned).
TYPE_HEX_INTEGER - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: hexadecimal integer (never returned).
TYPE_HEX_INTEGER0 - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: hexadecimal integer (never returned).
TYPE_HEX_INTEGER1 - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: hexadecimal integer (never returned).
TYPE_IDENTIFIER - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: Identifier.
TYPE_ILLEGAL - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: Illegal token.
TYPE_LINE_COMMENT - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: Line Comment.
TYPE_NUMBER - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: Number.
TYPE_POINT - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: Point state (never returned).
TYPE_RAWSTRING - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: Raw String (never returned).
TYPE_STRING - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: String.
TYPE_UNKNOWN - Static variable in class com.blackrook.json.struct.Lexer.Kernel
Reserved token type: Unknown token.
TypeProfileFactory - Class in com.blackrook.json.struct
A factory that produces type profiles for POJOs and data objects.
TypeProfileFactory(TypeProfileFactory.MemberPolicy) - Constructor for class com.blackrook.json.struct.TypeProfileFactory
Creates a new TypeProfileFactory.
TypeProfileFactory.MemberPolicy - Interface in com.blackrook.json.struct
An interface for figuring out whether to ignore certain fields or methods on an object that a profile is being generated for (if they are already going to pass testing for includable fields).
TypeProfileFactory.Profile<T> - Class in com.blackrook.json.struct
Type profile for an unknown object that has an ambiguous signature for applying values to POJOs and beans.
TypeProfileFactory.Profile.FieldInfo - Class in com.blackrook.json.struct
Field information.
TypeProfileFactory.Profile.MethodInfo - Class in com.blackrook.json.struct
Method signature.

U

UNDEFINED - Enum constant in enum com.blackrook.json.JSONObject.Type
Undefined type for undefined.
UNDEFINED - Static variable in class com.blackrook.json.JSONObject
Undefined member.
Utils - Class in com.blackrook.json.struct
A utility class.

V

value() - Element in annotation type com.blackrook.json.annotation.JSONCollectionType
 
value() - Element in annotation type com.blackrook.json.annotation.JSONName
 
valueOf(String) - Static method in enum com.blackrook.json.JSONObject.Type
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.blackrook.json.JSONObject.Type
Returns an array containing the constants of this enum type, in the order they are declared.
valueType() - Element in annotation type com.blackrook.json.annotation.JSONMapType
 

W

willEmitComments() - Method in class com.blackrook.json.struct.Lexer.Kernel
Checks if this lexer emits comment tokens.
willEmitNewlines() - Method in class com.blackrook.json.struct.Lexer.Kernel
Checks if this lexer emits newline tokens.
willEmitSpaces() - Method in class com.blackrook.json.struct.Lexer.Kernel
Checks if this lexer emits space tokens.
willEmitStreamBreak() - Method in class com.blackrook.json.struct.Lexer.Kernel
Checks if this lexer emits stream break tokens.
willEmitTabs() - Method in class com.blackrook.json.struct.Lexer.Kernel
Checks if this lexer emits tab tokens.
write(JSONObject, OutputStream) - Method in class com.blackrook.json.JSONWriter
Writes a JSONObject out to the following output stream.
write(JSONObject, Writer) - Method in class com.blackrook.json.JSONWriter
Writes a JSONObject out to the following output stream.
write(Object, OutputStream) - Method in class com.blackrook.json.JSONWriter
Writes a JSONObject out to the following output stream.
write(Object, Writer) - Method in class com.blackrook.json.JSONWriter
Writes a JSONObject out to the following output stream.
writeJSON(JSONObject, JSONWriter.Options, OutputStream) - Static method in class com.blackrook.json.JSONWriter
Writes a JSONObject out to the following output stream.
writeJSON(JSONObject, JSONWriter.Options, Writer) - Static method in class com.blackrook.json.JSONWriter
Writes a JSONObject out to the following output stream.
writeJSON(JSONObject, OutputStream) - Static method in class com.blackrook.json.JSONWriter
Writes a JSONObject out to the following output stream.
writeJSON(JSONObject, Writer) - Static method in class com.blackrook.json.JSONWriter
Writes a JSONObject out to the following output stream.
writeJSON(Object, JSONWriter.Options, OutputStream) - Static method in class com.blackrook.json.JSONWriter
Writes a JSONObject out to the following output stream.
writeJSON(Object, JSONWriter.Options, Writer) - Static method in class com.blackrook.json.JSONWriter
Writes a JSONObject out to the following output stream.
writeJSON(Object, OutputStream) - Static method in class com.blackrook.json.JSONWriter
Writes a JSONObject out to the following output stream.
writeJSON(Object, Writer) - Static method in class com.blackrook.json.JSONWriter
Writes a JSONObject out to the following output stream.
writeJSONString(JSONObject) - Static method in class com.blackrook.json.JSONWriter
Writes a JSONObject out to the following output stream.
writeJSONString(JSONObject, JSONWriter.Options) - Static method in class com.blackrook.json.JSONWriter
Writes a JSONObject out to the following output stream.
writeJSONString(Object) - Static method in class com.blackrook.json.JSONWriter
Writes a JSONObject out to the following output stream.
writeJSONString(Object, JSONWriter.Options) - Static method in class com.blackrook.json.JSONWriter
Writes a JSONObject out to the following output stream.
writeString(JSONObject) - Method in class com.blackrook.json.JSONWriter
Writes a JSONObject out to the following output stream.
writeString(Object) - Method in class com.blackrook.json.JSONWriter
Writes a JSONObject out to the following output stream.
A B C D E G H I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form