|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--anvil.core.Any
|
+--anvil.core.AnyRef
| Field Summary |
| Fields inherited from class anvil.core.Any |
_class, 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 | |
AnyRef()
|
|
| Method Summary | |
Any |
add(Any b)
Adds two Any's together. |
ClassType |
classOf()
Returns the type of this Any. |
java.lang.Object |
clone()
Returns shallow copy from this any. |
Any |
coerce()
|
protected int |
compare(Any other)
|
boolean |
contains(Any value)
|
Any |
copy()
Returns deep copy from this any. |
Any |
decrease()
Decrease the value by one. |
boolean |
deleteAttribute(Context context,
java.lang.String attribute)
|
boolean |
deleteReference(Context context,
Any index)
|
Any |
divide(Any b)
Divide two Any's. |
boolean |
equals(java.lang.Object obj)
Tests for equality. |
Any |
execute(Context context)
|
Any |
execute(Context context,
Any param1)
|
Any |
execute(Context context,
Any[] parameters)
|
Any |
execute(Context context,
Any param1,
Any param2)
|
Any |
execute(Context context,
Any param1,
Any param2,
Any param3)
|
Any |
execute(Context context,
Any param1,
Any param2,
Any param3,
Any param4)
|
Any |
getAttribute(Context context,
java.lang.String attribute)
|
abstract Any |
getRef()
|
Any |
getReference(Context context,
Any index)
|
boolean |
has(java.lang.String methodName)
|
int |
hashCode()
|
Any |
increase()
Increase the value by one. |
Any |
invoke(Context context,
int methodIndex)
|
Any |
invoke(Context context,
int methodIndex,
Any param1)
|
Any |
invoke(Context context,
int methodIndex,
Any[] parameters)
|
Any |
invoke(Context context,
int methodIndex,
Any param1,
Any param2)
|
Any |
invoke(Context context,
int methodIndex,
Any param1,
Any param2,
Any param3)
|
Any |
invoke(Context context,
int methodIndex,
Any param1,
Any param2,
Any param3,
Any param4)
|
Any |
invoke(Context context,
java.lang.String methodName)
|
Any |
invoke(Context context,
java.lang.String methodName,
Any param1)
|
Any |
invoke(Context context,
java.lang.String methodName,
Any[] parameters)
|
Any |
invoke(Context context,
java.lang.String methodName,
Any param1,
Any param2)
|
Any |
invoke(Context context,
java.lang.String methodName,
Any param1,
Any param2,
Any param3)
|
Any |
invoke(Context context,
java.lang.String methodName,
Any param1,
Any param2,
Any param3,
Any param4)
|
boolean |
isArray()
Checks if this any is array. |
boolean |
isBinary()
Checks if this any is binary. |
boolean |
isBoolean()
Checks if this any is boolean. |
boolean |
isBuffer()
Checks if this any is buffer. |
boolean |
isDefined()
Checks if this any is defined. |
boolean |
isDouble()
Checks if this any is float. |
boolean |
isInt()
Checks if this any is int. |
boolean |
isIterator()
Checks if this any is iterator. |
boolean |
isList()
Checks if this any is list. |
boolean |
isMap()
Checks if this any is map. |
boolean |
isMutable()
|
boolean |
isNull()
Checks if this any is null. |
boolean |
isPattern()
Checks if this any is pattern. |
boolean |
isRange()
Checks if this any is range. |
boolean |
isRef()
|
boolean |
isSequence()
|
boolean |
isString()
Checks if this any is string. |
boolean |
isTuple()
Checks if this any is tuple. |
boolean |
isUndefined()
Checks if this any is undefined. |
BindingIterator |
iterator()
|
Any |
minus()
Negate the sign. |
Any |
modulo(Any b)
Calculate the remainder. |
Any |
multiply(Any b)
Multiply two Any's. |
Any |
plus()
Remove the sign. |
void |
serialize(Serializer serializer)
|
Any |
setAttribute(Context context,
java.lang.String attribute,
Any value)
|
abstract Any |
setRef(Any value)
|
Any |
setReference(Context context,
Any value)
|
Any |
setReference(Context context,
Any index,
Any value)
|
int |
sizeOf()
Returns the logical size of this any. |
Any |
subtract(Any b)
Substract two Any's. |
java.lang.String |
toAnvil()
Converts contained value into value anvil code. |
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. |
Array |
toArray()
Gets the contained vaelue as Array. |
byte[] |
toBinary()
Gets the contained value as byte[]. |
boolean |
toBoolean()
Gets the contained value as boolean. |
java.lang.StringBuffer |
toBuffer()
|
byte |
toByte()
|
Code |
toCode(Code code)
|
double |
toDouble()
Gets the contained value as double. |
int |
toInt()
Gets the contained value as int. |
Any[] |
toList()
|
long |
toLong()
Gets the contained value as long. |
AnyMap |
toMap()
|
java.lang.Object |
toObject()
Gets the contained value as java.lang.Object. |
java.util.regex.Pattern |
toPattern()
|
AnyRange |
toRange()
|
java.lang.String |
toString()
Converts contained value into String. |
Any[] |
toTuple()
Gets the contained value as Any[]. |
Type |
type()
|
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, classNameOf, compareTo, concat, create, create, create, create, create, create, create, create, create, create, create, create, create, create, isInstanceOf, m_clone, m_compareTo, m_copy, m_each, m_equals, m_hashCode, m_pipe, m_select, m_toBoolean, m_toString, not, toChar |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AnyRef()
| Method Detail |
public boolean isRef()
isRef in class Anypublic abstract Any setRef(Any value)
setRef in class Anypublic abstract Any getRef()
getRef in class Anypublic java.lang.Object clone()
Any
clone in class Anypublic Any copy()
Any
copy in class Anypublic int sizeOf()
Any
sizeOf in class Anypublic ClassType classOf()
Any
classOf in class Anypublic Type type()
type 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 nullpublic boolean isBoolean()
Anyboolean.
isBoolean in class Anytrue if this is booleanpublic boolean isInt()
Anyint.
isInt in class Anytrue if this is intpublic boolean isDouble()
Anyfloat. In script the float is
used, but the implementation uses double.
isDouble in class Anytrue if this is floatpublic boolean isMutable()
isMutable in class Anypublic boolean isSequence()
isSequence in class Anypublic boolean isString()
Anystring.
isString in class Anytrue if this is stringpublic boolean isBinary()
Anybinary.
isBinary in class Anytrue if this is binarypublic boolean isTuple()
Anytuple.
isTuple in class Anytrue if this is tuplepublic boolean isList()
Anylist.
isList in class Anytrue if this is listpublic boolean isArray()
Anyarray.
isArray in class Anytrue if this is arraypublic boolean isPattern()
Anypattern.
isPattern in class Anytrue if this is patternpublic boolean isRange()
Anyrange.
isRange in class Anytrue if this is rangepublic boolean isMap()
Anymap.
isMap in class Anytrue if this is mappublic boolean isBuffer()
Anybuffer.
isBuffer in class Anytrue if this is bufferpublic boolean isIterator()
Anyiterator.
isIterator in class Anytrue if this is iteratorpublic java.lang.Object toObject()
Anyjava.lang.Object.
toObject in class Anypublic int toInt()
Anyint.
toInt in class Anyint or zero if it can't be transformed.public byte toByte()
toByte in class Anypublic long toLong()
Anylong.
toLong in class Anylong or zero if it can't be transformed.public double toDouble()
Anydouble.
toDouble in class Anydouble or 0.0
if it can't be transformed.public 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 java.lang.String toString()
AnyString.
toString in class AnyString.public java.lang.StringBuffer toBuffer()
toBuffer in class Anypublic java.lang.String toAnvil()
Any
toAnvil 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 Array toArray()
AnyArray.
toArray in class Anypublic byte[] toBinary()
Anybyte[].
toBinary in class Anybyte[] or null if this instance
isn't AnyBinary.public Any[] toTuple()
AnyAny[].
toTuple in class AnyAny[] or null if this instance
isn't AnyTuple.public Any[] toList()
toList in class Anypublic java.util.regex.Pattern toPattern()
toPattern in class Anypublic AnyMap toMap()
toMap in class Anypublic AnyRange toRange()
toRange 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 Any add(Any b)
Any
add in class Anypublic Any subtract(Any b)
Any
subtract in class Anypublic Any multiply(Any b)
Anythis instance.
Will only work with integer and double.
multiply in class Anypublic Any divide(Any b)
Any
divide in class Anypublic Any modulo(Any b)
Any
modulo in class Anypublic Any increase()
Any
increase in class Anypublic Any decrease()
Any
decrease in class Anypublic Any minus()
Any
minus in class Anypublic Any plus()
Any
plus in class Anypublic 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 Anypublic Any coerce()
coerce in class Any
public void serialize(Serializer serializer)
throws java.io.IOException
serialize in class Anyjava.io.IOExceptionpublic boolean contains(Any value)
contains 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 Anypublic BindingIterator iterator()
iterator in class Any
public Any execute(Context context,
Any[] parameters)
execute in class Anypublic Any execute(Context context)
execute in class Any
public Any execute(Context context,
Any param1)
execute in class Any
public Any execute(Context context,
Any param1,
Any param2)
execute in class Any
public Any execute(Context context,
Any param1,
Any param2,
Any param3)
execute in class Any
public Any execute(Context context,
Any param1,
Any param2,
Any param3,
Any param4)
execute in class Anypublic boolean has(java.lang.String methodName)
has in class Any
public Any invoke(Context context,
java.lang.String methodName,
Any[] parameters)
invoke in class Any
public Any invoke(Context context,
int methodIndex,
Any[] parameters)
invoke in class Any
public Any invoke(Context context,
int methodIndex)
invoke in class Any
public Any invoke(Context context,
int methodIndex,
Any param1)
invoke in class Any
public Any invoke(Context context,
int methodIndex,
Any param1,
Any param2)
invoke in class Any
public Any invoke(Context context,
int methodIndex,
Any param1,
Any param2,
Any param3)
invoke in class Any
public Any invoke(Context context,
int methodIndex,
Any param1,
Any param2,
Any param3,
Any param4)
invoke in class Any
public Any invoke(Context context,
java.lang.String methodName)
invoke in class Any
public Any invoke(Context context,
java.lang.String methodName,
Any param1)
invoke in class Any
public Any invoke(Context context,
java.lang.String methodName,
Any param1,
Any param2)
invoke in class Any
public Any invoke(Context context,
java.lang.String methodName,
Any param1,
Any param2,
Any param3)
invoke in class Any
public Any invoke(Context context,
java.lang.String methodName,
Any param1,
Any param2,
Any param3,
Any param4)
invoke in class Any
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||