|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--anvil.core.Any
|
+--anvil.core.AnyUndefined
class AnyUndefin
| Field Summary | |
static NativeClass |
_class
|
static Any |
INSTANCE
|
| 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 |
| Method Summary | |
ClassType |
classOf()
Returns the type of this Any. |
protected int |
compare(Any other)
|
Any |
decrease()
Decrease the value by one. |
boolean |
deleteAttribute(Context context,
java.lang.String attribute)
|
boolean |
deleteReference(Context context,
Any index)
|
boolean |
equals(java.lang.Object obj)
Tests for equality. |
Any |
getAttribute(Context context,
java.lang.String attribute)
|
Any |
getReference(Context context,
Any index)
|
int |
hashCode()
|
Any |
increase()
Increase the value by one. |
Any |
invoke(Context context,
java.lang.String methodName,
Any[] parameters)
|
boolean |
isDefined()
Checks if this any is defined. |
boolean |
isNull()
Checks if this any is null. |
boolean |
isUndefined()
Checks if this any is undefined. |
BindingIterator |
iterator()
|
void |
serialize(Serializer serializer)
|
Any |
setAttribute(Context context,
java.lang.String attribute,
Any value)
|
Any |
setReference(Context context,
Any value)
|
Any |
setReference(Context context,
Any index,
Any value)
|
java.io.Writer |
toAnvil(java.io.Writer writer)
|
Any |
toAnyBoolean()
Gets the contained value as AnyTrue or AnyFalse |
Any |
toAnyDouble()
Gets the contained value as AnyDouble. |
Any |
toAnyInt()
Gets the contained value as AnyInt. |
Any |
toAnyString()
Converts contained value into AnyString. |
byte[] |
toBinary()
Gets the contained value as byte[]. |
boolean |
toBoolean()
Gets the contained value as boolean. |
Code |
toCode(Code code)
|
int |
typeOf()
Returns the type of contained value. |
| Methods inherited from class anvil.core.Any |
_clone, _copy, _invoke, _invoke, _invoke, _invoke, _invoke, _invoke, _serialize, _unserialize, _wakeup, add, classNameOf, clone, coerce, compareTo, concat, contains, copy, create, create, create, create, create, create, create, create, create, create, create, create, create, create, divide, execute, execute, execute, execute, execute, execute, getRef, has, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, isArray, isBinary, isBoolean, isBuffer, isDouble, isInstanceOf, isInt, isIterator, isList, isMap, isMutable, isPattern, isRange, isRef, isSequence, isString, isTuple, 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, setRef, sizeOf, subtract, toAnvil, toArray, toBuffer, toByte, toChar, toDouble, toInt, toList, toLong, toMap, toObject, toPattern, toRange, toString, toTuple, type |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final NativeClass _class
public static final Any INSTANCE
| Method Detail |
public ClassType classOf()
Any
classOf in class Anypublic int typeOf()
Any
typeOf in class Anypublic boolean isDefined()
Anyundefined
returns false for this method.
isDefined in class Anytrue if this is other than undefinedpublic boolean isUndefined()
Anyundefined.
isUndefined in class Anytrue if this is undefinedpublic boolean isNull()
Anynull.
isNull in class Anytrue if this is null
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 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 toAnyBoolean()
AnyAnyTrue or AnyFalse
toAnyBoolean in class AnyAnyBoolean.public Any toAnyInt()
AnyAnyInt.
toAnyInt in class AnyAnyInt.public Any toAnyDouble()
AnyAnyDouble.
toAnyDouble in class AnyAnyDouble.public Any toAnyString()
AnyAnyString.
toAnyString in class AnyAnyString.public int hashCode()
hashCode in class java.lang.Objectpublic 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 Any getAttribute(Context context,
java.lang.String attribute)
getAttribute in class Any
public Any setAttribute(Context context,
java.lang.String attribute,
Any value)
setAttribute in class Any
public boolean deleteAttribute(Context context,
java.lang.String attribute)
deleteAttribute in class Any
public Any getReference(Context context,
Any index)
getReference in class Any
public Any setReference(Context context,
Any index,
Any value)
setReference in class Any
public Any setReference(Context context,
Any value)
setReference in class Any
public boolean deleteReference(Context context,
Any index)
deleteReference in class Any
public Any invoke(Context context,
java.lang.String methodName,
Any[] parameters)
invoke in class Any
public void serialize(Serializer serializer)
throws java.io.IOException
serialize in class Anyjava.io.IOExceptionpublic BindingIterator iterator()
iterator in class Anypublic byte[] toBinary()
Anybyte[].
toBinary in class Anybyte[] or null if this instance
isn't AnyBinary.public Any increase()
Any
increase in class Anypublic Any decrease()
Any
decrease in class Any
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||