|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--anvil.core.Any
|
+--anvil.core.AnyBoolean
|
+--anvil.core.AnyTrue
class AnyTrue.
| Field Summary | |
static NativeClass |
_class
|
static Any |
INSTANCE
|
static Any |
TRUE_STRING
|
| Fields inherited from class anvil.core.AnyBoolean |
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 |
| Method Summary | |
int |
hashCode()
|
Any |
not()
|
void |
serialize(Serializer serializer)
|
java.io.Writer |
toAnvil(java.io.Writer writer)
|
Any |
toAnyBoolean()
Gets the contained value as AnyTrue or AnyFalse |
Any |
toAnyString()
Converts contained value into AnyString. |
boolean |
toBoolean()
Gets the contained value as boolean. |
char |
toChar()
Gets the contained value as char. |
Code |
toCode(Code code)
|
double |
toDouble()
Gets the contained value as double. |
int |
toInt()
Gets the contained value as int. |
java.lang.Object |
toObject()
Gets the contained value as java.lang.Object. |
java.lang.String |
toString()
Converts contained value into String. |
| Methods inherited from class anvil.core.AnyBoolean |
classOf, compare, equals, isBoolean, newInstance, typeOf |
| 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 TRUE_STRING
public static final Any INSTANCE
| Method Detail |
public final 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 final Any toAnyBoolean()
AnyAnyTrue or AnyFalse
toAnyBoolean in class AnyAnyBoolean.public final int toInt()
Anyint.
toInt in class Anyint or zero if it can't be transformed.public final double toDouble()
Anydouble.
toDouble in class Anydouble or 0.0
if it can't be transformed.public final char toChar()
Anychar. Value is converted to
string and first character is returned.
toChar in class Anypublic final java.lang.String toString()
AnyString.
toString in class AnyString.public Any not()
not in class Any
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 final Any toAnyString()
AnyAnyString.
toAnyString in class AnyAnyString.public final java.lang.Object toObject()
Anyjava.lang.Object.
toObject in class Anypublic final int hashCode()
hashCode in class java.lang.Object
public final void serialize(Serializer serializer)
throws java.io.IOException
serialize in class Anyjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||