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() |
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() |
Byte |
asSafeByte() |
byte |
asSafeByte(byte def) |
Double |
asSafeDouble() |
double |
asSafeDouble(double def) |
Float |
asSafeFloat() |
float |
asSafeFloat(float def) |
Integer |
asSafeInt() |
int |
asSafeInt(int def) |
Long |
asSafeLong() |
long |
asSafeLong(long def) |
net.thevpc.nuts.NutsObjectElement |
asSafeObject() |
Short |
asSafeShort() |
short |
asSafeShort(short def) |
String |
asSafeString() |
String |
asSafeString(String def) |
short |
asShort() |
String |
asString() |
boolean |
isArray() |
boolean |
isByte() |
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.NutsArrayElement asArray()
asArray 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 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()
asSafeInt in interface net.thevpc.nuts.NutsElementpublic int asSafeInt(int def)
asSafeInt in interface net.thevpc.nuts.NutsElementpublic Long asSafeLong()
asSafeLong in interface net.thevpc.nuts.NutsElementpublic long asSafeLong(long def)
asSafeLong in interface net.thevpc.nuts.NutsElementpublic Double asSafeDouble()
asSafeDouble in interface net.thevpc.nuts.NutsElementpublic short asSafeShort(short def)
asSafeShort in interface net.thevpc.nuts.NutsElementpublic Short asSafeShort()
asSafeShort in interface net.thevpc.nuts.NutsElementpublic byte asSafeByte(byte def)
asSafeByte in interface net.thevpc.nuts.NutsElementpublic Byte asSafeByte()
asSafeByte in interface net.thevpc.nuts.NutsElementpublic double asSafeDouble(double def)
asSafeDouble in interface net.thevpc.nuts.NutsElementpublic Float asSafeFloat()
asSafeFloat in interface net.thevpc.nuts.NutsElementpublic float asSafeFloat(float def)
asSafeFloat in interface net.thevpc.nuts.NutsElementpublic String asSafeString(String def)
asSafeString in interface net.thevpc.nuts.NutsElementpublic String asSafeString()
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.NutsElementCopyright © 2021 vpc open source initiative. All rights reserved.