- Type Parameters:
- T- type of the value
- All Known Subinterfaces:
- Hson.Array,- Hson.Struct
- Enclosing class:
- Hson
A HSON value (may of types of 
Hson.Type).- 
Method SummaryModifier and TypeMethodDescriptiondefault Hson.ArrayasArray()Get this parsed value as an array.default Hson.StructasStruct()Get this parsed value as a struct.type()Type of this value.value()Value.voidwrite(PrintWriter writer) Write the HSON value.default voidwrite(PrintWriter writer, boolean formatted) Writes the HSON in a formatted output, if enabled.
- 
Method Details- 
writeWrite the HSON value.- Parameters:
- writer- writer to write to
 
- 
writeWrites the HSON in a formatted output, if enabled.- Parameters:
- writer- writer to write to
- formatted- whether the output should be formatted
 
- 
valueT value()Value.- Returns:
- the value
 
- 
typeHson.Type type()Type of this value.- Returns:
- type of this value
 
- 
asArrayGet this parsed value as an array.- Returns:
- this value as an array
- Throws:
- HsonException- in case this value is not of type- Hson.Type.ARRAY
 
- 
asStructGet this parsed value as a struct.- Returns:
- this value as a struct
- Throws:
- HsonException- in case this value is not of type- Hson.Type.STRUCT
 
 
-