|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--anvil.core.Any
|
+--anvil.core.AnySequence
|
+--anvil.core.AnyBinary
class AnyBinary
| Field Summary | |
protected byte[] |
_array
|
static NativeClass |
_class
|
protected int |
_size
|
static java.lang.Object[] |
newInstance
|
static java.lang.Object[] |
p_toInt
|
| Fields inherited from class anvil.core.AnySequence |
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 | |
AnyBinary()
|
|
AnyBinary(byte[] array)
|
|
AnyBinary(byte[] array,
int size)
|
|
| Method Summary | |
AnySequence |
append(Any element)
|
AnySequence |
append(AnySequence sequence)
|
ClassType |
classOf()
Returns the type of this Any. |
AnySequence |
clear()
|
java.lang.Object |
clone()
Returns shallow copy from this any. |
protected int |
compare(Any other)
|
int |
compareAt(Any element,
int start)
|
int |
compareAt(AnySequence sequence,
int start,
int length)
|
Any |
copy()
Returns deep copy from this any. |
AnySequence |
createEmptySequence()
|
AnySequence |
createSequence(Any element)
|
AnySequence |
crop(int start,
int length)
|
AnySequence |
deleteSlice(int start,
int length)
|
void |
ensureCapacity(int size)
|
boolean |
equals(java.lang.Object obj)
Tests for equality. |
AnySequence |
fill(Any fill,
int start,
int length)
|
Any |
getElement(int index)
|
int |
getSize()
|
AnySequence |
getSlice(int start,
int length)
|
int |
hashCode()
|
boolean |
isBinary()
Checks if this any is binary. |
boolean |
isCompatible(Any element)
|
Any |
m_toHex()
|
Any |
m_toInt(Context context,
int width,
Any offset)
|
Any |
m_unserialize(Context context)
|
static Any |
newInstance(Any data,
Any[] rest)
|
AnySequence |
resize(int size)
|
int |
search(Any element,
java.util.Comparator comparator)
|
void |
serialize(Serializer serializer)
|
AnySequence |
setElement(int index,
Any element)
|
AnySequence |
setSlice(int start,
int length,
Any element)
|
AnySequence |
setSlice(int start,
int length,
AnySequence sequence)
|
AnySequence |
sort(int start,
int length,
java.util.Comparator comparator)
|
AnySequence |
swap(int index1,
int index2)
|
java.io.Writer |
toAnvil(java.io.Writer writer)
|
byte[] |
toBinary()
Gets the contained value as byte[]. |
byte[] |
toByteArray()
|
Code |
toCode(Code code)
|
java.lang.Object |
toObject()
Gets the contained value as java.lang.Object. |
java.lang.String |
toString()
Converts contained value into String. |
int |
typeOf()
Returns the type of contained value. |
static AnyBinary |
unserialize(Unserializer unserializer)
|
| Methods inherited from class anvil.core.AnySequence |
add, compareTo, contains, deleteReference, equalsTo, getAttribute, getReference, getReference, 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, reverse, setReference, setReference, sizeOf, toBoolean |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.Object[] newInstance
protected byte[] _array
protected int _size
public static final java.lang.Object[] p_toInt
public static final transient NativeClass _class
| Constructor Detail |
public AnyBinary()
public AnyBinary(byte[] array)
public AnyBinary(byte[] array,
int size)
| Method Detail |
public static final Any newInstance(Any data,
Any[] rest)
public boolean isCompatible(Any element)
isCompatible in class AnySequencepublic int getSize()
getSize in class AnySequencepublic AnySequence resize(int size)
resize in class AnySequencepublic AnySequence clear()
clear in class AnySequencepublic void ensureCapacity(int size)
public Any getElement(int index)
getElement in class AnySequence
public AnySequence setElement(int index,
Any element)
setElement in class AnySequence
public AnySequence crop(int start,
int length)
crop in class AnySequence
public AnySequence getSlice(int start,
int length)
getSlice in class AnySequence
public AnySequence deleteSlice(int start,
int length)
deleteSlice in class AnySequence
public AnySequence setSlice(int start,
int length,
Any element)
setSlice in class AnySequence
public AnySequence setSlice(int start,
int length,
AnySequence sequence)
setSlice in class AnySequencepublic AnySequence append(AnySequence sequence)
append in class AnySequencepublic AnySequence append(Any element)
append in class AnySequencepublic AnySequence createSequence(Any element)
createSequence in class AnySequencepublic AnySequence createEmptySequence()
createEmptySequence in class AnySequence
public int compareAt(AnySequence sequence,
int start,
int length)
compareAt in class AnySequence
public int compareAt(Any element,
int start)
compareAt in class AnySequence
public AnySequence fill(Any fill,
int start,
int length)
fill in class AnySequence
public AnySequence sort(int start,
int length,
java.util.Comparator comparator)
sort in class AnySequence
public int search(Any element,
java.util.Comparator comparator)
search in class AnySequence
public AnySequence swap(int index1,
int index2)
swap in class AnySequencepublic final ClassType classOf()
Any
classOf in class AnySequencepublic int typeOf()
Any
typeOf in class Anypublic boolean isBinary()
Anybinary.
isBinary in class Anytrue if this is binarypublic byte[] toBinary()
Anybyte[].
toBinary in class Anybyte[] or null if this instance
isn't AnyBinary.public byte[] toByteArray()
public java.lang.Object toObject()
Anyjava.lang.Object.
toObject in class Anypublic java.lang.String toString()
AnyString.
toString in class AnyString.
public java.io.Writer toAnvil(java.io.Writer writer)
throws java.io.IOException
toAnvil in class Anyjava.io.IOExceptionpublic Code toCode(Code code)
toCode in class Anypublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
Any
equals in class AnySequencetrue if equal, false otherwise.protected int compare(Any other)
compare in class AnySequencepublic java.lang.Object clone()
Any
clone in class Anypublic Any copy()
Any
copy in class Any
public void serialize(Serializer serializer)
throws java.io.IOException
serialize in class Anyjava.io.IOException
public static final AnyBinary unserialize(Unserializer unserializer)
throws UnserializationException
UnserializationExceptionpublic Any m_unserialize(Context context)
public Any m_toHex()
public Any m_toInt(Context context,
int width,
Any offset)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||