private class Variable.ExtensionValueAccessor extends Variable.AbstractValueAccessor implements ExtensionValue
| Modifier | Constructor and Description |
|---|---|
private |
ExtensionValueAccessor() |
| Modifier and Type | Method and Description |
|---|---|
ExtensionValue |
asExtensionValue()
Returns the value as
ExtensionValue. |
byte[] |
getData() |
byte |
getType() |
ValueType |
getValueType()
Returns type of this value.
|
ImmutableExtensionValue |
immutableValue()
Returns immutable copy of this value.
|
void |
writeTo(MessagePacker pk)
Serializes the value using the specified
MessagePacker |
asArrayValue, asBinaryValue, asBooleanValue, asFloatValue, asIntegerValue, asMapValue, asNilValue, asNumberValue, asRawValue, asStringValue, asTimestampValue, equals, hashCode, isArrayValue, isBinaryValue, isBooleanValue, isExtensionValue, isFloatValue, isIntegerValue, isMapValue, isNilValue, isNumberValue, isRawValue, isStringValue, isTimestampValue, toJson, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitasArrayValue, asBinaryValue, asBooleanValue, asFloatValue, asIntegerValue, asMapValue, asNilValue, asNumberValue, asRawValue, asStringValue, asTimestampValue, equals, isArrayValue, isBinaryValue, isBooleanValue, isExtensionValue, isFloatValue, isIntegerValue, isMapValue, isNilValue, isNumberValue, isRawValue, isStringValue, isTimestampValue, toJsonpublic ValueType getValueType()
Valueinstanceof to check type of a value because type of a mutable value is variable.getValueType in interface Valuepublic ExtensionValue asExtensionValue()
ValueExtensionValue. Otherwise throws MessageTypeCastException.
Note that you can't use instanceof or cast ((ExtensionValue) thisValue) to check type of a value
because type of a mutable value is variable.asExtensionValue in interface ValueasExtensionValue in class Variable.AbstractValueAccessorpublic ImmutableExtensionValue immutableValue()
Valuethis without copying the value if this value is already immutable.immutableValue in interface Valuepublic byte getType()
getType in interface ExtensionValuepublic byte[] getData()
getData in interface ExtensionValuepublic void writeTo(MessagePacker pk) throws java.io.IOException
ValueMessagePackerwriteTo in interface Valuejava.io.IOExceptionMessagePacker