Package org.loxlylabs.nestedtext
Class NestedText.Reader
java.lang.Object
org.loxlylabs.nestedtext.NestedText.Reader
- Enclosing class:
NestedText
An intermediate object used to specify the target type for the parsed NestedText data.
-
Method Summary
Modifier and TypeMethodDescription<T> TCompletes the deserialization by converting the parsed data into the specified type.<T> Tas(TypeReference<T> typeRef) Completes the deserialization by converting the parsed data into the specified generic type.asObject()Returns the raw, untyped result of the parsing operation (a Map, List, or String).
-
Method Details
-
as
Completes the deserialization by converting the parsed data into the specified type.- Type Parameters:
T- The target type.- Parameters:
targetClass- The class to convert to.- Returns:
- An instance of the target type.
-
as
Completes the deserialization by converting the parsed data into the specified generic type.- Type Parameters:
T- The target type.- Parameters:
typeRef- ATypeReferencecapturing the generic type.- Returns:
- An instance of the target type.
-
asObject
Returns the raw, untyped result of the parsing operation (a Map, List, or String).Note: This method returns the direct output of the parser and does NOT apply any type-specific mapping rules (e.g., field renaming or ignoring).
- Returns:
- The untyped object.
-