Logo Search packages:      
Sourcecode: jruby0.9 version File versions  Download package

org::jruby::RubyTime Class Reference

Inheritance diagram for org::jruby::RubyTime:

org::jruby::RubyObject org::jruby::runtime::builtin::IRubyObject

List of all members.


Detailed Description

The Time class.

Author:
chadfowler, jpetersen

Definition at line 60 of file RubyTime.java.


Public Member Functions

void addFinalizer (RubyProc finalizer)
IRubyObject anyToString ()
RubyString asctime ()
RubyString asString ()
String asSymbol ()
void attachToObjectSpace ()
void callInit (IRubyObject[] args, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject arg)
IRubyObject callMethod (ThreadContext context, String name, Block block)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name)
IRubyObject callMethod (ThreadContext context, String name)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, int methodIndex, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, int methodIndex, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject[] args)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject arg)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args)
IRubyObject callSuper (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject checkArrayType ()
IRubyObject checkStringType ()
IRubyObject compilerCallMethod (ThreadContext context, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
IRubyObject compilerCallMethodWithIndex (ThreadContext context, int methodIndex, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
RubyArray convertToArray ()
RubyFloat convertToFloat ()
RubyHash convertToHash ()
RubyInteger convertToInteger ()
RubyString convertToString ()
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, String convertMethod, boolean raiseOnMissingMethod, boolean raiseOnWrongTypeResult, boolean allowNilThrough)
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, boolean raise)
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, String convertMethod, boolean raise)
IRubyObject convertToTypeWithCheck (RubyClass targetType, int convertMethodIndex, String convertMethod)
synchronized Object dataGetStruct ()
synchronized void dataWrapStruct (Object obj)
IRubyObject display (IRubyObject[] args)
RubyString dump (final IRubyObject[] args, Block unusedBlock)
IRubyObject dup ()
boolean eql (IRubyObject other)
IRubyObject eql_p (IRubyObject other)
final boolean eqlInternal (final ThreadContext context, final IRubyObject other)
IRubyObject equal (IRubyObject other)
final IRubyObject equalInternal (final ThreadContext context, final IRubyObject other)
boolean equals (Object other)
IRubyObject evalSimple (ThreadContext context, IRubyObject src, String file)
IRubyObject evalUnder (RubyModule under, IRubyObject src, IRubyObject file, IRubyObject line)
IRubyObject evalWithBinding (ThreadContext context, IRubyObject src, IRubyObject scope, String file)
IRubyObject extend (IRubyObject[] args)
IRubyObject freeze ()
RubyBoolean frozen ()
RubyTime getgm ()
IRubyObject getInstanceVariable (String name)
Map getInstanceVariables ()
Map getInstanceVariablesSnapshot ()
Class getJavaClass ()
Date getJavaDate ()
RubyTime getlocal ()
final RubyClass getMetaClass ()
int getNativeTypeIndex ()
Ruby getRuntime ()
RubyClass getSingletonClass ()
RubyClass getSingletonClassClone ()
RubyClass getType ()
RubyBoolean gmt ()
RubyInteger gmt_offset ()
RubyTime gmtime ()
RubyFixnum hash ()
int hashCode ()
RubyInteger hour ()
synchronized RubyFixnum id ()
synchronized RubyFixnum id_deprecated ()
IRubyObject infectBy (IRubyObject obj)
IRubyObject inherited (IRubyObject arg, Block block)
IRubyObject initialize (IRubyObject[] args, Block block)
IRubyObject initialize_copy (IRubyObject original)
IRubyObject inspect ()
IRubyObject instance_eval (IRubyObject[] args, Block block)
RubyBoolean instance_of (IRubyObject type)
IRubyObject instance_variable_get (IRubyObject var)
IRubyObject instance_variable_set (IRubyObject var, IRubyObject value)
RubyArray instance_variables ()
Iterator instanceVariableNames ()
RubyBoolean isdst ()
final boolean isFalse ()
boolean isFrozen ()
boolean isImmediate ()
boolean isKindOf (RubyModule type)
boolean isNil ()
boolean isSingleton ()
boolean isTaint ()
final boolean isTrue ()
RubyBoolean kind_of (IRubyObject type)
RubyTime localtime ()
RubyClass makeMetaClass (RubyClass superClass, SinglyLinkedList parentCRef)
IRubyObject match (IRubyObject arg)
RubyInteger mday ()
RubyObject mdump (final IRubyObject[] args)
IRubyObject method (IRubyObject symbol)
IRubyObject method_missing (IRubyObject[] args, Block block)
IRubyObject methods (IRubyObject[] args)
long microseconds ()
RubyInteger min ()
RubyInteger month ()
IRubyObject nil_p ()
IRubyObject obj_equal (IRubyObject obj)
IRubyObject op_cmp (IRubyObject other)
IRubyObject op_ge (IRubyObject other)
IRubyObject op_gt (IRubyObject other)
IRubyObject op_le (IRubyObject other)
IRubyObject op_lt (IRubyObject other)
IRubyObject op_minus (IRubyObject other)
IRubyObject op_plus (IRubyObject other)
IRubyObject private_methods ()
IRubyObject protected_methods ()
IRubyObject public_methods (IRubyObject[] args)
IRubyObject rbClone ()
IRubyObject remove_instance_variable (IRubyObject name, Block block)
void removeFinalizers ()
IRubyObject removeInstanceVariable (String name)
RubyBoolean respond_to (IRubyObject[] args)
boolean respondsTo (String name)
 RubyTime (Ruby runtime, RubyClass rubyClass, Calendar cal)
 RubyTime (Ruby runtime, RubyClass rubyClass)
