public abstract class AbstractNutsElement extends Object implements NutsElement
| Modifier and Type | Field and Description |
|---|---|
protected NutsSession |
session |
| Constructor and Description |
|---|
AbstractNutsElement(NutsElementType type,
NutsSession session) |
| Modifier and Type | Method and Description |
|---|---|
NutsArrayElement |
asArray() |
boolean |
asBoolean() |
byte |
asByte() |
double |
asDouble() |
float |
asFloat() |
Instant |
asInstant() |
int |
asInt() |
long |
asLong() |
NutsObjectElement |
asObject() |
NutsPrimitiveElement |
asPrimitive() |
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) |
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() |
NutsElementType |
type() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisEmptyprotected transient NutsSession session
public AbstractNutsElement(NutsElementType type, NutsSession session)
public NutsElementType type()
type in interface NutsElementpublic NutsPrimitiveElement asPrimitive()
asPrimitive in interface NutsElementpublic NutsObjectElement asObject()
asObject in interface NutsElementpublic NutsArrayElement asArray()
asArray in interface NutsElementpublic NutsObjectElement asSafeObject()
asSafeObject in interface NutsElementpublic NutsArrayElement asSafeArray()
asSafeArray in interface NutsElementpublic boolean isPrimitive()
isPrimitive in interface NutsElementpublic boolean isNumber()
isNumber in interface NutsElementpublic boolean isNull()
isNull in interface NutsElementpublic boolean isString()
isString in interface NutsElementpublic boolean isByte()
isByte in interface NutsElementpublic boolean isInt()
isInt in interface NutsElementpublic boolean isLong()
isLong in interface NutsElementpublic boolean isShort()
isShort in interface NutsElementpublic boolean isFloat()
isFloat in interface NutsElementpublic boolean isDouble()
isDouble in interface NutsElementpublic boolean isObject()
isObject in interface NutsElementpublic boolean isArray()
isArray in interface NutsElementpublic boolean isInstant()
isInstant in interface NutsElementpublic String asString()
asString in interface NutsElementpublic boolean asBoolean()
asBoolean in interface NutsElementpublic byte asByte()
asByte in interface NutsElementpublic double asDouble()
asDouble in interface NutsElementpublic float asFloat()
asFloat in interface NutsElementpublic Instant asInstant()
asInstant in interface NutsElementpublic Integer asSafeInt()
asSafeInt in interface NutsElementpublic int asSafeInt(int def)
asSafeInt in interface NutsElementpublic Long asSafeLong()
asSafeLong in interface NutsElementpublic long asSafeLong(long def)
asSafeLong in interface NutsElementpublic Double asSafeDouble()
asSafeDouble in interface NutsElementpublic short asSafeShort(short def)
asSafeShort in interface NutsElementpublic Short asSafeShort()
asSafeShort in interface NutsElementpublic byte asSafeByte(byte def)
asSafeByte in interface NutsElementpublic Byte asSafeByte()
asSafeByte in interface NutsElementpublic double asSafeDouble(double def)
asSafeDouble in interface NutsElementpublic Float asSafeFloat()
asSafeFloat in interface NutsElementpublic float asSafeFloat(float def)
asSafeFloat in interface NutsElementpublic String asSafeString(String def)
asSafeString in interface NutsElementpublic String asSafeString()
asSafeString in interface NutsElementpublic int asInt()
asInt in interface NutsElementpublic long asLong()
asLong in interface NutsElementpublic short asShort()
asShort in interface NutsElementCopyright © 2021 vpc open source initiative. All rights reserved.