anvil.core.runtime
Class AnyType

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

public class AnyType
extends AnyAbstractClass

class AnyType


Field Summary
static NativeClass _class
           
static Any CLASS
           
static Any CONSTANT_VARIABLE
           
static Any CONSTRUCTOR
           
static Any FUNCTION
           
static Any FUNCTION_PARAMETER
           
static Any GLOBAL_NAMESPACE
           
static Any IMPORT
           
static Any INTERFACE
           
static Any INTERFACE_METHOD
           
static Any LOCAL_VARIABLE
           
static Any MEMBER_VARIABLE
           
static Any METHOD
           
static Any MODULE
           
static Any NAMESPACE
           
static java.lang.Object[] p_getDeclarations
           
static java.lang.Object[] p_getValue
           
static java.lang.Object[] p_isInstanceOf
           
static java.lang.Object[] p_lookup
           
static java.lang.Object[] p_lookupInherited
           
static java.lang.Object[] p_newInstance
           
static java.lang.Object[] p_setValue
           
static Any STATIC_VARIABLE
           
static Any SYSTEM_NAMESPACE
           
 
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
AnyType(Type type)
           
 
Method Summary
 ClassType classOf()
          Returns the type of this Any.
 boolean equals(java.lang.Object obj)
          Tests for equality.
 Any execute(Context context, Any[] parameters)
           
 Any getAttribute(Context context, java.lang.String name)
           
 Any getReference(Context context, Any index)
           
 int hashCode()
           
 BindingIterator iterator()
           
 Any m_getBaseClass()
           
 Any m_getClass()
           
 Any m_getConstructor()
           
 Any m_getDeclarations(Any ofType_)
           
 Any m_getDoc()
           
 Any m_getFunction()
           
 Any m_getInterfaces()
           
 Any m_getModule()
           
 Any m_getName()
           
 Any m_getParameterList()
           
 Any m_getParent()
           
 Any m_getPathinfo()
           
 Any m_getQualifiedName()
           
 Any m_getType()
           
 Any m_getTypeCode()
           
 Any m_getURL()
           
 Any m_getValue(Context context, Any instance)
           
 Any m_getZone(Context context)
           
 Any m_hasDoc()
           
 Any m_isInstanceOf(Context context, Any clazz)
           
 Any m_isPrivate()
           
 Any m_lookup(java.lang.String name)
           
 Any m_lookupInherited(java.lang.String name)
           
 Any m_newInstance(Context context, Any[] parameters)
           
 Any m_setValue(Context context, Any value, Any instance)
           
 void serialize(Serializer serializer)
           
static void serializeType(Serializer serializer, Type type)
           
 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 Type unserializeType(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, 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, notify, notifyAll, wait, wait, wait
 

Field Detail

MODULE

public static final Any MODULE

NAMESPACE

public static final Any NAMESPACE

CLASS

public static final Any CLASS

INTERFACE

public static final Any INTERFACE

GLOBAL_NAMESPACE

public static final Any GLOBAL_NAMESPACE

SYSTEM_NAMESPACE

public static final Any SYSTEM_NAMESPACE

FUNCTION

public static final Any FUNCTION

METHOD

public static final Any METHOD

INTERFACE_METHOD

public static final Any INTERFACE_METHOD

CONSTRUCTOR

public static final Any CONSTRUCTOR

CONSTANT_VARIABLE

public static final Any CONSTANT_VARIABLE

STATIC_VARIABLE

public static final Any STATIC_VARIABLE

MEMBER_VARIABLE

public static final Any MEMBER_VARIABLE

FUNCTION_PARAMETER

public static final Any FUNCTION_PARAMETER

LOCAL_VARIABLE

public static final Any LOCAL_VARIABLE

IMPORT

public static final Any IMPORT

p_getDeclarations

public static final java.lang.Object[] p_getDeclarations

p_lookup

public static final java.lang.Object[] p_lookup

p_lookupInherited

public static final java.lang.Object[] p_lookupInherited

p_newInstance

public static final java.lang.Object[] p_newInstance

p_getValue

public static final java.lang.Object[] p_getValue

p_setValue

public static final java.lang.Object[] p_setValue

p_isInstanceOf

public static final java.lang.Object[] p_isInstanceOf

_class

public static final NativeClass _class
Constructor Detail

AnyType

public AnyType(Type type)
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.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Description copied from class: Any
Tests for equality.

Overrides:
equals in class Any
Returns:
true if equal, false otherwise.

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

execute

public Any execute(Context context,
                   Any[] parameters)
Overrides:
execute in class Any

serialize

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

unserialize

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

serializeType

public static final void serializeType(Serializer serializer,
                                       Type type)
                                throws java.io.IOException
java.io.IOException

unserializeType

public static final Type unserializeType(Unserializer unserializer)
                                  throws UnserializationException
UnserializationException

m_getName

public Any m_getName()

m_getQualifiedName

public Any m_getQualifiedName()

m_getType

public Any m_getType()

m_getTypeCode

public Any m_getTypeCode()

m_isPrivate

public Any m_isPrivate()

m_getDeclarations

public Any m_getDeclarations(Any ofType_)

m_lookup

public Any m_lookup(java.lang.String name)

m_lookupInherited

public Any m_lookupInherited(java.lang.String name)

m_getBaseClass

public Any m_getBaseClass()

m_getInterfaces

public Any m_getInterfaces()

m_getConstructor

public Any m_getConstructor()

m_newInstance

public Any m_newInstance(Context context,
                         Any[] parameters)

m_getParameterList

public Any m_getParameterList()

m_getFunction

public Any m_getFunction()

m_getPathinfo

public Any m_getPathinfo()

m_getURL

public Any m_getURL()

m_getModule

public Any m_getModule()

m_getZone

public Any m_getZone(Context context)

m_getClass

public Any m_getClass()

m_getParent

public Any m_getParent()

m_getValue

public Any m_getValue(Context context,
                      Any instance)

m_setValue

public Any m_setValue(Context context,
                      Any value,
                      Any instance)

m_hasDoc

public Any m_hasDoc()

m_getDoc

public Any m_getDoc()

m_isInstanceOf

public Any m_isInstanceOf(Context context,
                          Any clazz)