public class arrayobj extends contentbase
Represents an array instance, including the values the comprise the array.
Note that in arrays of primitives, the classdesc will be named "[x", where x is the field type code representing the primitive type. See jdeserialize.resolveJavaType() for an example of analysis/generation of human-readable names from these class names.
Modifier and Type | Field and Description |
---|---|
classdesc |
classdesc
Type of the array instance.
|
arraycoll |
data
Values of the array, in the order they were read from the stream.
|
handle, isExceptionObject, type
Constructor and Description |
---|
arrayobj(int handle,
classdesc cd,
arraycoll data) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toJson(java.lang.String indentation,
java.util.Map<classdesc,java.util.Map<field,java.lang.Object>> fielddata,
boolean child)
Analogy for toString method; however, outputs its string in json formatting.
|
java.lang.String |
toString() |
getHandle, getType, isExceptionObject, setIsExceptionObject, validate
public classdesc classdesc
public arraycoll data
public java.lang.String toJson(java.lang.String indentation, java.util.Map<classdesc,java.util.Map<field,java.lang.Object>> fielddata, boolean child)
content
Analogy for toString method; however, outputs its string in json formatting. Returns the exact json representation of object with indentation.
Inherited by multiple classes via contentbase, often calls itself for another object
toJson
in interface content
toJson
in class contentbase
indentation
- starting indentation for json outputfielddata
- used when calling this method for inner instances
so the instance has info about its variables.
Instance info is saved in another content space than
info about its field variables, so it must be provided by parameter
to inner instanceschild
- tells that the instance is child of another because of indentationpublic java.lang.String toString()
toString
in class java.lang.Object