anvil.core.time
Class AnyCalendar

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

public class AnyCalendar
extends AnyAbstractClass

class AnyCalendar


Field Summary
static NativeClass _class
           
static java.lang.Object[] newInstance
           
static java.lang.Object[] p_add
           
static java.lang.Object[] p_after
           
static java.lang.Object[] p_before
           
static java.lang.Object[] p_format
           
static java.lang.Object[] p_onSameDay
           
static java.lang.Object[] p_pack
           
static java.lang.Object[] p_roll
           
static java.lang.Object[] p_set
           
static java.lang.Object[] p_setFirstDayOfWeek
           
static java.lang.Object[] p_setTime
           
static java.lang.Object[] p_unpack
           
 
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
AnyCalendar(java.util.Calendar calendar)
           
 
Method Summary
 ClassType classOf()
          Returns the type of this Any.
 java.lang.Object clone()
          Returns shallow copy from this any.
 Any copy()
          Returns deep copy from this any.
static Any create(int year, int month, int day, int hour, int minute, int second, int millis, java.lang.String zone)
           
static Any create(long timestamp, java.lang.String zone)
           
 boolean deleteAttribute(Context context, java.lang.String attribute)
           
 boolean deleteReference(Context context, Any index)
           
 boolean equals(java.lang.Object o)
          Tests for equality.
 Any getAttribute(Context context, java.lang.String attribute)
           
 Any getReference(Context context, Any index)
           
 int hashCode()
           
 Any m_add(Context context, Any field_, int amount)
           
 Any m_after(Context context, Any other)
           
 Any m_before(Context context, Any other)
           
 Any m_format(Context context, java.lang.String format)
           
 Any m_getFirstDayOfWeek()
           
 Any m_getLastDayOfWeek()
           
 Any m_getTime()
           
 Any m_onSameDay(Context context, Any other)
           
 Any m_pack(Any level_)
           
 Any m_roll(Context context, Any field_, Any p)
           
 Any m_set(Context context, Any[] parameters)
           
 Any m_setFirstDayOfWeek(int firstDay)
           
 Any m_setTime(long timestamp)
           
 Any m_unpack(Context context, java.lang.String packed)
           
static Any newInstance(Context context, Any[] parameters)
           
 void pad(java.lang.StringBuffer buffer, int i)
           
 void serialize(Serializer serializer)
           
 Any setAttribute(Context context, java.lang.String attribute, Any value)
           
 Any setReference(Context context, Any index, Any value)
           
 java.io.Writer toAnvil(java.io.Writer writer)
           
 Code toCode(Code code)
           
 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)
           
 
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, coerce, compare, compareTo, concat, contains, create, create, create, create, create, create, create, create, create, create, create, create, create, create, decrease, divide, 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, 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, setRef, setReference, sizeOf, subtract, toAnvil, toAnyBoolean, toAnyDouble, toAnyInt, toAnyString, toArray, toBinary, toBuffer, toByte, toChar, 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

newInstance

public static final java.lang.Object[] newInstance

p_after

public static final java.lang.Object[] p_after

p_before

public static final java.lang.Object[] p_before

p_roll

public static final java.lang.Object[] p_roll

p_add

public static final java.lang.Object[] p_add

p_setFirstDayOfWeek

public static final java.lang.Object[] p_setFirstDayOfWeek

p_setTime

public static final java.lang.Object[] p_setTime

p_set

public static final java.lang.Object[] p_set

p_pack

public static final java.lang.Object[] p_pack

p_unpack

public static final java.lang.Object[] p_unpack

p_onSameDay

public static final java.lang.Object[] p_onSameDay

p_format

public static final java.lang.Object[] p_format

_class

public static final NativeClass _class
Constructor Detail

AnyCalendar

public AnyCalendar(java.util.Calendar calendar)
Method Detail

newInstance

public static final Any newInstance(Context context,
                                    Any[] parameters)

create

public static Any create(int year,
                         int month,
                         int day,
                         int hour,
                         int minute,
                         int second,
                         int millis,
                         java.lang.String zone)

create

public static Any create(long timestamp,
                         java.lang.String zone)

classOf

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

Specified by:
classOf in class AnyAbstractClass

clone

public java.lang.Object clone()
Description copied from class: Any
Returns shallow copy from this any.

Overrides:
clone in class Any
Returns:
Shallow copy

copy

public Any copy()
Description copied from class: Any
Returns deep copy from this any.

Overrides:
copy in class Any

hashCode

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

equals

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

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

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.

toAnvil

public java.io.Writer toAnvil(java.io.Writer writer)
                       throws java.io.IOException
Overrides:
toAnvil in class Any
java.io.IOException

toCode

public Code toCode(Code code)
Overrides:
toCode in class Any

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.

getAttribute

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

setAttribute

public Any setAttribute(Context context,
                        java.lang.String attribute,
                        Any value)
Overrides:
setAttribute in class Any

deleteAttribute

public boolean deleteAttribute(Context context,
                               java.lang.String attribute)
Overrides:
deleteAttribute in class Any

getReference

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

setReference

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

deleteReference

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

serialize

public 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

m_after

public Any m_after(Context context,
                   Any other)

m_before

public Any m_before(Context context,
                    Any other)

m_roll

public Any m_roll(Context context,
                  Any field_,
                  Any p)

m_add

public Any m_add(Context context,
                 Any field_,
                 int amount)

m_setFirstDayOfWeek

public Any m_setFirstDayOfWeek(int firstDay)

m_getFirstDayOfWeek

public Any m_getFirstDayOfWeek()

m_getLastDayOfWeek

public Any m_getLastDayOfWeek()

m_getTime

public Any m_getTime()

m_setTime

public Any m_setTime(long timestamp)

m_set

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

pad

public void pad(java.lang.StringBuffer buffer,
                int i)

m_pack

public Any m_pack(Any level_)

m_unpack

public Any m_unpack(Context context,
                    java.lang.String packed)

m_onSameDay

public Any m_onSameDay(Context context,
                       Any other)

m_format

public Any m_format(Context context,
                    java.lang.String format)