public class ArrayValueImpl extends AbstractValue implements ArrayValue
NUMBER_TYPE_MASK, RAW_TYPE_MASK
Constructor and Description |
---|
ArrayValueImpl(Value[] array) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ValueVisitor visitor) |
Value |
apply(int index) |
static ArrayValue |
empty() |
boolean |
equals(java.lang.Object o) |
Value |
get(int index) |
ArrayCursor |
getArrayCursor() |
ValueType |
getValueType() |
int |
hashCode() |
boolean |
hasNext() |
java.util.Iterator<ValueRef> |
iterator() |
ValueRef |
next() |
int |
size() |
void |
skip() |
void |
skipAll()
Skips all of the remaining values
|
java.lang.String |
toString() |
ArrayValue |
toValue()
Create an immutable value from this reference
|
Value[] |
toValueArray() |
void |
writeTo(MessagePacker pk) |
isRef
as, as, asArrayValue, asBinary, asBoolean, asExtended, asFloat, asInteger, asMapValue, asNil, asNumber, asRaw, asString, getMapCursor, isArray, isBinary, isBoolean, isExtended, isFloat, isInteger, isMap, isNil, isNumber, isRaw, isString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asArrayValue, asMapValue
public ArrayValueImpl(Value[] array)
public static ArrayValue empty()
public Value get(int index)
get
in interface ArrayValue
public Value apply(int index)
apply
in interface ArrayValue
public ValueType getValueType()
getValueType
in interface ValueRef
public ArrayCursor getArrayCursor() throws MessageTypeException
getArrayCursor
in interface ValueRef
getArrayCursor
in class AbstractValueRef
MessageTypeException
public void writeTo(MessagePacker pk) throws java.io.IOException
public void accept(ValueVisitor visitor)
public ArrayValue toValue()
ValueRef
toValue
in interface ArrayCursor
toValue
in interface ArrayValue
toValue
in interface ValueRef
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int size()
size
in interface ArrayCursor
public boolean hasNext()
hasNext
in interface ArrayCursor
public ValueRef next()
next
in interface ArrayCursor
public void skip()
skip
in interface ArrayCursor
public void skipAll()
ArrayCursor
skipAll
in interface ArrayCursor
public Value[] toValueArray()
toValueArray
in interface ArrayValue
public java.util.Iterator<ValueRef> iterator()
iterator
in interface java.lang.Iterable<ValueRef>
iterator
in interface ArrayCursor