Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractNode - Class in uk.blankaspect.common.basictree
-
This is the abstract base class of a node of a tree.
- AbstractNode(AbstractNode) - Constructor for class uk.blankaspect.common.basictree.AbstractNode
-
Creates a new instance of a node with the specified parent.
- add(String, AbstractNode) - Method in class uk.blankaspect.common.basictree.MapNode
-
Adds a key–value pair with the specified key and value to this map node.
- add(AbstractNode) - Method in class uk.blankaspect.common.basictree.ListNode
-
Adds the specified node to the end of the list of elements of this list node.
- add(AbstractNode, NodeMessage.Kind, String, Object...) - Method in class uk.blankaspect.common.basictree.NodeMessage.List
-
Creates a new message with the specified attributes and adds it to this list.
- add(AbstractNode, NodeMessage.Kind, String, Throwable, Object...) - Method in class uk.blankaspect.common.basictree.NodeMessage.List
-
Creates a new message with the specified attributes and adds it to this list.
- add(AbstractNode, NodeMessage.Kind, Throwable) - Method in class uk.blankaspect.common.basictree.NodeMessage.List
-
Creates a new message with the specified attributes and adds it to this list.
- add(MapNode.Pair) - Method in class uk.blankaspect.common.basictree.MapNode
-
Adds the specified key–value pair to this map node.
- addAuto(AbstractNode) - Method in class uk.blankaspect.common.basictree.MapNode
-
Adds to this map node a key–value pair with the specified value and a key that is generated by the key-generator function.
- addBoolean(boolean) - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates a new instance of a Boolean node with the specified value, adds it to the end of of the list of elements of this list node and returns it.
- addBoolean(String, boolean) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a Boolean node, adds it to this map node as a key–value pair with the specified key and returns it.
- addBooleanAuto(boolean) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a Boolean node, adds it to this map node as a key–value pair with a key that is generated by the key-generator function and returns it.
- addBooleans(boolean...) - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates new instances of Boolean nodes with the specified values and adds them to the end of the list of elements of this list node, preserving the order of the values.
- addBooleans(Iterable<Boolean>) - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates new instances of Boolean nodes with the specified values and adds them to the end of the list of elements of this list node, preserving the order of the values.
- addBooleans(String, boolean...) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a list node whose elements are new instances of Boolean nodes with the specified values, adds the list node to this map node as a key–value pair with the specified key and returns it.
- addBooleans(String, Iterable<Boolean>) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a list node whose elements are new instances of Boolean nodes with the specified values, adds the list node to this map node as a key–value pair with the specified key and returns it.
- addDouble(double) - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates a new instance of a 'double' node with the specified value, adds it to the end of the list of elements of this list node and returns it.
- addDouble(String, double) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a 'double' node, adds it to this map node as a key–value pair with the specified key and returns it.
- addDoubleAuto(double) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a 'double' node, adds it to this map node as a key–value pair with a key that is generated by the key-generator function and returns it.
- addDoubles(double...) - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates new instances of 'double' nodes with the specified values and adds them to the end of the list of elements of this list node, preserving the order of the values.
- addDoubles(Iterable<Double>) - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates new instances of 'double' nodes with the specified values and adds them to the end of the list of elements of this list node, preserving the order of the values.
- addDoubles(String, double...) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a list node whose elements are new instances of 'double' nodes with the specified values, adds the list node to this map node as a key–value pair with the specified key and returns it.
- addDoubles(String, Iterable<Double>) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a list node whose elements are new instances of 'double' nodes with the specified values, adds the list node to this map node as a key–value pair with the specified key and returns it.
- addElements(Iterable<? extends AbstractNode>) - Method in class uk.blankaspect.common.basictree.ListNode
-
Adds the specified nodes to the end of the list of elements of this list node.
- addElements(AbstractNode...) - Method in class uk.blankaspect.common.basictree.ListNode
-
Adds the specified nodes to the end of the list of elements of this list node.
- addInt(int) - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates a new instance of an 'int' node with the specified value, adds it to the end of the list of elements of this list node and returns it.
- addInt(String, int) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of an 'int' node, adds it to this map node as a key–value pair with the specified key and returns it.
- addIntAuto(int) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of an 'int' node, adds it to this map node as a key–value pair with a key that is generated by the key-generator function and returns it.
- addInts(int...) - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates new instances of 'int' nodes with the specified values and adds them to the end of the list of elements of this list node, preserving the order of the values.
- addInts(Iterable<Integer>) - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates new instances of 'int' nodes with the specified values and adds them to the end of the list of elements of this list node, preserving the order of the values.
- addInts(String, int...) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a list node whose elements are new instances of 'int' nodes with the specified values, adds the list node to this map node as a key–value pair with the specified key and returns it.
- addInts(String, Iterable<Integer>) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a list node whose elements are new instances of 'int' nodes with the specified values, adds the list node to this map node as a key–value pair with the specified key and returns it.
- addList(Iterable<? extends AbstractNode>) - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates a new instance of a list node with the specified elements, adds it to the end of the list of elements of this list node and returns it.
- addList(String, Iterable<? extends AbstractNode>) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a list node that contains the specified elements, adds it to this map node as a key–value pair with the specified key and returns it.
- addList(String, AbstractNode...) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a list node that contains the specified elements, adds it to this map node as a key–value pair with the specified key and returns it.
- addList(AbstractNode...) - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates a new instance of a list node with the specified elements, adds it to the end of the list of elements of this list node and returns it.
- addListAuto(Iterable<? extends AbstractNode>) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a list node that contains the specified elements, adds it to this map node as a key–value pair with a key that is generated by the key-generator function and returns it.
- addListAuto(AbstractNode...) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a list node that contains the specified elements, adds it to this map node as a key–value pair with a key that is generated by the key-generator function and returns it.
- addLong(long) - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates a new instance of a 'long' node with the specified value, adds it to the end of the list of elements of this list node and returns it.
- addLong(String, long) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a 'long' node, adds it to this map node as a key–value pair with the specified key and returns it.
- addLongAuto(long) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a 'long' node, adds it to this map node as a key–value pair with a key that is generated by the key-generator function and returns it.
- addLongs(long...) - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates new instances of 'long' nodes with the specified values and adds them to the end of the list of elements of this list node, preserving the order of the values.
- addLongs(Iterable<Long>) - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates new instances of 'long' nodes with the specified values and adds them to the end of the list of elements of this list node, preserving the order of the values.
- addLongs(String, long...) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a list node whose elements are new instances of 'long' nodes with the specified values, adds the list node to this map node as a key–value pair with the specified key and returns it.
- addLongs(String, Iterable<Long>) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a list node whose elements are new instances of 'long' nodes with the specified values, adds the list node to this map node as a key–value pair with the specified key and returns it.
- addMap(String, Iterable<? extends MapNode.Pair>) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a map node that contains the specified pairs of keys and values, adds the new map node to this map node as a key–value pair with the specified key and returns it.
- addMap(String, Map<String, AbstractNode>) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a map node that contains the specified pairs of keys and values, adds the new map node to this map node as a key–value pair with the specified key and returns it.
- addMap(String, MapNode.Pair...) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a map node that contains the specified pairs of keys and values, adds the new map node to this map node as a key–value pair with the specified key and returns it.
- addMap(Map<String, AbstractNode>) - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates a new instance of a map node with the specified key–value pairs, adds it to the end of the list of elements of this list node and returns it.
- addMapAuto(Iterable<? extends MapNode.Pair>) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a map node that contains the specified pairs of keys and values, adds the new map node to this map node as a key–value pair with a key that is generated by the key-generator function and returns it.
- addMapAuto(Map<String, AbstractNode>) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a map node that contains the specified pairs of keys and values, adds the new map node to this map node as a key–value pair with a key that is generated by the key-generator function and returns it.
- addMapAuto(MapNode.Pair...) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a map node that contains the specified pairs of keys and values, adds the new map node to this map node as a key–value pair with a key that is generated by the key-generator function and returns it.
- addNull() - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates a new instance of a null node and adds it to the end of the list of elements of this list node.
- addNull(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a null node, adds it to this map node as a key–value pair with the specified key and returns it.
- addNullAuto() - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a null node, adds it to this map node as a key–value pair with a key that is generated by the key-generator function and returns it.
- addPairs(Iterable<? extends MapNode.Pair>) - Method in class uk.blankaspect.common.basictree.MapNode
-
Adds the specified key–value pairs to the key–value pairs of this map node.
- addPairs(Map<String, AbstractNode>) - Method in class uk.blankaspect.common.basictree.MapNode
-
Adds the specified pairs of keys and values to the key–value pairs of this map node.
- addPairs(MapNode.Pair...) - Method in class uk.blankaspect.common.basictree.MapNode
-
Adds the specified key–value pairs to the key–value pairs of this map node.
- addString(String) - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates a new instance of a string node with the specified value, adds it to the end of the list of elements of this list node and returns it.
- addString(String, String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a string node, adds it to this map node as a key–value pair with the specified key and returns it.
- addStringAuto(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a string node, adds it to this map node as a key–value pair with a key that is generated by the key-generator function and returns it.
- addStrings(Iterable<String>) - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates new instances of string nodes with the specified values and adds them to the end of the list of elements of this list node, preserving the order of the values.
- addStrings(String...) - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates new instances of string nodes with the specified values and adds them to the end of the list of elements of this list node, preserving the order of the values.
- addStrings(String, Iterable<String>) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a list node whose elements are new instances of string nodes with the specified values, adds the list node to this map node as a key–value pair with the specified key and returns it.
- addStrings(String, String...) - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a list node whose elements are new instances of string nodes with the specified values, adds the list node to this map node as a key–value pair with the specified key and returns it.
- ANY - Static variable in class uk.blankaspect.common.basictree.NodeType
-
The root of the node-type hierarchy.
- ARRAY_ELEMENT_SEPARATOR_CHAR - Static variable in interface uk.blankaspect.common.json.JsonConstants
-
The character that separates adjacent elements of a JSON array.
- ARRAY_END_CHAR - Static variable in interface uk.blankaspect.common.json.JsonConstants
-
The character that denotes the end of a JSON array.
- ARRAY_START_CHAR - Static variable in interface uk.blankaspect.common.json.JsonConstants
-
The character that denotes the start of a JSON array.
- AutoIndexMap() - Constructor for class uk.blankaspect.common.basictree.MapNode.AutoIndexMap
-
Creates a new instance of a map from map nodes to auto-incrementing indices.
B
- BooleanNode - Class in uk.blankaspect.common.basictree
-
This class implements a node that contains a Boolean value.
- BooleanNode(boolean) - Constructor for class uk.blankaspect.common.basictree.BooleanNode
-
Creates a new instance of a Boolean node that has no parent and has the specified value.
- BooleanNode(AbstractNode, boolean) - Constructor for class uk.blankaspect.common.basictree.BooleanNode
-
Creates a new instance of a Boolean node that has the specified parent and value.
- booleanNodes() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns a list of the elements of this list node that are Boolean nodes.
- booleanStream() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns a stream of the elements of this list node that are Boolean nodes.
C
- charToUnicodeHex(char) - Static method in class uk.blankaspect.common.basictree.StringNode
-
Returns a representation of the Unicode value of the specified character as a string of four hexadecimal-digit characters.
- clear() - Method in class uk.blankaspect.common.basictree.ListNode
-
Removes all the elements of this list node.
- clear() - Method in class uk.blankaspect.common.basictree.MapNode.AutoIndexMap
-
Removes all the entries from this map.
- clear() - Method in class uk.blankaspect.common.basictree.MapNode
-
Removes all the key–value pairs of this map node.
- clone() - Method in class uk.blankaspect.common.basictree.AbstractNode
-
Creates and returns a copy of this node that has no parent.
- clone() - Method in class uk.blankaspect.common.basictree.BooleanNode
-
Creates and returns a copy of this Boolean node that has no parent.
- clone() - Method in class uk.blankaspect.common.basictree.DoubleNode
-
Creates and returns a copy of this 'double' node that has no parent.
- clone() - Method in class uk.blankaspect.common.basictree.IntNode
-
Creates and returns a copy of this 'int' node that has no parent.
- clone() - Method in class uk.blankaspect.common.basictree.ListNode
-
Creates and returns a deep copy of this list node that has no parent.
- clone() - Method in class uk.blankaspect.common.basictree.LongNode
-
Creates and returns a copy of this 'long' node that has no parent.
- clone() - Method in class uk.blankaspect.common.basictree.MapNode
-
Creates and returns a deep copy of this map node that has no parent.
- clone() - Method in class uk.blankaspect.common.basictree.MapNode.Pair
-
Creates and returns a copy of this key–value pair.
- clone() - Method in class uk.blankaspect.common.basictree.NullNode
-
Creates and returns a copy of this null node that has no parent.
- clone() - Method in class uk.blankaspect.common.basictree.StringNode
-
Creates and returns a copy of this string node that has no parent.
- COMPACT - Enum constant in enum class uk.blankaspect.common.json.JsonGenerator.Mode
-
JSON text is written on a single line with a space between some tokens.
- CONTAINER_NODE_TYPES - Static variable in interface uk.blankaspect.common.json.JsonConstants
-
The types of nodes that represent JSON values that are containers.
- containsText(Reader, CharSequence) - Static method in class uk.blankaspect.common.json.JsonUtils
-
Returns
true
if the specified sequence of characters is found in the specified character stream. - containsText(Path, CharSequence) - Static method in class uk.blankaspect.common.json.JsonUtils
-
Returns
true
if the specified sequence of characters is found in the specified file, which is expected to contain text with the UTF-8 character encoding.
D
- DEBUG - Enum constant in enum class uk.blankaspect.common.basictree.NodeMessage.Kind
-
A debug message.
- DEFAULT_GENERATED_KEY_PREFIX - Static variable in class uk.blankaspect.common.basictree.MapNode
-
The prefix of a key that is generated by the default key-generator function.
- DENSE - Enum constant in enum class uk.blankaspect.common.json.JsonGenerator.Mode
-
JSON text is written on a single line with no space between tokens.
- DoubleNode - Class in uk.blankaspect.common.basictree
-
This class implements a node that contains a double-precision floating-point number.
- DoubleNode(double) - Constructor for class uk.blankaspect.common.basictree.DoubleNode
-
Creates a new instance of a 'double' node that has no parent and has the specified value.
- DoubleNode(AbstractNode, double) - Constructor for class uk.blankaspect.common.basictree.DoubleNode
-
Creates a new instance of a 'double' node that has the specified parent and value.
- doubleNodes() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns a list of the elements of this list node that are 'double' nodes.
- doubleStream() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns a stream of the elements of this list node that are 'double' nodes.
E
- ELEMENT_SEPARATOR_CHAR - Static variable in class uk.blankaspect.common.basictree.ListNode
-
The character that separates adjacent elements in the string representation of a list node.
- END_CHAR - Static variable in class uk.blankaspect.common.basictree.ListNode
-
The character that denotes the end of the string representation of a list node.
- END_CHAR - Static variable in class uk.blankaspect.common.basictree.MapNode
-
The character that denotes the end of the string representation of a map node.
- END_CHAR - Static variable in class uk.blankaspect.common.basictree.StringNode
-
The character that denotes the end of the string representation of a string node.
- equals(Object) - Method in class uk.blankaspect.common.basictree.BooleanNode
-
Returns
true
if the specified object is an instance ofBooleanNode
and it has the same value as this Boolean node. - equals(Object) - Method in class uk.blankaspect.common.basictree.DoubleNode
-
Returns
true
if the specified object is an instance ofDoubleNode
and it has the same value as this 'double' node. - equals(Object) - Method in class uk.blankaspect.common.basictree.IntNode
-
Returns
true
if the specified object is an instance ofIntNode
and it has the same value as this 'int' node. - equals(Object) - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns
true
if the specified object is an instance ofListNode
and this list node contains the same number of elements as the other list node and each element in this list node is equal to the element at the same index in the other list node. - equals(Object) - Method in class uk.blankaspect.common.basictree.LongNode
-
Returns
true
if the specified object is an instance ofLongNode
and it has the same value as this 'long' node. - equals(Object) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns
true
if the specified object is an instance ofMapNode
and this map node contains the same number of key–value pairs as the other map node and for each KV pair in this map node, kv1, there is a KV pair in the other map node, kv2, for which the keys of kv1 and kv2 are equal and the values of kv1 and kv2 are equal. - equals(Object) - Method in class uk.blankaspect.common.basictree.MapNode.Pair
-
Returns
true
if the specified object is an instance ofPair
and the keys and values of the two pairs are equal to each other. - equals(Object) - Method in class uk.blankaspect.common.basictree.NullNode
-
Returns
true
if the specified object is an instance ofNullNode
. - equals(Object) - Method in class uk.blankaspect.common.basictree.StringNode
-
Returns
true
if the specified object is an instance ofStringNode
and it has the same value as this string node. - ERROR - Enum constant in enum class uk.blankaspect.common.basictree.NodeMessage.Kind
-
An error message.
- escape(CharSequence) - Static method in class uk.blankaspect.common.basictree.StringNode
-
Transforms the specified character sequence to a string, replacing each occurrence of one of the following characters with an escape sequence, and returns the resulting string: a quotation mark ("), a reverse solidus (\), a character outside the range U+0020 to U+007E inclusive.
- ESCAPE_MAPPINGS - Static variable in class uk.blankaspect.common.basictree.StringNode
-
Mappings from literal characters to their corresponding characters in an escape sequence.
- ESCAPE_PREFIX - Static variable in class uk.blankaspect.common.basictree.StringNode
-
The string with which an escape sequence begins.
- ESCAPE_PREFIX_CHAR - Static variable in class uk.blankaspect.common.basictree.StringNode
-
The character with which an escape sequence begins.
- escapeAndQuote(CharSequence) - Static method in class uk.blankaspect.common.basictree.StringNode
-
Calls
StringNode.escape(CharSequence)
on the specified character sequence, encloses the returned string in quotation marks and returns the resulting string. - EXCEPTION - Enum constant in enum class uk.blankaspect.common.basictree.NodeMessage.Component
-
The exception that is associated with the message.
- EXPANDED - Enum constant in enum class uk.blankaspect.common.json.JsonGenerator.Mode
-
JSON text may be written on multiple lines with a space between some tokens.
F
- FATAL - Enum constant in enum class uk.blankaspect.common.basictree.NodeMessage.Kind
-
A fatal error message.
- findNode(T, Iterable<U>, BiPredicate<T, U>) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Searches a tree of
ITreeNode
s, starting from the specified root node, for a node whose path from the root matches the specified path descriptor.
G
- generate(AbstractNode) - Method in class uk.blankaspect.common.json.JsonGenerator
-
Generates and returns JSON text for the specified JSON value in accordance with the properties of this generator: mode, opening bracket on the same line flag, indent increment, maximum line length.
- get(int) - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the element of this list node at the specified index.
- get(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the value of the key–value pair of this map node with the specified key.
- getBoolean(int) - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the element of this list node at the specified index as a Boolean node.
- getBoolean(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the underlying value of the Boolean node that is associated with the specified key in this map node.
- getBoolean(String, boolean) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the underlying value of the Boolean node that is associated with the specified key in this map node.
- getBooleanArray() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the underlying values of the elements of this list node as an array of
boolean
s. - getBooleanList() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the underlying values of the elements of this list node as a list of
Boolean
s. - getBooleanNode(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the Boolean node that is associated with the specified key in this map node.
- getChildren() - Method in class uk.blankaspect.common.basictree.AbstractNode
-
Returns a list of the children of this node.
- getChildren() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns a list of the elements of this list node.
- getChildren() - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns a list of the values of the key–value pairs of this map node.
- getChildren() - Method in class uk.blankaspect.common.basictree.NodeType
-
Returns an unmodifiable list of the child types of this node type.
- getChildren() - Method in interface uk.blankaspect.common.tree.ITreeNode
-
Returns a list of the children of this node.
- getColumnIndex() - Method in exception uk.blankaspect.common.json.JsonParser.ParseException
-
Returns the zero-based index of the column of the input text at which the exception occurred.
- getDepth(T) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Returns the depth of the specified node (ie, the number of levels below the root node of the tree to which the specified node belongs).
- getDepth(T, T) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Returns the number of levels of the specified node below the specified root node.
- getDouble(int) - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the element of this list node at the specified index as a 'double' node.
- getDouble(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the underlying value of the 'double' node that is associated with the specified key in this map node.
- getDouble(String, double) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the underlying value of the 'double' node that is associated with the specified key in this map node.
- getDoubleArray() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the underlying values of the elements of this list node as an array of
double
s. - getDoubleList() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the underlying values of the elements of this list node as a list of
Double
s. - getDoubleNode(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the 'double' node that is associated with the specified key in this map node.
- getElements() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns an unmodifiable list of the elements of this list node.
- getEnumValue(Class<E>, String, E) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the constant of the specified enumeration type whose name matches the underlying value of the string node that is associated with the specified key in this map node.
- getEnumValue(Class<E>, String, Function<E, String>, E) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the constant of the specified enumeration type that, after the specified converter has been applied to it, matches the underlying value of the string node that is associated with the specified key in this map node.
- getException() - Method in class uk.blankaspect.common.basictree.NodeMessage
-
Returns the exception that is associated with this message.
- getIndex(MapNode) - Method in class uk.blankaspect.common.basictree.MapNode.AutoIndexMap
-
Returns the index for the specified map node.
- getIndices(T, int) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Returns a list of indices to the specified node from the root of the tree to which it belongs.
- getIndices(T, T, boolean, int) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Returns a list of indices of the path from the specified root node to the specified node, which is assumed to be a descendant of the specified root.
- getInt(int) - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the element of this list node at the specified index as an 'int' node.
- getInt(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the underlying value of the 'int' node that is associated with the specified key in this map node.
- getInt(String, int) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the underlying value of the 'int' node that is associated with the specified key in this map node.
- getIntArray() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the underlying values of the elements of this list node as an array of
int
s. - getIntList() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the underlying values of the elements of this list node as a list of
Integer
s. - getIntNode(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the 'int' node that is associated with the specified key in this map node.
- getIntOrLong(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the underlying value of the 'int' node or 'long' node that is associated with the specified key in this map node.
- getIntOrLong(String, long) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the underlying value of the 'int' node or 'long' node that is associated with the specified key in this map node.
- getIntOrLongArray() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the underlying values of the elements of this list node as an array of
long
s. - getIntOrLongList() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the underlying values of the elements of this list node as a list of
Long
s. - getKey() - Method in class uk.blankaspect.common.basictree.MapNode.Pair
-
Returns the key of this key–value pair.
- getKeys() - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns a list of the keys of the key–value pairs of this map node.
- getKind() - Method in class uk.blankaspect.common.basictree.NodeMessage
-
Returns the kind of this message.
- getLineIndex() - Method in exception uk.blankaspect.common.json.JsonParser.ParseException
-
Returns the zero-based index of the line of the input text at which the exception occurred.
- getList(int) - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the element of this list node at the specified index as a list node.
- getListIndex() - Method in class uk.blankaspect.common.basictree.AbstractNode
-
If this node is an element of a list node, returns the index of the element in the list node's list of elements.
- getListNode(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the list node that is associated with the specified key in this map node.
- getLong(int) - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the element of this list node at the specified index as a 'long' node.
- getLong(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the underlying value of the 'long' node that is associated with the specified key in this map node.
- getLong(String, long) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the underlying value of the 'long' node that is associated with the specified key in this map node.
- getLongArray() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the underlying values of the elements of this list node as an array of
long
s. - getLongList() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the underlying values of the elements of this list node as a list of
Long
s. - getLongNode(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the 'long' node that is associated with the specified key in this map node.
- getMap(int) - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the element of this list node at the specified index as a map node.
- getMapKey() - Method in class uk.blankaspect.common.basictree.AbstractNode
-
If this node is the value of a key–value pair of a map node, returns the key that is associated with the value.
- getMapNode(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the map node that is associated with the specified key in this map node.
- getMessages() - Method in class uk.blankaspect.common.basictree.NodeMessage.List
-
Returns an unmodifiable list of the messages in this list.
- getNode() - Method in class uk.blankaspect.common.basictree.NodeMessage
-
Returns the node that is associated with this message.
- getNodeClass() - Method in class uk.blankaspect.common.basictree.NodeType
-
Returns the class of node with which this node type is associated.
- getNodeType() - Method in exception uk.blankaspect.common.basictree.NodeTypeException
-
Returns the node type that is associated with this exception.
- getNull(int) - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the element of this list node at the specified index as a null node.
- getNullNode(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the null node that is associated with the specified key in this map node.
- getNumElements() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the number of elements that this list node contains.
- getNumMessages() - Method in class uk.blankaspect.common.basictree.NodeMessage.List
-
Returns the number of messages in this list.
- getNumPairs() - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the number of key–value pairs that this map node contains.
- getPairIterator() - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns an iterator over the key–value pairs of this map node.
- getPairList() - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns a list of the key–value pairs of this map node.
- getPairs() - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns an unmodifiable map of the key–value pairs of this map node.
- getParent() - Method in class uk.blankaspect.common.basictree.AbstractNode
-
Returns the parent of this node.
- getParent() - Method in class uk.blankaspect.common.basictree.NodeType
-
Returns the parent type of this node type.
- getParent() - Method in interface uk.blankaspect.common.tree.ITreeNode
-
Returns the parent of this node.
- getPath(T) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Returns the path to the specified node from the root of the tree to which it belongs.
- getPath(T, T) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Returns the path from the specified root node to the specified node, which is assumed to be a descendant of the specified root.
- getRoot(T) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Returns the root node of the tree to which the specified node belongs.
- getSiblings(T) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Returns a list of the siblings of the specified node.
- getString(int) - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the element of this list node at the specified index as a string node.
- getString(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the underlying value of the string node that is associated with the specified key in this map node.
- getString(String, String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the underlying value of the string node that is associated with the specified key in this map node.
- getStringArray() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the underlying values of the elements of this list node as an array of strings.
- getStringList() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the underlying values of the elements of this list node as a list of strings.
- getStringNode(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the string node that is associated with the specified key in this map node.
- getText() - Method in class uk.blankaspect.common.basictree.NodeMessage
-
Returns the text of this message.
- getType() - Method in class uk.blankaspect.common.basictree.AbstractNode
-
Returns the type of this node.
- getType() - Method in class uk.blankaspect.common.basictree.BooleanNode
- getType() - Method in class uk.blankaspect.common.basictree.DoubleNode
- getType() - Method in class uk.blankaspect.common.basictree.IntNode
- getType() - Method in class uk.blankaspect.common.basictree.ListNode
- getType() - Method in class uk.blankaspect.common.basictree.LongNode
- getType() - Method in class uk.blankaspect.common.basictree.MapNode
- getType() - Method in class uk.blankaspect.common.basictree.NullNode
- getType() - Method in class uk.blankaspect.common.basictree.StringNode
- getValue() - Method in class uk.blankaspect.common.basictree.BooleanNode
-
Returns the value of this Boolean node.
- getValue() - Method in class uk.blankaspect.common.basictree.DoubleNode
-
Returns the value of this 'double' node.
- getValue() - Method in class uk.blankaspect.common.basictree.IntNode
-
Returns the value of this 'int' node.
- getValue() - Method in class uk.blankaspect.common.basictree.LongNode
-
Returns the value of this 'long' node.
- getValue() - Method in class uk.blankaspect.common.basictree.MapNode.Pair
-
Returns the value of this key–value pair.
- getValue() - Method in class uk.blankaspect.common.basictree.StringNode
-
Returns the value of this string node.
H
- hasBoolean(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns
true
if this map node contains a key–value pair whose key is the specified key and whose value is a Boolean node. - hasDouble(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns
true
if this map node contains a key–value pair whose key is the specified key and whose value is a 'double' node. - hasFatalError() - Method in class uk.blankaspect.common.basictree.NodeMessage.List
-
Returns
true
if this list contains at least one 'fatal error' message. - hashCode() - Method in class uk.blankaspect.common.basictree.BooleanNode
-
Returns the hash code of this Boolean node.
- hashCode() - Method in class uk.blankaspect.common.basictree.DoubleNode
-
Returns the hash code of this 'double' node.
- hashCode() - Method in class uk.blankaspect.common.basictree.IntNode
-
Returns the hash code of this 'int' node.
- hashCode() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the hash code of this list node, which is the hash code of its elements.
- hashCode() - Method in class uk.blankaspect.common.basictree.LongNode
-
Returns the hash code of this 'long' node.
- hashCode() - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns the hash code of this map node, which is the hash code of its key–value pairs.
- hashCode() - Method in class uk.blankaspect.common.basictree.MapNode.Pair
-
Returns the hash code of this key–value pair.
- hashCode() - Method in class uk.blankaspect.common.basictree.NullNode
-
Returns the hash code of this null node.
- hashCode() - Method in class uk.blankaspect.common.basictree.StringNode
-
Returns the hash code of this string node.
- hasInt(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns
true
if this map node contains a key–value pair whose key is the specified key and whose value is an 'int' node. - hasIntOrLong(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns
true
if this map node contains a key–value pair whose key is the specified key and whose value is either an 'int' node or a 'long' node. - hasKey(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns
true
if this map node contains a key–value pair with the specified key. - hasList(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns
true
if this map node contains a key–value pair whose key is the specified key and whose value is a list node. - hasLong(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns
true
if this map node contains a key–value pair whose key is the specified key and whose value is a 'long' node. - hasMap(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns
true
if this map node contains a key–value pair whose key is the specified key and whose value is a map node. - hasNull(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns
true
if this map node contains a key–value pair whose key is the specified key and whose value is a null node. - hasString(String) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns
true
if this map node contains a key–value pair whose key is the specified key and whose value is a string node.
I
- indexOf(AbstractNode) - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns the index of the specified node in the list of the elements of this list node.
- INFO - Enum constant in enum class uk.blankaspect.common.basictree.NodeMessage.Kind
-
An informative message.
- IntNode - Class in uk.blankaspect.common.basictree
-
This class implements a node that contains an integer.
- IntNode(int) - Constructor for class uk.blankaspect.common.basictree.IntNode
-
Creates a new instance of an 'int' node that has no parent and has the specified value.
- IntNode(AbstractNode, int) - Constructor for class uk.blankaspect.common.basictree.IntNode
-
Creates a new instance of an 'int' node that has the specified parent and value.
- intNodes() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns a list of the elements of this list node that are 'int' nodes.
- intStream() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns a stream of the elements of this list node that are 'int' nodes.
- is(NodeType) - Method in class uk.blankaspect.common.basictree.NodeType
-
Returns
true
if this node type is identical to or a subtype (ie, descendant) of the specified node type. - isAncestor(T, T) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Returns
true
if the specified node is an ancestor of the specified target node. - isAncestor(T, T, boolean) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Returns
true
if the specified node is an ancestor of the specified target node or, optionally, if the node is identical to the target. - isAnyOf(Iterable<NodeType>) - Method in class uk.blankaspect.common.basictree.NodeType
-
Returns
true
if this node type is identical to or a subtype (ie, descendant) of any of the specified node types. - isAnyOf(NodeType...) - Method in class uk.blankaspect.common.basictree.NodeType
-
Returns
true
if this node type is identical to or a subtype (ie, descendant) of any of the specified node types. - isContainer() - Method in class uk.blankaspect.common.basictree.AbstractNode
-
Returns
true
if this node can contain other nodes. - isContainer() - Method in class uk.blankaspect.common.basictree.BooleanNode
-
Returns
true
if this node can contain other nodes. - isContainer() - Method in class uk.blankaspect.common.basictree.DoubleNode
-
Returns
true
if this node can contain other nodes. - isContainer() - Method in class uk.blankaspect.common.basictree.IntNode
-
Returns
true
if this node can contain other nodes. - isContainer() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns
true
if this node can contain other nodes. - isContainer() - Method in class uk.blankaspect.common.basictree.LongNode
-
Returns
true
if this node can contain other nodes. - isContainer() - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns
true
if this node can contain other nodes. - isContainer() - Method in class uk.blankaspect.common.basictree.NullNode
-
Returns
true
if this node can contain other nodes. - isContainer() - Method in class uk.blankaspect.common.basictree.StringNode
-
Returns
true
if this node can contain other nodes. - isEmpty() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns
true
if this list node contains no elements. - isEmpty() - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns
true
if this map node contains no key–value pairs. - isEmpty() - Method in class uk.blankaspect.common.basictree.NodeMessage.List
-
Returns
true
if this list contains no messages. - isError() - Method in class uk.blankaspect.common.basictree.NodeMessage
-
Returns
true
if the kind of this message is an error or a fatal error. - isJsonContainer(AbstractNode) - Static method in class uk.blankaspect.common.json.JsonUtils
-
Returns
true
if the specified node represents a JSON container (ie, an array or object). - isJsonValue(AbstractNode) - Static method in class uk.blankaspect.common.json.JsonUtils
-
Returns
true
if the specified node represents a JSON value. - isLeaf() - Method in interface uk.blankaspect.common.tree.ITreeNode
-
Returns
true
if this node is a leaf node (ie, it has no children). - isRoot() - Method in class uk.blankaspect.common.basictree.AbstractNode
-
Returns
true
if this node is the root of the tree to which it belongs. - isSimpleJsonValue(AbstractNode) - Static method in class uk.blankaspect.common.json.JsonUtils
-
Returns
true
if the specified node represents a simple JSON value (ie, a null, a Boolean, a number or a string). - iterator() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns an iterator over the elements of this list node.
- ITreeNode<T extends ITreeNode<T>> - Interface in uk.blankaspect.common.tree
-
This interface defines the methods that must be implemented by a node of a tree that can be used with the methods of
TreeUtils
.
J
- JsonConstants - Interface in uk.blankaspect.common.json
-
This interface defines constants that relate to JSON.
- JsonGenerator - Class in uk.blankaspect.common.json
-
This class implements a generator that transforms a tree of values that are represented by nodes into JSON text.
- JsonGenerator() - Constructor for class uk.blankaspect.common.json.JsonGenerator
-
Creates a new instance of a JSON generator with default values for the mode (
NORMAL
), the opening bracket on the same line flag (false
), the indent increment (2) and the maximum line length (80). - JsonGenerator(JsonGenerator.Mode) - Constructor for class uk.blankaspect.common.json.JsonGenerator
-
Creates a new instance of a JSON generator with the specified mode.
- JsonGenerator(JsonGenerator.Mode, boolean) - Constructor for class uk.blankaspect.common.json.JsonGenerator
-
Creates a new instance of a JSON generator with the specified mode and opening bracket on the same line flag.
- JsonGenerator(JsonGenerator.Mode, boolean, int, int) - Constructor for class uk.blankaspect.common.json.JsonGenerator
-
Creates a new instance of a JSON generator with the specified mode, opening bracket on the same line flag, indent increment and maximum line length.
- JsonGenerator.Mode - Enum Class in uk.blankaspect.common.json
-
This is an enumeration of the modes that control the way in which whitespace is written between the tokens of the JSON text.
- JsonParser - Class in uk.blankaspect.common.json
-
This class implements a parser that transforms JSON text into a tree of values that are represented by nodes.
- JsonParser() - Constructor for class uk.blankaspect.common.json.JsonParser
-
Creates a new instance of a JSON parser.
- JsonParser.ParseException - Exception in uk.blankaspect.common.json
-
This class implements an exception that is thrown if an error occurs when parsing JSON text.
- JsonUtils - Class in uk.blankaspect.common.json
-
This class contains utility methods that relate to JSON.
K
- KEY_VALUE_SEPARATOR_CHAR - Static variable in class uk.blankaspect.common.basictree.MapNode
-
The character that separates the key and value of a KV pair in the string representation of a map node.
- keyToString(CharSequence) - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns a string representation of the specified key for a map node.
- KIND - Enum constant in enum class uk.blankaspect.common.basictree.NodeMessage.Component
-
The kind of the message.
L
- List() - Constructor for class uk.blankaspect.common.basictree.NodeMessage.List
-
Creates a new instance of a list of node-related messages.
- ListNode - Class in uk.blankaspect.common.basictree
- ListNode() - Constructor for class uk.blankaspect.common.basictree.ListNode
-
Creates a new instance of a list node that has no parent and initially contains no elements.
- ListNode(Iterable<? extends AbstractNode>) - Constructor for class uk.blankaspect.common.basictree.ListNode
-
Creates a new instance of a list node that has no parent and initially contains the specified elements.
- ListNode(AbstractNode) - Constructor for class uk.blankaspect.common.basictree.ListNode
-
Creates a new instance of a list node that has the specified parent and initially contains no elements.
- ListNode(AbstractNode, Iterable<? extends AbstractNode>) - Constructor for class uk.blankaspect.common.basictree.ListNode
-
Creates a new instance of a list node that has the specified parent and initially contains the specified elements.
- ListNode(AbstractNode, AbstractNode...) - Constructor for class uk.blankaspect.common.basictree.ListNode
-
Creates a new instance of a list node that has the specified parent and initially contains the specified elements.
- listNodes() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns a list of the elements of this list node that are list nodes.
- listStream() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns a stream of the elements of this list node that are list nodes.
- LongNode - Class in uk.blankaspect.common.basictree
-
This class implements a node that contains a long integer.
- LongNode(long) - Constructor for class uk.blankaspect.common.basictree.LongNode
-
Creates a new instance of a 'long' node that has no parent and has the specified value.
- LongNode(AbstractNode, long) - Constructor for class uk.blankaspect.common.basictree.LongNode
-
Creates a new instance of a 'long' node that has the specified parent and value.
- longNodes() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns a list of the elements of this list node that are 'long' nodes.
- longStream() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns a stream of the elements of this list node that are 'long' nodes.
M
- MapNode - Class in uk.blankaspect.common.basictree
- MapNode() - Constructor for class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a map node that has no parent and initially contains no key–value pairs.
- MapNode(Iterable<? extends MapNode.Pair>) - Constructor for class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a map node that has no parent and initially contains the specified key–value pairs.
- MapNode(Map<String, AbstractNode>) - Constructor for class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a map node that has no parent and initially contains the specified key–value pairs.
- MapNode(AbstractNode) - Constructor for class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a map node that has the specified parent and initially contains no key–value pairs.
- MapNode(AbstractNode, Iterable<? extends MapNode.Pair>) - Constructor for class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a map node that has the specified parent and initially contains the specified key–value pairs.
- MapNode(AbstractNode, Map<String, AbstractNode>) - Constructor for class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a map node that has the specified parent and initially contains the specified key–value pairs.
- MapNode(AbstractNode, MapNode.Pair...) - Constructor for class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a map node that has the specified parent and initially contains the specified key–value pairs.
- MapNode(MapNode.Pair...) - Constructor for class uk.blankaspect.common.basictree.MapNode
-
Creates a new instance of a map node that has no parent and initially contains the specified key–value pairs.
- MapNode.AutoIndexMap - Class in uk.blankaspect.common.basictree
-
This class implements a map from map nodes to indices that are automatically incremented.
- MapNode.Pair - Class in uk.blankaspect.common.basictree
-
This class encapsulates a key–value pair of a map node.
- mapNodes() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns a list of the elements of this list node that are map nodes.
- mapStream() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns a stream of the elements of this list node that are map nodes.
N
- NODE - Enum constant in enum class uk.blankaspect.common.basictree.NodeMessage.Component
-
The node that is associated with the message.
- NODE_TYPES - Static variable in interface uk.blankaspect.common.json.JsonConstants
-
The types of nodes that represent JSON values.
- NodeMessage - Class in uk.blankaspect.common.basictree
-
This class encapsulates a message that relates to a node.
- NodeMessage(AbstractNode, NodeMessage.Kind, String) - Constructor for class uk.blankaspect.common.basictree.NodeMessage
-
Creates a new instance of a message of the specified kind that relates to the specified node.
- NodeMessage(AbstractNode, NodeMessage.Kind, String, Throwable) - Constructor for class uk.blankaspect.common.basictree.NodeMessage
-
Creates a new instance of a message of the specified kind that relates to the specified node.
- NodeMessage(AbstractNode, NodeMessage.Kind, Throwable) - Constructor for class uk.blankaspect.common.basictree.NodeMessage
-
Creates a new instance of a message of the specified kind that relates to the specified node.
- NodeMessage.Component - Enum Class in uk.blankaspect.common.basictree
-
This is an enumeration of the components of a node-related message.
- NodeMessage.Kind - Enum Class in uk.blankaspect.common.basictree
-
This is an enumeration of the kinds of a node-related message.
- NodeMessage.List - Class in uk.blankaspect.common.basictree
-
This class implements a list of node-related messages.
- nodesToArray(Collection<? extends BooleanNode>) - Static method in class uk.blankaspect.common.basictree.BooleanNode
-
Returns an array whose elements are the values of the specified Boolean nodes, with the order of the elements preserved.
- nodesToArray(Collection<? extends DoubleNode>) - Static method in class uk.blankaspect.common.basictree.DoubleNode
-
Returns an array whose elements are the values of the specified 'double' nodes, with the order of the elements preserved.
- nodesToArray(Collection<? extends IntNode>) - Static method in class uk.blankaspect.common.basictree.IntNode
-
Returns an array whose elements are the values of the specified 'int' nodes, with the order of the elements preserved.
- nodesToArray(Collection<? extends LongNode>) - Static method in class uk.blankaspect.common.basictree.LongNode
-
Returns an array whose elements are the values of the specified 'long' nodes, with the order of the elements preserved.
- nodesToArray(Collection<? extends StringNode>) - Static method in class uk.blankaspect.common.basictree.StringNode
-
Returns an array whose elements are the values of the specified string nodes, with the order of the elements preserved.
- nodesToList(Iterable<? extends BooleanNode>) - Static method in class uk.blankaspect.common.basictree.BooleanNode
-
Returns a list whose elements are the values of the specified Boolean nodes, with the order of the elements preserved.
- nodesToList(Iterable<? extends DoubleNode>) - Static method in class uk.blankaspect.common.basictree.DoubleNode
-
Returns a list whose elements are the values of the specified 'double' nodes, with the order of the elements preserved.
- nodesToList(Iterable<? extends IntNode>) - Static method in class uk.blankaspect.common.basictree.IntNode
-
Returns a list whose elements are the values of the specified 'int' nodes, with the order of the elements preserved.
- nodesToList(Iterable<? extends LongNode>) - Static method in class uk.blankaspect.common.basictree.LongNode
-
Returns a list whose elements are the values of the specified 'long' nodes, with the order of the elements preserved.
- nodesToList(Iterable<? extends StringNode>) - Static method in class uk.blankaspect.common.basictree.StringNode
-
Returns a list whose elements are the values of the specified string nodes, with the order of the elements preserved.
- nodeToPathString(AbstractNode) - Static method in class uk.blankaspect.common.basictree.NodeMessage
-
Returns a string representation of the path from the specified node from the root of the tree to which it belongs.
- NodeType - Class in uk.blankaspect.common.basictree
-
This class represents the type of a node.
- NodeType(NodeType, Class<? extends AbstractNode>) - Constructor for class uk.blankaspect.common.basictree.NodeType
-
Creates a new node type that has the specified parent and is associated with the specified class of node.
- NodeTypeException - Exception in uk.blankaspect.common.basictree
-
This class implements an unchecked exception that is associated with a node type.
- NodeTypeException(NodeType) - Constructor for exception uk.blankaspect.common.basictree.NodeTypeException
-
Creates a new instance of an exception that is associated with the specified node type.
- NORMAL - Enum constant in enum class uk.blankaspect.common.json.JsonGenerator.Mode
-
JSON text may be written on multiple lines with a space between some tokens.
- NullNode - Class in uk.blankaspect.common.basictree
-
This class implements a node that represents a null value.
- NullNode() - Constructor for class uk.blankaspect.common.basictree.NullNode
-
Creates a new instance of a null node that has no parent.
- NullNode(AbstractNode) - Constructor for class uk.blankaspect.common.basictree.NullNode
-
Creates a new instance of a null node that has the specified parent.
O
- OBJECT_END_CHAR - Static variable in interface uk.blankaspect.common.json.JsonConstants
-
The character that denotes the end of a JSON object.
- OBJECT_NAME_VALUE_SEPARATOR_CHAR - Static variable in interface uk.blankaspect.common.json.JsonConstants
-
The character that separates the name and value of a property of a JSON object.
- OBJECT_PROPERTY_SEPARATOR_CHAR - Static variable in interface uk.blankaspect.common.json.JsonConstants
-
The character that separates adjacent properties of a JSON object.
- OBJECT_START_CHAR - Static variable in interface uk.blankaspect.common.json.JsonConstants
-
The character that denotes the start of a JSON object.
P
- pair(String, boolean) - Static method in class uk.blankaspect.common.basictree.MapNode
-
Creates a Boolean node for the specified value, creates a key–value pair whose key is the specified key and whose value is the Boolean node, and returns the KV pair.
- pair(String, double) - Static method in class uk.blankaspect.common.basictree.MapNode
-
Creates a 'double' node for the specified value, creates a key–value pair whose key is the specified key and whose value is the 'double' node, and returns the KV pair.
- pair(String, int) - Static method in class uk.blankaspect.common.basictree.MapNode
-
Creates an 'int' node for the specified value, creates a key–value pair whose key is the specified key and whose value is the 'int' node, and returns the KV pair.
- pair(String, long) - Static method in class uk.blankaspect.common.basictree.MapNode
-
Creates a 'long' node for the specified value, creates a key–value pair whose key is the specified key and whose value is the 'long' node, and returns the KV pair.
- pair(String, String) - Static method in class uk.blankaspect.common.basictree.MapNode
-
Creates a string node for the specified value, creates a key–value pair whose key is the specified key and whose value is the string node, and returns the KV pair.
- Pair(String, AbstractNode) - Constructor for class uk.blankaspect.common.basictree.MapNode.Pair
-
Creates a new instance of a key–value pair of a map node.
- PAIR_SEPARATOR_CHAR - Static variable in class uk.blankaspect.common.basictree.MapNode
-
The character that separates adjacent KV pairs in the string representation of a map node.
- parse(InputStream) - Method in class uk.blankaspect.common.json.JsonParser
-
Parses the text that is composed of characters that are read from the specified byte stream using the UTF-8 character encoding.
- parse(InputStream, Charset) - Method in class uk.blankaspect.common.json.JsonParser
-
Parses the text that is composed of characters that are read from the specified byte stream using the specified character encoding.
- parse(Reader) - Method in class uk.blankaspect.common.json.JsonParser
-
Parses the text that is composed of characters that are read from the specified input stream.
- parse(CharSequence) - Method in class uk.blankaspect.common.json.JsonParser
-
Parses the specified text.
R
- readFile(Path) - Static method in class uk.blankaspect.common.json.JsonUtils
-
Opens a character stream on the specified file, which is expected to contain text with the UTF-8 character encoding, parses the character stream as JSON text and returns the resulting JSON value.
- remove(Iterable<String>) - Method in class uk.blankaspect.common.basictree.MapNode
-
Removes the key–value pairs with the specified keys from this map node.
- remove(String...) - Method in class uk.blankaspect.common.basictree.MapNode
-
Removes the key–value pairs with the specified keys from this map node.
- remove(Predicate<String>) - Method in class uk.blankaspect.common.basictree.MapNode
-
Removes from this map node the key–value pairs whose keys are accepted by the specified filter.
- remove(MapNode) - Method in class uk.blankaspect.common.basictree.MapNode.AutoIndexMap
-
Removes the entry for the specified map node from this map.
- resetGeneratedKeyIndex() - Static method in class uk.blankaspect.common.basictree.MapNode
-
Resets the index that is used by the default key-generator function.
- retain(String...) - Method in class uk.blankaspect.common.basictree.MapNode
-
Removes all key–value pairs from this map node except for those with the specified keys.
- retain(Collection<String>) - Method in class uk.blankaspect.common.basictree.MapNode
-
Removes all key–value pairs from this map node except for those with the specified keys.
- retain(Predicate<String>) - Method in class uk.blankaspect.common.basictree.MapNode
-
Removes all key–value pairs from this map node except for those whose keys are accepted by the specified filter.
S
- searchAscending(T, Predicate<T>) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Ascends a tree of
ITreeNode
s from the specified start node to the root node, applying the specified test to each node that is visited until a node is found that satisfies the test. - searchAscending(T, T, boolean, Predicate<T>) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Ascends a tree of
ITreeNode
s from the specified start node to the specified end node, applying the specified test to each node that is visited until a node is found that satisfies the test. - searchBreadthFirst(T, boolean, Predicate<T>) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Performs a breadth-first search of a tree of
ITreeNode
s, starting from the specified root node and applying the specified test to each node that is visited until a node is found that satisfies the test. - searchDepthFirst(T, boolean, boolean, Predicate<T>) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Performs a depth-first search of a tree of
ITreeNode
s, starting from the specified root node and applying the specified test to each node that is visited until a node is found that satisfies the test. - setElements(Iterable<? extends AbstractNode>) - Method in class uk.blankaspect.common.basictree.ListNode
-
Sets the elements of this list node to the specified nodes.
- setElements(AbstractNode...) - Method in class uk.blankaspect.common.basictree.ListNode
-
Sets the elements of this list node to the specified nodes.
- setGeneratedKeyPrefix(String) - Static method in class uk.blankaspect.common.basictree.MapNode
-
Sets the prefix of the keys that are generated by the default key-generator function to the specified value.
- setKeyConverter(Function<CharSequence, String>) - Static method in class uk.blankaspect.common.basictree.MapNode.Pair
-
Sets the function that converts the key of a key–value pair to its string representation for the
MapNode.Pair.toString()
method. - setKeyGenerator(Function<MapNode, String>) - Static method in class uk.blankaspect.common.basictree.MapNode
-
Sets the function that generates a key for a given map node to the specified value.
- setPairs(Map<String, AbstractNode>) - Method in class uk.blankaspect.common.basictree.MapNode
-
Sets the key–value pairs of this map node to the specified pairs of keys and values.
- setParent(AbstractNode) - Method in class uk.blankaspect.common.basictree.AbstractNode
-
Sets the parent of this node to the specified node.
- setStoreExcessiveIntegerAsFP(boolean) - Method in class uk.blankaspect.common.json.JsonParser
-
Sets or clears the flag that determines whether a JSON number that is deemed to be an integer but is too large to be stored as a signed 64-bit integer (ie, a
long
) will be stored as a double-precision floating-point number (ie, adouble
). - SIMPLE_NODE_TYPES - Static variable in interface uk.blankaspect.common.json.JsonConstants
-
The types of nodes that represent JSON values that are not containers.
- sort() - Method in class uk.blankaspect.common.basictree.MapNode
-
Sorts the key–value pairs of this map node into ascending order of their keys by applying the
String.compareTo(String)
method to the keys. - sort(Comparator<String>) - Method in class uk.blankaspect.common.basictree.MapNode
-
Sorts the key–value pairs of this map node by applying the specified comparator to their keys.
- START_CHAR - Static variable in class uk.blankaspect.common.basictree.ListNode
-
The character that denotes the start of the string representation of a list node.
- START_CHAR - Static variable in class uk.blankaspect.common.basictree.MapNode
-
The character that denotes the start of the string representation of a map node.
- START_CHAR - Static variable in class uk.blankaspect.common.basictree.StringNode
-
The character that denotes the start of the string representation of a string node.
- StringNode - Class in uk.blankaspect.common.basictree
-
This class implements a node that contains a string.
- StringNode(String) - Constructor for class uk.blankaspect.common.basictree.StringNode
-
Creates a new instance of a string node that has no parent and has the specified value.
- StringNode(AbstractNode, String) - Constructor for class uk.blankaspect.common.basictree.StringNode
-
Creates a new instance of a string node that has the specified parent and value.
- stringNodes() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns a list of the elements of this list node that are string nodes.
- stringStream() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns a stream of the elements of this list node that are string nodes.
T
- tempLocation(Path) - Static method in class uk.blankaspect.common.json.JsonUtils
-
Returns a temporary file-system location that has the same parent directory as the specified location.
- TEMPORARY_FILENAME_EXTENSION - Static variable in class uk.blankaspect.common.json.JsonUtils
-
The filename extension of a temporary file.
- testAscending(T, Predicate<T>) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Returns
true
if and only if the specifiedITreeNode
or one of its ancestors satisfies the specified test. - TEXT - Enum constant in enum class uk.blankaspect.common.basictree.NodeMessage.Component
-
The text of the message.
- toString() - Method in class uk.blankaspect.common.basictree.BooleanNode
-
Returns a string representation of this Boolean node.
- toString() - Method in class uk.blankaspect.common.basictree.DoubleNode
-
Returns a string representation of this 'double' node.
- toString() - Method in class uk.blankaspect.common.basictree.IntNode
-
Returns a string representation of this 'int' node.
- toString() - Method in class uk.blankaspect.common.basictree.ListNode
-
Returns a string representation of this list node.
- toString() - Method in class uk.blankaspect.common.basictree.LongNode
-
Returns a string representation of this 'long' node.
- toString() - Method in class uk.blankaspect.common.basictree.MapNode.Pair
-
Returns a string representation of this pair.
- toString() - Method in class uk.blankaspect.common.basictree.MapNode
-
Returns a string representation of this map node.
- toString() - Method in class uk.blankaspect.common.basictree.NodeMessage
- toString() - Method in class uk.blankaspect.common.basictree.NodeType
-
Returns a string representation of this node type, which is the name of the class of node with which this node type is associated.
- toString() - Method in class uk.blankaspect.common.basictree.NullNode
-
Returns a string representation of this null node.
- toString() - Method in class uk.blankaspect.common.basictree.StringNode
-
Returns a string representation of this string node.
- toString(String, Iterable<NodeMessage.Component>) - Method in class uk.blankaspect.common.basictree.NodeMessage
-
Returns a string representation of the specified components of this message.
- toString(String, NodeMessage.Component...) - Method in class uk.blankaspect.common.basictree.NodeMessage
-
Returns a string representation of the specified components of this message.
- treeToString(T, int, Function<T, String>) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Returns a string representation of the tree of
ITreeNode
s whose root is the specified node. - TreeUtils - Class in uk.blankaspect.common.tree
-
This class contains utility methods that relate to trees whose nodes implement the
ITreeNode
interface. - TYPE - Static variable in class uk.blankaspect.common.basictree.BooleanNode
-
The type of a Boolean node.
- TYPE - Static variable in class uk.blankaspect.common.basictree.DoubleNode
-
The type of a 'double' node.
- TYPE - Static variable in class uk.blankaspect.common.basictree.IntNode
-
The type of an 'int' node.
- TYPE - Static variable in class uk.blankaspect.common.basictree.ListNode
-
The type of a list node.
- TYPE - Static variable in class uk.blankaspect.common.basictree.LongNode
-
The type of a 'long' node.
- TYPE - Static variable in class uk.blankaspect.common.basictree.MapNode
-
The type of a map node.
- TYPE - Static variable in class uk.blankaspect.common.basictree.NullNode
-
The type of a null node.
- TYPE - Static variable in class uk.blankaspect.common.basictree.StringNode
-
The type of a string node.
U
- uk.blankaspect.common.basictree - package uk.blankaspect.common.basictree
-
This package contains an abstract base class and concrete subclasses that implement a node that represents a null value, nodes that contain instances of fundamental Java types (
boolean
,int
,long
,double
andString
), and nodes that contain other nodes (a list and a map). - uk.blankaspect.common.json - package uk.blankaspect.common.json
-
This package provides a parser and a generator for JavaScript Object Notation (JSON).
- uk.blankaspect.common.tree - package uk.blankaspect.common.tree
-
This package contains an interface that defines a node of a tree, and a class containing utility methods that relate to a tree of such nodes.
- UNDEFINED - Enum constant in enum class uk.blankaspect.common.basictree.NodeMessage.Kind
-
The kind of message is not defined.
- UNICODE_ESCAPE_CHAR - Static variable in class uk.blankaspect.common.basictree.StringNode
-
The character that denotes a Unicode escape sequence when it follows the escape prefix.
- unicodeEscape(char) - Static method in class uk.blankaspect.common.basictree.StringNode
-
Returns the Unicode escape sequence of the specified character.
V
- VALUE - Static variable in class uk.blankaspect.common.basictree.NullNode
-
The string representation of a null node.
- VALUE_FALSE - Static variable in class uk.blankaspect.common.basictree.BooleanNode
-
The string representation of a Boolean node whose value is false.
- VALUE_TRUE - Static variable in class uk.blankaspect.common.basictree.BooleanNode
-
The string representation of a Boolean node whose value is true.
- valueOf(String) - Static method in enum class uk.blankaspect.common.basictree.NodeMessage.Component
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class uk.blankaspect.common.basictree.NodeMessage.Kind
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class uk.blankaspect.common.json.JsonGenerator.Mode
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class uk.blankaspect.common.basictree.NodeMessage.Component
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class uk.blankaspect.common.basictree.NodeMessage.Kind
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class uk.blankaspect.common.json.JsonGenerator.Mode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- valuesToNodes(boolean...) - Static method in class uk.blankaspect.common.basictree.BooleanNode
-
Creates a list of Boolean nodes for the specified values, preserving the order of the elements, and returns the list, which may be used to construct a list node.
- valuesToNodes(double...) - Static method in class uk.blankaspect.common.basictree.DoubleNode
-
Creates a list of 'double' nodes for the specified values, preserving the order of the elements, and returns the list, which may be used to construct a list node.
- valuesToNodes(int...) - Static method in class uk.blankaspect.common.basictree.IntNode
-
Creates a list of 'int' nodes for the specified values, preserving the order of the elements, and returns the list, which may be used to construct a list node.
- valuesToNodes(long...) - Static method in class uk.blankaspect.common.basictree.LongNode
-
Creates a list of 'long' nodes for the specified values, preserving the order of the elements, and returns the list, which may be used to construct a list node.
- valuesToNodes(Iterable<Boolean>) - Static method in class uk.blankaspect.common.basictree.BooleanNode
-
Creates a list of Boolean nodes for the specified values, preserving the order of the elements, and returns the list, which may be used to construct a list node.
- valuesToNodes(Iterable<Double>) - Static method in class uk.blankaspect.common.basictree.DoubleNode
-
Creates a list of 'double' nodes for the specified values, preserving the order of the elements, and returns the list, which may be used to construct a list node.
- valuesToNodes(Iterable<Integer>) - Static method in class uk.blankaspect.common.basictree.IntNode
-
Creates a list of 'int' nodes for the specified values, preserving the order of the elements, and returns the list, which may be used to construct a list node.
- valuesToNodes(Iterable<Long>) - Static method in class uk.blankaspect.common.basictree.LongNode
-
Creates a list of 'long' nodes for the specified values, preserving the order of the elements, and returns the list, which may be used to construct a list node.
- valuesToNodes(Iterable<String>) - Static method in class uk.blankaspect.common.basictree.StringNode
-
Creates a list of string nodes for the specified values, preserving the order of the elements, and returns the list, which may be used to construct a list node.
- valuesToNodes(String...) - Static method in class uk.blankaspect.common.basictree.StringNode
-
Creates a list of string nodes for the specified values, preserving the order of the elements, and returns the list, which may be used to construct a list node.
- visitAscending(T, Function<T, Boolean>) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Ascends a tree of
ITreeNode
s from the specified node to the root node, applying the specified action to each node that is visited, including the root. - visitAscending(T, T, boolean, Function<T, Boolean>) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Ascends a tree of
ITreeNode
s from the specified node to the specified end node, applying the specified action to each node that is visited. - visitBreadthFirst(T, boolean, Function<T, Boolean>) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Performs a breadth-first traversal of a tree of
ITreeNode
s, starting from the specified root node and applying the specified action to each node that is visited. - visitDepthFirst(T, boolean, boolean, Function<T, Boolean>) - Static method in class uk.blankaspect.common.tree.TreeUtils
-
Performs a depth-first traversal of a tree of
ITreeNode
s, starting from the specified root node and applying the specified action to each node that is visited.
W
- WARNING - Enum constant in enum class uk.blankaspect.common.basictree.NodeMessage.Kind
-
A warning message.
- writeFile(Path, AbstractNode) - Static method in class uk.blankaspect.common.json.JsonUtils
-
Writes the specified JSON value to the specified file as JSON text.
- writeFile(Path, AbstractNode, JsonGenerator) - Static method in class uk.blankaspect.common.json.JsonUtils
-
Writes the specified JSON value to the specified file as JSON text that is generated by the specified instance of
JsonGenerator
. - writeText(Path, String) - Static method in class uk.blankaspect.common.json.JsonUtils
-
Writes the specified text to the specified file with the UTF-8 character encoding.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form