|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--anvil.core.Any
|
+--anvil.core.AnyRange
class AnyRange
| Field Summary | |
protected boolean |
_ascend
|
static NativeClass |
_class
|
protected Any |
_left
|
protected Any |
_right
|
protected Any |
_step
|
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 | |
AnyRange(Any left,
Any right)
|
|
AnyRange(Any left,
Any right,
Any step)
|
|
| 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 |
getMax()
|
Any |
getMin()
|
Any |
getReference(Context context,
Any index)
|
Any |
getRight()
|
int |
hashCode()
|
boolean |
inRange(Any value,
boolean withright)
|
boolean |
isRange()
Checks if this any is range. |
BindingIterator |
iterator()
|
static Any |
newInstance(Any a,
Any b,
Any c)
|
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)
|
java.lang.Object |
toObject()
Gets the contained value as java.lang.Object. |
AnyRange |
toRange()
|
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 AnyRange |
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
protected Any _step
protected boolean _ascend
| Constructor Detail |
public AnyRange(Any left,
Any right)
public AnyRange(Any left,
Any right,
Any step)
| Method Detail |
public static final Any newInstance(Any a,
Any b,
Any c)
public final ClassType classOf()
Any
classOf in class Anypublic int typeOf()
Any
typeOf in class Anypublic int sizeOf()
Any
sizeOf in class Anypublic boolean isRange()
Anyrange.
isRange in class Anytrue if this is rangepublic 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 getMin()
public Any getMax()
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 AnyRange toRange()
toRange 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 AnyRange unserialize(Unserializer unserializer)
throws UnserializationException
UnserializationException
public Any getReference(Context context,
Any index)
getReference in class Any
public boolean inRange(Any value,
boolean withright)
public 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 Any
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||