|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--anvil.core.Any
|
+--anvil.core.AnyMap
class AnyMap
| Field Summary | |
static NativeClass |
_class
|
protected Any |
_left
|
protected Any |
_right
|
static java.lang.Object[] |
newInstance
|
| 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 | |
AnyMap(Any left,
Any right)
|
|
AnyMap(java.lang.String left,
Any right)
|
|
| Method Summary | |
ClassType |
classOf()
Returns the type of this Any. |
java.lang.Object |
clone()
Returns shallow copy from this any. |
protected int |
compare(Any other)
|
boolean |
contains(Any value)
|
Any |
copy()
Returns deep copy from this any. |
boolean |
equals(java.lang.Object obj)
Tests for equality. |
Any |
getAttribute(Context context,
java.lang.String attribute)
|
Any |
getLeft()
|
Any |
getReference(Context context,
Any index)
|
Any |
getRight()
|
int |
hashCode()
|
boolean |
isMap()
Checks if this any is map. |
BindingIterator |
iterator()
|
Any |
m_swap()
|
static Any |
newInstance(Any a,
Any b)
|
void |
serialize(Serializer serializer)
|
int |
sizeOf()
Returns the logical size of this any. |
java.io.Writer |
toAnvil(java.io.Writer writer)
|
boolean |
toBoolean()
Gets the contained value as boolean. |
Code |
toCode(Code code)
|
AnyMap |
toMap()
|
java.lang.Object |
toObject()
Gets the contained value as java.lang.Object. |
java.lang.String |
toString()
Converts contained value into String. |
Any[] |
toTuple()
Gets the contained value as Any[]. |
int |
typeOf()
Returns the type of contained value. |
static AnyMap |
unserialize(Unserializer unserializer)
|
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.Object[] newInstance
public static final transient NativeClass _class
protected Any _left
protected Any _right
| Constructor Detail |
public AnyMap(java.lang.String left,
Any right)
public AnyMap(Any left,
Any right)
| Method Detail |
public static final Any newInstance(Any a,
Any b)
public final ClassType classOf()
Any
classOf in class Anypublic int typeOf()
Any
typeOf in class Anypublic int sizeOf()
Any
sizeOf in class Anypublic boolean isMap()
Anymap.
isMap in class Anytrue if this is mappublic boolean toBoolean()
Anyboolean.
Integer is considered true if it is different from 0.
Double is considered true if it is different from 0.0.
String is considered true if it contains
"true", "on",
"yes" or "1".
toBoolean in class Anypublic Any getLeft()
public Any getRight()
public Any[] toTuple()
AnyAny[].
toTuple in class AnyAny[] or null if this instance
isn't AnyTuple.public java.lang.Object toObject()
Anyjava.lang.Object.
toObject in class Anypublic AnyMap toMap()
toMap in class Anypublic int hashCode()
hashCode in class java.lang.Objectpublic 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 java.lang.Object clone()
Any
clone in class Anypublic Any copy()
Any
copy in class Anypublic boolean equals(java.lang.Object obj)
Any
equals in class Anytrue if equal, false otherwise.protected int compare(Any other)
compare in class Any
public void serialize(Serializer serializer)
throws java.io.IOException
serialize in class Anyjava.io.IOException
public static final AnyMap unserialize(Unserializer unserializer)
throws UnserializationException
UnserializationException
public Any getReference(Context context,
Any index)
getReference in class Anypublic boolean contains(Any value)
contains in class Any
public Any getAttribute(Context context,
java.lang.String attribute)
getAttribute in class Anypublic BindingIterator iterator()
iterator in class Anypublic Any m_swap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||