anvil.core.runtime
Class AnyDoc

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

public class AnyDoc
extends AnyAbstractClass

class AnyDoc


Field Summary
static NativeClass _class
           
static java.lang.Object[] p_getChild
           
static java.lang.Object[] p_getChildren
           
static java.lang.Object[] p_getHead
           
static java.lang.Object[] p_getText
           
 
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
AnyDoc(Doc doc)
           
 
Method Summary
 ClassType classOf()
          Returns the type of this Any.
 Any getAttribute(Context context, java.lang.String name)
           
 Any getReference(Context context, Any index)
           
 BindingIterator iterator()
           
 Any m_getChild(java.lang.String type, java.lang.String ident)
           
 Any m_getChildren(java.lang.String type, java.lang.String ident)
           
 Any m_getHead(java.lang.String type, java.lang.String ident)
           
 Any m_getIdent()
           
 Any m_getName()
           
 Any m_getNext()
           
 Any m_getText(java.lang.String type, java.lang.String ident)
           
 Any m_getType()
           
 Any m_hasChildren()
           
 void serialize(Serializer serializer)
           
 java.lang.Object toObject()
          Gets the contained value as java.lang.Object.
 java.lang.String toString()
          Converts contained value into String.
static Any unserialize(Unserializer unserializer)
           
static Doc unserializeDoc(Unserializer unserializer)
           
 
Methods inherited from class anvil.core.AnyAbstractClass
doSerialize, isMutable, serializeObject, toBoolean, typeOf, 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, getRef, has, increase, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, isArray, isBinary, isBoolean, isBuffer, isDefined, isDouble, isInstanceOf, isInt, isIterator, 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

p_getText

public static final java.lang.Object[] p_getText

p_getHead

public static final java.lang.Object[] p_getHead

p_getChild

public static final java.lang.Object[] p_getChild

p_getChildren

public static final java.lang.Object[] p_getChildren

_class

public static final NativeClass _class
Constructor Detail

AnyDoc

public AnyDoc(Doc doc)
Method Detail

classOf

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

Specified by:
classOf in class AnyAbstractClass

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.

getAttribute

public Any getAttribute(Context context,
                        java.lang.String name)
Overrides:
getAttribute in class Any

getReference

public Any getReference(Context context,
                        Any index)
Overrides:
getReference in class Any

iterator

public BindingIterator iterator()
Overrides:
iterator in class Any

serialize

public final void serialize(Serializer serializer)
                     throws java.io.IOException
Overrides:
serialize in class AnyAbstractClass
java.io.IOException

unserializeDoc

public static final Doc unserializeDoc(Unserializer unserializer)
                                throws UnserializationException
UnserializationException

unserialize

public static final Any unserialize(Unserializer unserializer)
                             throws UnserializationException
UnserializationException

m_getName

public Any m_getName()

m_getType

public Any m_getType()

m_getIdent

public Any m_getIdent()

m_getText

public Any m_getText(java.lang.String type,
                     java.lang.String ident)

m_getHead

public Any m_getHead(java.lang.String type,
                     java.lang.String ident)

m_hasChildren

public Any m_hasChildren()

m_getChild

public Any m_getChild(java.lang.String type,
                      java.lang.String ident)

m_getNext

public Any m_getNext()

m_getChildren

public Any m_getChildren(java.lang.String type,
                         java.lang.String ident)