public abstract class AbstractNutsElement extends Object implements net.thevpc.nuts.NutsElement
| Modifier and Type | Field and Description |
|---|---|
protected net.thevpc.nuts.NutsSession |
session |
| Constructor and Description |
|---|
AbstractNutsElement(net.thevpc.nuts.NutsElementType type,
net.thevpc.nuts.NutsSession session) |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.nuts.NutsArrayElement |
asArray() |
boolean |
asBoolean() |
byte |
asByte() |
net.thevpc.nuts.NutsCustomElement |
asCustom() |
double |
asDouble() |
float |
asFloat() |
Instant |
asInstant() |
int |
asInt() |
long |
asLong() |
net.thevpc.nuts.NutsObjectElement |
asObject() |
net.thevpc.nuts.NutsPrimitiveElement |
asPrimitive() |
net.thevpc.nuts.NutsArrayElement |
asSafeArray() |
net.thevpc.nuts.NutsArrayElement |
asSafeArray(boolean embed) |
Byte |
asSafeByte(Byte defaultValue) |
Double |
asSafeDouble(Double defaultValue) |
Float |
asSafeFloat(Float defaultValue) |
Instant |
asSafeInstant(Instant defaultValue) |
Integer |
asSafeInt(Integer defaultValue) |
Long |
asSafeLong(Long defaultValue) |
net.thevpc.nuts.NutsObjectElement |
asSafeObject() |
net.thevpc.nuts.NutsObjectElement |
asSafeObject(boolean embed) |
Short |
asSafeShort(Short defaultValue) |
String |
asSafeString(String defaultValue) |
short |
asShort() |
String |
asString() |
net.thevpc.nuts.NutsElement |
describe(net.thevpc.nuts.NutsElements elems) |
boolean |
isArray() |
boolean |
isByte() |
boolean |
isCustom() |
boolean |
isDouble() |
boolean |
isFloat() |
boolean |
isInstant() |
boolean |
isInt() |
boolean |
isLong() |
boolean |
isNull() |
boolean |
isNumber() |
boolean |
isObject() |
boolean |
isPrimitive() |
boolean |
isShort() |
boolean |
isString() |
net.thevpc.nuts.NutsElementType |
type() |
public AbstractNutsElement(net.thevpc.nuts.NutsElementType type,
net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsElementType type()
type in interface net.thevpc.nuts.NutsElementpublic net.thevpc.nuts.NutsPrimitiveElement asPrimitive()
asPrimitive in interface net.thevpc.nuts.NutsElementpublic net.thevpc.nuts.NutsObjectElement asObject()
asObject in interface net.thevpc.nuts.NutsElementpublic net.thevpc.nuts.NutsCustomElement asCustom()
asCustom in interface net.thevpc.nuts.NutsElementpublic boolean isCustom()
isCustom in interface net.thevpc.nuts.NutsElementpublic net.thevpc.nuts.NutsObjectElement asSafeObject()
asSafeObject in interface net.thevpc.nuts.NutsElementpublic net.thevpc.nuts.NutsArrayElement asSafeArray()
asSafeArray in interface net.thevpc.nuts.NutsElementpublic net.thevpc.nuts.NutsArrayElement asArray()
asArray in interface net.thevpc.nuts.NutsElementpublic net.thevpc.nuts.NutsObjectElement asSafeObject(boolean embed)
asSafeObject in interface net.thevpc.nuts.NutsElementpublic net.thevpc.nuts.NutsArrayElement asSafeArray(boolean embed)
asSafeArray in interface net.thevpc.nuts.NutsElementpublic boolean isPrimitive()
isPrimitive in interface net.thevpc.nuts.NutsElementpublic boolean isNumber()
isNumber in interface net.thevpc.nuts.NutsElementpublic boolean isNull()
isNull in interface net.thevpc.nuts.NutsElementpublic boolean isString()
isString in interface net.thevpc.nuts.NutsElementpublic boolean isByte()
isByte in interface net.thevpc.nuts.NutsElementpublic boolean isInt()
isInt in interface net.thevpc.nuts.NutsElementpublic boolean isLong()
isLong in interface net.thevpc.nuts.NutsElementpublic boolean isShort()
isShort in interface net.thevpc.nuts.NutsElementpublic boolean isFloat()
isFloat in interface net.thevpc.nuts.NutsElementpublic boolean isDouble()
isDouble in interface net.thevpc.nuts.NutsElementpublic boolean isObject()
isObject in interface net.thevpc.nuts.NutsElementpublic boolean isArray()
isArray in interface net.thevpc.nuts.NutsElementpublic boolean isInstant()
isInstant in interface net.thevpc.nuts.NutsElementpublic String asString()
asString in interface net.thevpc.nuts.NutsElementpublic boolean asBoolean()
asBoolean in interface net.thevpc.nuts.NutsElementpublic byte asByte()
asByte in interface net.thevpc.nuts.NutsElementpublic double asDouble()
asDouble in interface net.thevpc.nuts.NutsElementpublic float asFloat()
asFloat in interface net.thevpc.nuts.NutsElementpublic Instant asInstant()
asInstant in interface net.thevpc.nuts.NutsElementpublic Integer asSafeInt(Integer defaultValue)
asSafeInt in interface net.thevpc.nuts.NutsElementpublic Instant asSafeInstant(Instant defaultValue)
asSafeInstant in interface net.thevpc.nuts.NutsElementpublic Long asSafeLong(Long defaultValue)
asSafeLong in interface net.thevpc.nuts.NutsElementpublic Short asSafeShort(Short defaultValue)
asSafeShort in interface net.thevpc.nuts.NutsElementpublic Byte asSafeByte(Byte defaultValue)
asSafeByte in interface net.thevpc.nuts.NutsElementpublic Double asSafeDouble(Double defaultValue)
asSafeDouble in interface net.thevpc.nuts.NutsElementpublic Float asSafeFloat(Float defaultValue)
asSafeFloat in interface net.thevpc.nuts.NutsElementpublic String asSafeString(String defaultValue)
asSafeString in interface net.thevpc.nuts.NutsElementpublic int asInt()
asInt in interface net.thevpc.nuts.NutsElementpublic long asLong()
asLong in interface net.thevpc.nuts.NutsElementpublic short asShort()
asShort in interface net.thevpc.nuts.NutsElementpublic net.thevpc.nuts.NutsElement describe(net.thevpc.nuts.NutsElements elems)
describe in interface net.thevpc.nuts.NutsDescribableCopyright © 2022 vpc open source initiative. All rights reserved.