-
Method Summary
default <T> T
Return the element as a value or wrapped object/array.
Return the element as a JsonArray.
Return the element as it is stored (unwrapped) in the underlying structure (so either a value or an unwrapped object/array).
Return the element as a JsonObject.
default <T> T
Set a given key to the given value.
Set a given key to the given array.
void
Set a given key to the given element.
Set a given key to the given object.
Set a given key to the given element.
getBoolean, getBoolean, getDouble, getDouble, getInstant, getInstant, getInteger, getInteger, getLong, getLong, getScalar, getString, getString, has, isArray, isObject, isScalar, isTrue, keys, size
-
Method Details
-
-
getNativeElement
Return the element as it is stored (unwrapped) in the underlying structure (so either a value or an unwrapped object/array).
-
get
Return the element as a value or wrapped object/array.
- Specified by:
get
in interface ReadOnlyAstObject
-
-
getArray
Return the element as a JsonArray. If the type is not an array, this can result in runtime errors.
- Specified by:
getArray
in interface ReadOnlyAstObject
-
-
setNativeElement
Set a given key to the given element. Fluent API (return this).
-
set
Set a given key to the given value.
- Specified by:
set
in interface AstObject
-
-
-
setScalar
Set a given key to the given element.
- Specified by:
setScalar
in interface AstObject