anvil.core
Class AnyAbstractClass

java.lang.Object
  |
  +--anvil.core.Any
        |
        +--anvil.core.AnyAbstractClass
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable
Direct Known Subclasses:
AnyAttribute, AnyAttributes, AnyBindingIterator, AnyCalendar, AnyCipher, AnyCitizen, AnyConfigurable, AnyConnection, AnyContext, AnyCookie, AnyDoc, AnyDOMHandler, AnyEnvelope, AnyFile, AnyFtpClient, AnyFunction, AnyInetAddress, AnyInputStream, AnyMessageHash, AnyMetaData, AnyName, AnyNameParser, AnyNamespace, AnyNamingContext, AnyNode, AnyObject, AnyOutputStream, AnyPermission, AnyProcess, AnyRealm, AnyRequest, AnyResource, AnyResponse, AnyScope, AnySearchControls, AnySearchResult, AnyServerSocket, AnySession, AnySessionContainer, AnySimpleHandler, AnySocket, AnyStackTraceElement, AnyThread, AnyThreadPool, AnyThrowable, AnyTribe, AnyType, AnyURL, AnyURLConnection, Reflection

public abstract class AnyAbstractClass
extends Any

class AnyAbstractClass

Version:
$Revision: 1.12 $
Author:
Jani Lehtimäki

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
AnyAbstractClass()
           
 
Method Summary
abstract  ClassType classOf()
          Returns the type of this Any.
 void doSerialize(Serializer serializer)
           
 boolean isMutable()
           
 void serialize(Serializer serializer)
           
static void serializeObject(Serializer serializer, java.lang.Object object)
           
 boolean toBoolean()
          Gets the contained value as boolean.
 java.lang.String toString()
          Converts contained value into String.
 int typeOf()
          Returns the type of contained value.
static Any unserialize(Unserializer unserializer)
           
static java.lang.Object unserializeObject(Unserializer unserializer)
           
 
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, isIterator, isList, isMap, isNull, isPattern, isRange, isRef, isSequence, isString, isTuple, isUndefined, iterator, 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, toObject, toPattern, toRange, toTuple, type
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnyAbstractClass

public AnyAbstractClass()
Method Detail

typeOf

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

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

isMutable

public boolean isMutable()
Overrides:
isMutable in class Any

classOf

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

Overrides:
classOf in class Any

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 Any
Returns:
Value as boolean or false if it can't be transformed.

toString

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

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

serialize

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

doSerialize

public void doSerialize(Serializer serializer)
                 throws java.io.IOException
java.io.IOException

unserialize

public static Any unserialize(Unserializer unserializer)
                       throws UnserializationException
UnserializationException

unserializeObject

public static java.lang.Object unserializeObject(Unserializer unserializer)
                                          throws UnserializationException
UnserializationException

serializeObject

public static void serializeObject(Serializer serializer,
                                   java.lang.Object object)
                            throws java.io.IOException
java.io.IOException