Map safeGetInstanceVariables ()
boolean safeHasInstanceVariables ()
IRubyObject same2 (IRubyObject other)
RubyInteger sec ()
IRubyObject send (IRubyObject[] args, Block block)
void setFrozen (boolean frozen)
IRubyObject setInstanceVariable (String name, IRubyObject value)
IRubyObject setInstanceVariable (String name, IRubyObject value, String taintError, String freezeError)
void setInstanceVariables (Map instanceVariables)
void setJavaCalendar (Calendar cal)
void setMetaClass (RubyClass metaClass)
void setMicroseconds (long mic)
void setTaint (boolean taint)
void setUSec (long usec)
RubyArray singleton_methods (IRubyObject[] args)
IRubyObject specificEval (RubyModule mod, IRubyObject[] args, Block block)
RubyString strftime (IRubyObject format)
RubyTime succ ()
IRubyObject taint ()
RubyBoolean tainted ()
RubyArray to_a ()
RubyFloat to_f ()
RubyInteger to_i ()
IRubyObject to_s ()
String toString ()
RubyClass type ()
RubyClass type_deprecated ()
IRubyObject untaint ()
void updateCal (Calendar calendar)
RubyInteger usec ()
RubyInteger wday ()
RubyInteger yday ()
RubyInteger year ()
RubyString zone ()

Static Public Member Functions

static IRubyObject callMethodMissingIfNecessary (ThreadContext context, IRubyObject receiver, DynamicMethod method, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
static RubyClass createObjectClass (Ruby runtime, RubyClass objectClass)
static RubyClass createTimeClass (Ruby runtime)
static TimeZone getLocalTimeZone (Ruby runtime)
static void initCopy (IRubyObject clone, IRubyObject original)
static IRubyObject new_at (IRubyObject recv, IRubyObject[] args)
static RubyTime new_local (IRubyObject recv, IRubyObject[] args)
static RubyTime new_utc (IRubyObject recv, IRubyObject[] args)
static RubyTime newTime (Ruby runtime, Calendar cal)
static RubyTime newTime (Ruby runtime, long milliseconds)
static void puts (Object obj)
static RubyTime s_load (IRubyObject recv, IRubyObject from, Block block)
static IRubyObject s_new (IRubyObject recv, IRubyObject[] args, Block block)
static String trueFalseNil (String v)
static String trueFalseNil (IRubyObject v)

Static Public Attributes

static final IRubyObject NEVER = new RubyObject()
static final IRubyObject[] NULL_ARRAY = new IRubyObject[0]
static ObjectAllocator OBJECT_ALLOCATOR
static final String UTC = "UTC"

Protected Member Functions

void checkFrozen ()
IRubyObject doClone ()
long getTimeInMillis ()
void testFrozen (String message)

Static Protected Member Functions

static RubyTime s_mload (IRubyObject recv, RubyTime time, IRubyObject from)

Protected Attributes

Map instanceVariables
boolean isTrue = true
RubyClass metaClass

Private Member Functions

int cmp (RubyTime other)

Static Private Member Functions

static RubyTime createTime (IRubyObject recv, IRubyObject[] args, boolean gmt)

Private Attributes

Calendar cal
long usec

Static Private Attributes

static final String[] months
static final SimpleDateFormat simpleDateFormat = new SimpleDateFormat("-", Locale.US)
static ObjectAllocator TIME_ALLOCATOR
static final long[] time_max = {31, 23, 59, 60, Long.MAX_VALUE}
static final long[] time_min = {1, 0, 0, 0, 0}

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index