anvil.core.arrays
Class AnyArray

java.lang.Object
  |
  +--anvil.core.Any
        |
        +--anvil.core.AnySequence
              |
              +--anvil.core.arrays.AnyArray
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable
Direct Known Subclasses:
AnyBooleanArray, AnyCharArray, AnyDoubleArray, AnyFloatArray, AnyIntArray, AnyLongArray, AnyObjectArray, AnyShortArray, AnyStringArray

public abstract class AnyArray
extends AnySequence

class AnyArray


Field Summary
 
Fields inherited from class anvil.core.AnySequence
_class, p_append, p_concat, p_count, p_crop, p_cut, p_endsWith, p_fill, p_first, p_get, p_grep, p_indexOf, p_insert, p_join, p_last, p_lastIndexOf, p_pop, p_push, p_repeat, p_resize, p_reverse, p_search, p_set, p_slice, p_sort, p_startsWith, p_swap, p_unshift
 
Fields inherited from class anvil.core.Any
ARRAY0, DOUBLE_MINUS_ONE, DOUBLE_ONE, DOUBLE_ZERO, EMPTY_STRING, EMPTY_TUPLE, FALSE, INF, IS_ARRAY, IS_BINARY, IS_BOOLEAN, IS_BUFFER, IS_CLASS, IS_DOUBLE, IS_ENUMERATION, IS_INF, IS_INT, IS_LIST, IS_MAP, IS_NEG_INF, IS_NULL, IS_PATTERN, IS_RANGE, IS_STRING, IS_TUPLE, IS_UNDEFINED, MINUS_ONE, NAN, NEG_INF, NULL, ONE, p_compareTo, p_each, p_equals, p_pipe, p_select, THREE, TRUE, TWO, UNDEFINED, ZERO
 
Constructor Summary
AnyArray()
           
 
Method Summary
 ClassType classOf()
          Returns the type of this Any.
 java.lang.Object clone()
          Returns shallow copy from this any.
abstract  Any copy()
          Returns deep copy from this any.
 boolean isCompatible(Any element)
           
 java.io.Writer toAnvil(java.io.Writer writer)
           
 java.lang.String toString()
          Converts contained value into String.
 int typeOf()
          Returns the type of contained value.
static Any unserialize(Unserializer unserializer)
           
 
Methods inherited from class anvil.core.AnySequence
add, append, append, clear, compare, compareAt, compareAt, compareTo, contains, createEmptySequence, createSequence, crop, deleteReference, deleteSlice, equals, equalsTo, fill, getAttribute, getElement, getReference, getReference, getSize, getSlice, indexOf, isMutable, isSequence, iterator, lastIndexOf, m_append, m_clear, m_concat, m_count, m_crop, m_cut, m_endsWith, m_fill, m_first, m_get, m_grep, m_indexOf, m_insert, m_join, m_last, m_lastIndexOf, m_length, m_minmax, m_pop, m_push, m_repeat, m_resize, m_reverse, m_search, m_set, m_shift, m_slice, m_sort, m_startsWith, m_swap, m_unshift, resize, reverse, search, setElement, setReference, setReference, setSlice, setSlice, sizeOf, sort, swap, toBoolean
 
Methods inherited from class anvil.core.Any
_clone, _copy, _invoke, _invoke, _invoke, _invoke, _invoke, _invoke, _serialize, _unserialize, _wakeup, classNameOf, coerce, compareTo, concat, create, create, create, create, create, create, create, create, create, create, create, create, create, create, decrease, deleteAttribute, divide, execute, execute, execute, execute, execute, execute, getRef, has, increase, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, isArray, isBinary, isBoolean, isBuffer, isDefined, isDouble, isInstanceOf, isInt, isIterator, isList, isMap, isNull, isPattern, isRange, isRef, isString, isTuple, isUndefined, m_clone, m_compareTo, m_copy, m_each, m_equals, m_hashCode, m_pipe, m_select, m_toBoolean, m_toString, minus, modulo, multiply, not, plus, serialize, setAttribute, setRef, subtract, toAnvil, toAnyBoolean, toAnyDouble, toAnyInt, toAnyString, toArray, toBinary, toBuffer, toByte, toChar, toCode, toDouble, toInt, toList, toLong, toMap, toObject, toPattern, toRange, toTuple, type
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnyArray

public AnyArray()
Method Detail

classOf

public ClassType classOf()
Description copied from class: Any
Returns the type of this Any.

Overrides:
classOf in class AnySequence

typeOf

public int typeOf()
Description copied from class: Any
Returns the type of contained value.

Overrides:
typeOf in class Any
Returns:
Type of this any as int.

isCompatible

public boolean isCompatible(Any element)
Specified by:
isCompatible in class AnySequence

toString

public java.lang.String toString()
Description copied from class: Any
Converts contained value into String.

Overrides:
toString in class Any
Returns:
Value as String.

toAnvil

public java.io.Writer toAnvil(java.io.Writer writer)
                       throws java.io.IOException
Overrides:
toAnvil in class Any
java.io.IOException

unserialize

public static final Any unserialize(Unserializer unserializer)
                             throws UnserializationException
UnserializationException

copy

public abstract Any copy()
Description copied from class: Any
Returns deep copy from this any.

Overrides:
copy in class Any

clone

public java.lang.Object clone()
Description copied from class: Any
Returns shallow copy from this any.

Overrides:
clone in class Any
Returns:
Shallow copy