anvil.core
Class AnyBindingIterator

java.lang.Object
  |
  +--anvil.core.Any
        |
        +--anvil.core.AnyAbstractClass
              |
              +--anvil.core.AnyBindingIterator
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable

public class AnyBindingIterator
extends AnyAbstractClass

class AnyBindingIterator


Field Summary
static NativeClass _class
           
static java.lang.Object[] newInstance
           
static java.lang.Object[] p_inject
           
static java.lang.Object[] p_join
           
static java.lang.Object[] p_skip
           
static java.lang.Object[] p_sort
           
 
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
AnyBindingIterator(BindingIterator iterator)
           
AnyBindingIterator(java.util.Iterator iterator)
           
 
Method Summary
 ClassType classOf()
          Returns the type of this Any.
 boolean isIterator()
          Checks if this any is iterator.
 BindingIterator iterator()
           
 Any m_both()
           
 Any m_hasMore()
           
 Any m_hasNext()
           
 Any m_inject(Context context, Any value)
           
 Any m_join(java.lang.String clue)
           
 Any m_key()
           
 Any m_next()
           
 Any m_purge()
           
 Any m_reverse()
           
 Any m_skip(Any amount)
           
 Any m_sort(Context context, Any comparator)
           
static Any newInstance(Any value)
           
 boolean toBoolean()
          Gets the contained value as boolean.
 java.lang.Object toObject()
          Gets the contained value as java.lang.Object.
 java.lang.String toString()
          Converts contained value into String.
 int typeOf()
          Returns the type of contained value.
 
Methods inherited from class anvil.core.AnyAbstractClass
doSerialize, isMutable, serialize, serializeObject, unserialize, unserializeObject
 
Methods inherited from class anvil.core.Any
_clone, _copy, _invoke, _invoke, _invoke, _invoke, _invoke, _invoke, _serialize, _unserialize, _wakeup, add, classNameOf, clone, coerce, compare, compareTo, concat, contains, copy, create, create, create, create, create, create, create, create, create, create, create, create, create, create, decrease, deleteAttribute, deleteReference, divide, equals, execute, execute, execute, execute, execute, execute, getAttribute, getRef, getReference, has, increase, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, isArray, isBinary, isBoolean, isBuffer, isDefined, isDouble, isInstanceOf, isInt, isList, isMap, isNull, isPattern, isRange, isRef, isSequence, isString, isTuple, isUndefined, 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, setAttribute, setRef, setReference, setReference, sizeOf, subtract, toAnvil, toAnvil, toAnyBoolean, toAnyDouble, toAnyInt, toAnyString, toArray, toBinary, toBuffer, toByte, toChar, toCode, toDouble, toInt, toList, toLong, toMap, toPattern, toRange, toTuple, type
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

newInstance

public static final java.lang.Object[] newInstance

p_skip

public static final java.lang.Object[] p_skip

p_sort

public static final java.lang.Object[] p_sort

p_join

public static final java.lang.Object[] p_join

p_inject

public static final java.lang.Object[] p_inject

_class

public static final NativeClass _class
Constructor Detail

AnyBindingIterator

public AnyBindingIterator(BindingIterator iterator)

AnyBindingIterator

public AnyBindingIterator(java.util.Iterator iterator)
Method Detail

newInstance

public static final Any newInstance(Any value)

classOf

public final ClassType classOf()
Description copied from class: Any
Returns the type of this Any.

Specified by:
classOf in class AnyAbstractClass

typeOf

public int typeOf()
Description copied from class: Any
Returns the type of contained value.

Overrides:
typeOf in class AnyAbstractClass
Returns:
Type of this any as int.

isIterator

public boolean isIterator()
Description copied from class: Any
Checks if this any is iterator.

Overrides:
isIterator in class Any
Returns:
true if this is iterator

toBoolean

public boolean toBoolean()
Description copied from class: Any
Gets the contained value as boolean. 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".

Overrides:
toBoolean in class AnyAbstractClass
Returns:
Value as boolean or false if it can't be transformed.

toObject

public java.lang.Object toObject()
Description copied from class: Any
Gets the contained value as java.lang.Object.

Overrides:
toObject in class Any
Returns:
Value as Object.

toString

public java.lang.String toString()
Description copied from class: Any
Converts contained value into String.

Overrides:
toString in class AnyAbstractClass
Returns:
Value as String.

iterator

public BindingIterator iterator()
Overrides:
iterator in class Any

m_hasMore

public Any m_hasMore()

m_hasNext

public Any m_hasNext()

m_next

public Any m_next()

m_skip

public Any m_skip(Any amount)

m_key

public Any m_key()

m_both

public Any m_both()

m_sort

public Any m_sort(Context context,
                  Any comparator)

m_join

public Any m_join(java.lang.String clue)

m_purge

public Any m_purge()

m_reverse

public Any m_reverse()

m_inject

public Any m_inject(Context context,
                    Any value)