public abstract class AbstractValueRef extends java.lang.Object implements ValueRef
Modifier and Type | Field and Description |
---|---|
protected static int |
NUMBER_TYPE_MASK |
protected static int |
RAW_TYPE_MASK |
Constructor and Description |
---|
AbstractValueRef() |
Modifier and Type | Method and Description |
---|---|
protected <E extends Value> |
as(java.lang.Class<E> valueClass,
int bitMask) |
protected <E extends Value> |
as(java.lang.Class<E> valueClass,
ValueType vt) |
ArrayValue |
asArrayValue() |
BinaryValue |
asBinary() |
BooleanValue |
asBoolean() |
ExtendedValue |
asExtended() |
FloatValue |
asFloat() |
IntegerValue |
asInteger() |
MapValue |
asMapValue() |
NilValue |
asNil() |
NumberValue |
asNumber() |
RawValue |
asRaw() |
StringValue |
asString() |
ArrayCursor |
getArrayCursor() |
MapCursor |
getMapCursor() |
boolean |
isArray() |
boolean |
isBinary() |
boolean |
isBoolean() |
boolean |
isExtended() |
boolean |
isFloat() |
boolean |
isInteger() |
boolean |
isMap() |
boolean |
isNil() |
boolean |
isNumber() |
boolean |
isRaw() |
boolean |
isRef()
Test whether this value is a reference of not.
|
boolean |
isString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, getValueType, toValue, writeTo
protected static int NUMBER_TYPE_MASK
protected static int RAW_TYPE_MASK
public boolean isRef()
ValueRef
protected <E extends Value> E as(java.lang.Class<E> valueClass, int bitMask)
public NilValue asNil() throws MessageTypeException
asNil
in interface ValueRef
MessageTypeException
public BooleanValue asBoolean() throws MessageTypeException
asBoolean
in interface ValueRef
MessageTypeException
public NumberValue asNumber() throws MessageTypeException
asNumber
in interface ValueRef
MessageTypeException
public IntegerValue asInteger() throws MessageTypeException
asInteger
in interface ValueRef
MessageTypeException
public FloatValue asFloat() throws MessageTypeException
asFloat
in interface ValueRef
MessageTypeException
public BinaryValue asBinary() throws MessageTypeException
asBinary
in interface ValueRef
MessageTypeException
public StringValue asString() throws MessageTypeException
asString
in interface ValueRef
MessageTypeException
public RawValue asRaw() throws MessageTypeException
asRaw
in interface ValueRef
MessageTypeException
public ArrayValue asArrayValue() throws MessageTypeException
MessageTypeException
public MapValue asMapValue() throws MessageTypeException
MessageTypeException
public ExtendedValue asExtended() throws MessageTypeException
asExtended
in interface ValueRef
MessageTypeException
public ArrayCursor getArrayCursor() throws MessageTypeException
getArrayCursor
in interface ValueRef
MessageTypeException
public MapCursor getMapCursor() throws MessageTypeException
getMapCursor
in interface ValueRef
MessageTypeException
public boolean isExtended()
isExtended
in interface ValueRef