public class org.jruby.RubyTime extends org.jruby.RubyObject
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.RubyTime
super_class: org.jruby.RubyObject
{
public static final java.lang.String UTC;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "UTC"
private static final java.math.BigDecimal ONE_MILLION_BD;
descriptor: Ljava/math/BigDecimal;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.math.BigDecimal ONE_BILLION_BD;
descriptor: Ljava/math/BigDecimal;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final int TIME_SCALE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1000000000
private org.joda.time.DateTime dt;
descriptor: Lorg/joda/time/DateTime;
flags: (0x0002) ACC_PRIVATE
private long nsec;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private static final org.joda.time.format.DateTimeFormatter ONE_DAY_CTIME_FORMATTER;
descriptor: Lorg/joda/time/format/DateTimeFormatter;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.joda.time.format.DateTimeFormatter TWO_DAY_CTIME_FORMATTER;
descriptor: Lorg/joda/time/format/DateTimeFormatter;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.joda.time.format.DateTimeFormatter TO_S_FORMATTER;
descriptor: Lorg/joda/time/format/DateTimeFormatter;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.joda.time.format.DateTimeFormatter TO_S_UTC_FORMATTER;
descriptor: Lorg/joda/time/format/DateTimeFormatter;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.regex.Pattern TZ_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.regex.Pattern TIME_OFFSET_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.jruby.util.ByteList TZ_STRING;
descriptor: Lorg/jruby/util/ByteList;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private boolean isTzRelative;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private static final org.jruby.runtime.ObjectAllocator TIME_ALLOCATOR;
descriptor: Lorg/jruby/runtime/ObjectAllocator;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.joda.time.DateTime TIME0;
descriptor: Lorg/joda/time/DateTime;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int ARG_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 7
private static volatile int[] $SWITCH_TABLE$org$jruby$runtime$ClassIndex;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=0, args_size=0
0: ldc 1000000
invokestatic java.math.BigDecimal.valueOf:(J)Ljava/math/BigDecimal;
putstatic org.jruby.RubyTime.ONE_MILLION_BD:Ljava/math/BigDecimal;
1: ldc 1000000000
invokestatic java.math.BigDecimal.valueOf:(J)Ljava/math/BigDecimal;
putstatic org.jruby.RubyTime.ONE_BILLION_BD:Ljava/math/BigDecimal;
2: ldc "EEE MMM d HH:mm:ss yyyy"
invokestatic org.joda.time.format.DateTimeFormat.forPattern:(Ljava/lang/String;)Lorg/joda/time/format/DateTimeFormatter;
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual org.joda.time.format.DateTimeFormatter.withLocale:(Ljava/util/Locale;)Lorg/joda/time/format/DateTimeFormatter;
putstatic org.jruby.RubyTime.ONE_DAY_CTIME_FORMATTER:Lorg/joda/time/format/DateTimeFormatter;
3: ldc "EEE MMM dd HH:mm:ss yyyy"
invokestatic org.joda.time.format.DateTimeFormat.forPattern:(Ljava/lang/String;)Lorg/joda/time/format/DateTimeFormatter;
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual org.joda.time.format.DateTimeFormatter.withLocale:(Ljava/util/Locale;)Lorg/joda/time/format/DateTimeFormatter;
putstatic org.jruby.RubyTime.TWO_DAY_CTIME_FORMATTER:Lorg/joda/time/format/DateTimeFormatter;
4: ldc "yyyy-MM-dd HH:mm:ss Z"
invokestatic org.joda.time.format.DateTimeFormat.forPattern:(Ljava/lang/String;)Lorg/joda/time/format/DateTimeFormatter;
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual org.joda.time.format.DateTimeFormatter.withLocale:(Ljava/util/Locale;)Lorg/joda/time/format/DateTimeFormatter;
putstatic org.jruby.RubyTime.TO_S_FORMATTER:Lorg/joda/time/format/DateTimeFormatter;
5: ldc "yyyy-MM-dd HH:mm:ss 'UTC'"
invokestatic org.joda.time.format.DateTimeFormat.forPattern:(Ljava/lang/String;)Lorg/joda/time/format/DateTimeFormatter;
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual org.joda.time.format.DateTimeFormatter.withLocale:(Ljava/util/Locale;)Lorg/joda/time/format/DateTimeFormatter;
putstatic org.jruby.RubyTime.TO_S_UTC_FORMATTER:Lorg/joda/time/format/DateTimeFormatter;
6: ldc "([^-\\+\\d]+)?([\\+-]?)(\\d+)(?::(\\d+))?(?::(\\d+))?"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
7: putstatic org.jruby.RubyTime.TZ_PATTERN:Ljava/util/regex/Pattern;
8: ldc "([\\+-])(\\d\\d):(\\d\\d)(?::(\\d\\d))?"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
9: putstatic org.jruby.RubyTime.TIME_OFFSET_PATTERN:Ljava/util/regex/Pattern;
10: ldc "TZ"
invokestatic org.jruby.util.ByteList.create:(Ljava/lang/CharSequence;)Lorg/jruby/util/ByteList;
putstatic org.jruby.RubyTime.TZ_STRING:Lorg/jruby/util/ByteList;
11: new org.jruby.RubyTime$1
dup
invokespecial org.jruby.RubyTime$1.<init>:()V
putstatic org.jruby.RubyTime.TIME_ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
12: new org.joda.time.DateTime
dup
lconst_0
getstatic org.joda.time.DateTimeZone.UTC:Lorg/joda/time/DateTimeZone;
invokespecial org.joda.time.DateTime.<init>:(JLorg/joda/time/DateTimeZone;)V
putstatic org.jruby.RubyTime.TIME0:Lorg/joda/time/DateTime;
13: return
LocalVariableTable:
Start End Slot Name Signature
private void setIsTzRelative(boolean);
descriptor: (Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.jruby.RubyTime.isTzRelative:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyTime;
0 2 1 tzRelative Z
MethodParameters:
Name Flags
tzRelative
public org.jruby.runtime.ClassIndex getNativeClassIndex();
descriptor: ()Lorg/jruby/runtime/ClassIndex;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic org.jruby.runtime.ClassIndex.TIME:Lorg/jruby/runtime/ClassIndex;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public static java.lang.String getEnvTimeZone(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield org.jruby.Ruby.tzVar:Lorg/jruby/RubyString;
astore 1
start local 1 1: aload 1
ifnonnull 5
2: aload 0
getstatic org.jruby.RubyTime.TZ_STRING:Lorg/jruby/util/ByteList;
invokevirtual org.jruby.Ruby.newString:(Lorg/jruby/util/ByteList;)Lorg/jruby/RubyString;
astore 1
3: aload 1
iconst_1
invokevirtual org.jruby.RubyString.setFrozen:(Z)V
4: aload 0
aload 1
putfield org.jruby.Ruby.tzVar:Lorg/jruby/RubyString;
5: StackMap locals: org.jruby.RubyString
StackMap stack:
aload 0
invokevirtual org.jruby.Ruby.getENV:()Lorg/jruby/RubyHash;
aload 1
invokevirtual org.jruby.RubyHash.getEntry:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyHash$RubyHashEntry;
astore 2
start local 2 6: aload 2
getfield org.jruby.RubyHash$RubyHashEntry.key:Lorg/jruby/runtime/builtin/IRubyObject;
ifnull 7
aload 2
getfield org.jruby.RubyHash$RubyHashEntry.key:Lorg/jruby/runtime/builtin/IRubyObject;
getstatic org.jruby.RubyTime.NEVER:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpne 8
StackMap locals: org.jruby.RubyHash$RubyHashEntry
StackMap stack:
7: aconst_null
areturn
8: StackMap locals:
StackMap stack:
aload 2
getfield org.jruby.RubyHash$RubyHashEntry.key:Lorg/jruby/runtime/builtin/IRubyObject;
aload 1
if_acmpeq 9
aload 0
aload 2
getfield org.jruby.RubyHash$RubyHashEntry.key:Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyString
putfield org.jruby.Ruby.tzVar:Lorg/jruby/RubyString;
9: StackMap locals:
StackMap stack:
aload 2
getfield org.jruby.RubyHash$RubyHashEntry.value:Lorg/jruby/runtime/builtin/IRubyObject;
instanceof org.jruby.RubyString
ifeq 10
aload 2
getfield org.jruby.RubyHash$RubyHashEntry.value:Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyString
invokevirtual org.jruby.RubyString.asJavaString:()Ljava/lang/String;
goto 11
StackMap locals:
StackMap stack:
10: aconst_null
StackMap locals:
StackMap stack: java.lang.String
11: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 runtime Lorg/jruby/Ruby;
1 12 1 tz Lorg/jruby/RubyString;
6 12 2 entry Lorg/jruby/RubyHash$RubyHashEntry;
MethodParameters:
Name Flags
runtime
public static org.joda.time.DateTimeZone getLocalTimeZone(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Lorg/joda/time/DateTimeZone;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.jruby.RubyTime.getEnvTimeZone:(Lorg/jruby/Ruby;)Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnonnull 2
invokestatic org.joda.time.DateTimeZone.getDefault:()Lorg/joda/time/DateTimeZone;
goto 3
StackMap locals: java.lang.String
StackMap stack:
2: aload 0
aload 1
invokestatic org.jruby.RubyTime.getTimeZoneFromTZString:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/joda/time/DateTimeZone;
StackMap locals:
StackMap stack: org.joda.time.DateTimeZone
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 runtime Lorg/jruby/Ruby;
1 4 1 tz Ljava/lang/String;
MethodParameters:
Name Flags
runtime
public static org.joda.time.DateTimeZone getTimeZoneFromTZString(org.jruby.Ruby, java.lang.String);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/joda/time/DateTimeZone;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.Ruby.getTimezoneCache:()Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.joda.time.DateTimeZone
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
areturn
2: StackMap locals: org.joda.time.DateTimeZone
StackMap stack:
aload 0
aload 1
invokestatic org.jruby.RubyTime.parseTZString:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/joda/time/DateTimeZone;
astore 3
start local 3 3: aload 0
invokevirtual org.jruby.Ruby.getTimezoneCache:()Ljava/util/Map;
aload 1
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 runtime Lorg/jruby/Ruby;
0 5 1 zone Ljava/lang/String;
1 5 2 cachedZone Lorg/joda/time/DateTimeZone;
3 5 3 dtz Lorg/joda/time/DateTimeZone;
MethodParameters:
Name Flags
runtime
zone
private static org.joda.time.DateTimeZone parseTZString(org.jruby.Ruby, java.lang.String);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/joda/time/DateTimeZone;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=8, args_size=2
start local 0 start local 1 0: getstatic org.jruby.RubyTime.TZ_PATTERN:Ljava/util/regex/Pattern;
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 2
start local 2 1: aload 2
invokevirtual java.util.regex.Matcher.matches:()Z
ifeq 9
2: aload 2
iconst_1
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 3
start local 3 3: aload 2
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 4
start local 4 4: aload 2
iconst_3
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 5
start local 5 5: aload 2
iconst_4
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 6
start local 6 6: aload 2
iconst_5
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 7
start local 7 7: aload 3
ifnonnull 8
ldc ""
astore 3
8: StackMap locals: org.jruby.Ruby java.lang.String java.util.regex.Matcher java.lang.String java.lang.String java.lang.String java.lang.String java.lang.String
StackMap stack:
aload 0
aload 3
aload 4
ldc "-"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
aload 5
aload 6
aload 7
invokestatic org.jruby.RubyTime.getTimeZoneFromHHMM:(Lorg/jruby/Ruby;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/joda/time/DateTimeZone;
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 9: StackMap locals: org.jruby.Ruby java.lang.String java.util.regex.Matcher
StackMap stack:
aload 1
invokevirtual java.lang.String.length:()I
iconst_3
if_icmpne 21
10: aload 1
invokevirtual java.lang.String.toUpperCase:()Ljava/lang/String;
dup
astore 3
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 5
70702: 11
76220: 12
81318: 13
84356: 14
85830: 15
default: 21
}
StackMap locals: java.lang.String
StackMap stack:
11: aload 3
ldc "GMT"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 20
goto 21
StackMap locals:
StackMap stack:
12: aload 3
ldc "MET"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 16
goto 21
StackMap locals:
StackMap stack:
13: aload 3
ldc "ROC"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 17
goto 21
StackMap locals:
StackMap stack:
14: aload 3
ldc "UTC"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 19
goto 21
StackMap locals:
StackMap stack:
15: aload 3
ldc "WET"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 18
goto 21
16: StackMap locals:
StackMap stack:
ldc "CET"
astore 1
goto 21
17: StackMap locals:
StackMap stack:
ldc "Asia/Taipei"
astore 1
goto 21
18: StackMap locals:
StackMap stack:
ldc "Europe/Lisbon"
astore 1
goto 21
19: StackMap locals:
StackMap stack:
ldc "Etc/UTC"
astore 1
goto 21
20: StackMap locals:
StackMap stack:
ldc "Etc/GMT"
astore 1
21: StackMap locals:
StackMap stack:
aload 1
invokestatic org.joda.time.DateTimeZone.forID:(Ljava/lang/String;)Lorg/joda/time/DateTimeZone;
22: areturn
23: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
pop
24: aload 0
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
new java.lang.StringBuilder
dup
ldc "Unrecognized time zone: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.common.RubyWarnings.warning:(Ljava/lang/String;)V
25: getstatic org.joda.time.DateTimeZone.UTC:Lorg/joda/time/DateTimeZone;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 runtime Lorg/jruby/Ruby;
0 26 1 zone Ljava/lang/String;
1 26 2 tzMatcher Ljava/util/regex/Matcher;
3 9 3 zoneName Ljava/lang/String;
4 9 4 sign Ljava/lang/String;
5 9 5 hours Ljava/lang/String;
6 9 6 minutes Ljava/lang/String;
7 9 7 seconds Ljava/lang/String;
Exception table:
from to target type
21 22 23 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
runtime
zone
public static org.joda.time.DateTimeZone getTimeZoneFromString(org.jruby.Ruby, java.lang.String);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/joda/time/DateTimeZone;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.Ruby.getTimezoneCache:()Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.joda.time.DateTimeZone
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
areturn
3: StackMap locals: org.joda.time.DateTimeZone
StackMap stack:
aload 0
aload 1
invokestatic org.jruby.RubyTime.parseZoneString:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/joda/time/DateTimeZone;
astore 3
start local 3 4: aload 0
invokevirtual org.jruby.Ruby.getTimezoneCache:()Ljava/util/Map;
aload 1
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 runtime Lorg/jruby/Ruby;
0 6 1 zone Ljava/lang/String;
1 6 2 cachedZone Lorg/joda/time/DateTimeZone;
4 6 3 dtz Lorg/joda/time/DateTimeZone;
MethodParameters:
Name Flags
runtime
zone
private static org.joda.time.DateTimeZone parseZoneString(org.jruby.Ruby, java.lang.String);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/joda/time/DateTimeZone;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.jruby.RubyTime.parseTZString:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/joda/time/DateTimeZone;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runtime Lorg/jruby/Ruby;
0 1 1 zone Ljava/lang/String;
MethodParameters:
Name Flags
runtime
zone
public static org.joda.time.DateTimeZone getTimeZoneFromUtcOffset(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/joda/time/DateTimeZone;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=11, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 1
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 3
start local 3 2: aload 2
invokevirtual org.jruby.Ruby.getTimezoneCache:()Ljava/util/Map;
aload 3
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.joda.time.DateTimeZone
astore 4
start local 4 3: aload 4
ifnull 4
aload 4
areturn
4: StackMap locals: org.jruby.Ruby java.lang.String org.joda.time.DateTimeZone
StackMap stack:
aload 1
instanceof org.jruby.RubyString
ifeq 16
5: getstatic org.jruby.RubyTime.TIME_OFFSET_PATTERN:Ljava/util/regex/Pattern;
aload 3
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 6
start local 6 6: aload 6
invokevirtual java.util.regex.Matcher.matches:()Z
ifne 8
7: aload 2
ldc "\"+HH:MM\" or \"-HH:MM\" expected for utc_offset"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
8: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby java.lang.String org.joda.time.DateTimeZone top java.util.regex.Matcher
StackMap stack:
aload 6
iconst_1
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 7
start local 7 9: aload 6
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 8
start local 8 10: aload 6
iconst_3
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 9
start local 9 11: aload 6
iconst_4
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 10
start local 10 12: aload 2
ldc ""
aload 7
ldc "-"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 13
iconst_0
goto 14
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby java.lang.String org.joda.time.DateTimeZone top java.util.regex.Matcher java.lang.String java.lang.String java.lang.String java.lang.String
StackMap stack: org.jruby.Ruby java.lang.String
13: iconst_1
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby java.lang.String org.joda.time.DateTimeZone top java.util.regex.Matcher java.lang.String java.lang.String java.lang.String java.lang.String
StackMap stack: org.jruby.Ruby java.lang.String int
14: aload 8
aload 9
aload 10
invokestatic org.jruby.RubyTime.getTimeZoneFromHHMM:(Lorg/jruby/Ruby;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/joda/time/DateTimeZone;
astore 5
end local 10 end local 9 end local 8 end local 7 end local 6 start local 5 15: goto 19
end local 5 16: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby java.lang.String org.joda.time.DateTimeZone
StackMap stack:
aload 0
aload 1
invokestatic org.jruby.RubyTime.numExact:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyNumeric;
astore 6
start local 6 17: aload 6
invokevirtual org.jruby.RubyNumeric.convertToFloat:()Lorg/jruby/RubyFloat;
getfield org.jruby.RubyFloat.value:D
ldc 1000.0
dmul
invokestatic java.lang.Math.round:(D)J
l2i
istore 7
start local 7 18: aload 2
ldc ""
iload 7
invokestatic org.jruby.RubyTime.getTimeZoneWithOffset:(Lorg/jruby/Ruby;Ljava/lang/String;I)Lorg/joda/time/DateTimeZone;
astore 5
end local 7 end local 6 start local 5 19: StackMap locals: org.joda.time.DateTimeZone
StackMap stack:
aload 2
invokevirtual org.jruby.Ruby.getTimezoneCache:()Ljava/util/Map;
aload 3
aload 5
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
20: aload 5
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 context Lorg/jruby/runtime/ThreadContext;
0 21 1 utcOffset Lorg/jruby/runtime/builtin/IRubyObject;
1 21 2 runtime Lorg/jruby/Ruby;
2 21 3 strOffset Ljava/lang/String;
3 21 4 cachedZone Lorg/joda/time/DateTimeZone;
15 16 5 dtz Lorg/joda/time/DateTimeZone;
19 21 5 dtz Lorg/joda/time/DateTimeZone;
6 15 6 offsetMatcher Ljava/util/regex/Matcher;
9 15 7 sign Ljava/lang/String;
10 15 8 hours Ljava/lang/String;
11 15 9 minutes Ljava/lang/String;
12 15 10 seconds Ljava/lang/String;
17 19 6 numericOffset Lorg/jruby/RubyNumeric;
18 19 7 newOffset I
MethodParameters:
Name Flags
context
utcOffset
private static org.jruby.RubyNumeric numExact(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyNumeric;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: invokestatic org.jruby.RubyTime.$SWITCH_TABLE$org$jruby$runtime$ClassIndex:()[I
aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getClassIndex:()Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
iaload
lookupswitch { // 4
5: 5
6: 2
17: 3
22: 4
default: 6
}
2: StackMap locals: int
StackMap stack:
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "can't convert nil into an exact number"
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
3: StackMap locals:
StackMap stack:
aload 1
checkcast org.jruby.RubyInteger
areturn
4: StackMap locals:
StackMap stack:
goto 15
5: StackMap locals:
StackMap stack:
iconst_1
istore 2
goto 15
6: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.getMetaClass:()Lorg/jruby/RubyClass;
aload 0
aload 1
aload 0
invokestatic org.jruby.RubyTime.sites:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/JavaSites$TimeSites;
getfield org.jruby.runtime.JavaSites$TimeSites.checked_to_r:Lorg/jruby/runtime/JavaSites$CheckedSites;
invokevirtual org.jruby.RubyClass.finvokeChecked:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/JavaSites$CheckedSites;)Lorg/jruby/runtime/builtin/IRubyObject;
dup
astore 3
start local 3 7: ifnull 11
8: aload 0
invokestatic org.jruby.RubyTime.sites:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/JavaSites$TimeSites;
getfield org.jruby.runtime.JavaSites$TimeSites.respond_to_to_int:Lorg/jruby/runtime/callsite/RespondToCallSite;
aload 0
aload 1
aload 1
invokevirtual org.jruby.runtime.callsite.RespondToCallSite.respondsTo:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Z
ifne 10
9: iconst_1
istore 2
goto 15
10: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 3
astore 1
goto 15
11: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic org.jruby.util.TypeConverter.checkIntegerType:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
dup
astore 3
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 14
12: aload 3
astore 1
13: goto 15
14: StackMap locals:
StackMap stack:
iconst_1
istore 2
end local 3 15: StackMap locals:
StackMap stack:
invokestatic org.jruby.RubyTime.$SWITCH_TABLE$org$jruby$runtime$ClassIndex:()[I
aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getClassIndex:()Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
iaload
lookupswitch { // 2
17: 16
22: 17
default: 19
}
16: StackMap locals:
StackMap stack:
aload 1
checkcast org.jruby.RubyInteger
areturn
17: StackMap locals:
StackMap stack:
aload 1
checkcast org.jruby.RubyRational
invokevirtual org.jruby.RubyRational.getDenominator:()Lorg/jruby/RubyInteger;
invokevirtual org.jruby.RubyInteger.isOne:()Z
ifeq 20
18: aload 1
checkcast org.jruby.RubyRational
invokevirtual org.jruby.RubyRational.getNumerator:()Lorg/jruby/RubyInteger;
areturn
19: StackMap locals:
StackMap stack:
iconst_1
istore 2
20: StackMap locals:
StackMap stack:
iload 2
ifeq 23
21: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 22: aload 3
aload 3
ldc "can't convert "
aload 3
aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.getMetaClass:()Lorg/jruby/RubyClass;
invokestatic org.jruby.util.RubyStringBuilder.types:(Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)Lorg/jruby/RubyString;
ldc " into an exact number"
invokestatic org.jruby.util.RubyStringBuilder.str:(Lorg/jruby/Ruby;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;)Ljava/lang/String;
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 3 23: StackMap locals:
StackMap stack:
aload 1
checkcast org.jruby.RubyNumeric
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 context Lorg/jruby/runtime/ThreadContext;
0 24 1 v Lorg/jruby/runtime/builtin/IRubyObject;
1 24 2 typeError Z
7 15 3 tmp Lorg/jruby/runtime/builtin/IRubyObject;
22 23 3 runtime Lorg/jruby/Ruby;
MethodParameters:
Name Flags
context
v
private static org.joda.time.DateTimeZone getTimeZoneFromHHMM(org.jruby.Ruby, java.lang.String, boolean, java.lang.String, java.lang.String, java.lang.String);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/joda/time/DateTimeZone;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=10, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 3
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 6
start local 6 1: iconst_0
istore 7
start local 7 2: iconst_0
istore 8
start local 8 3: aload 4
ifnull 5
4: aload 4
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 7
5: StackMap locals: int int int
StackMap stack:
aload 5
ifnull 7
6: aload 5
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 8
7: StackMap locals:
StackMap stack:
iload 6
bipush 23
if_icmpgt 8
iload 7
bipush 59
if_icmple 9
8: StackMap locals:
StackMap stack:
aload 0
ldc "utc_offset out of range"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
9: StackMap locals:
StackMap stack:
iload 2
ifeq 10
iconst_1
goto 11
StackMap locals:
StackMap stack:
10: iconst_m1
StackMap locals:
StackMap stack: int
11: iload 6
sipush 3600
imul
iload 7
bipush 60
imul
iadd
iload 8
iadd
imul
sipush 1000
imul
istore 9
start local 9 12: aload 1
iload 9
invokestatic org.jruby.RubyTime.timeZoneWithOffset:(Ljava/lang/String;I)Lorg/joda/time/DateTimeZone;
areturn
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 runtime Lorg/jruby/Ruby;
0 13 1 name Ljava/lang/String;
0 13 2 positive Z
0 13 3 hours Ljava/lang/String;
0 13 4 minutes Ljava/lang/String;
0 13 5 seconds Ljava/lang/String;
1 13 6 h I
2 13 7 m I
3 13 8 s I
12 13 9 offset I
MethodParameters:
Name Flags
runtime
name
positive
hours
minutes
seconds
public static org.joda.time.DateTimeZone getTimeZone(org.jruby.Ruby, long);
descriptor: (Lorg/jruby/Ruby;J)Lorg/joda/time/DateTimeZone;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: lload 1
ldc 86400
lcmp
ifge 1
lload 1
ldc -86400
lcmp
ifgt 2
1: StackMap locals:
StackMap stack:
aload 0
ldc "utc_offset out of range"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals:
StackMap stack:
aload 0
ldc ""
lload 1
ldc 1000
lmul
l2i
invokestatic org.jruby.RubyTime.getTimeZoneWithOffset:(Lorg/jruby/Ruby;Ljava/lang/String;I)Lorg/joda/time/DateTimeZone;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 runtime Lorg/jruby/Ruby;
0 3 1 seconds J
MethodParameters:
Name Flags
runtime
seconds
public static org.joda.time.DateTimeZone getTimeZoneWithOffset(org.jruby.Ruby, java.lang.String, int);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;I)Lorg/joda/time/DateTimeZone;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 1
1: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 2: aload 0
invokevirtual org.jruby.Ruby.getTimezoneCache:()Ljava/util/Map;
aload 3
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.joda.time.DateTimeZone
astore 4
start local 4 3: aload 4
ifnull 5
4: aload 4
areturn
5: StackMap locals: java.lang.String org.joda.time.DateTimeZone
StackMap stack:
aload 1
iload 2
invokestatic org.jruby.RubyTime.timeZoneWithOffset:(Ljava/lang/String;I)Lorg/joda/time/DateTimeZone;
astore 5
start local 5 6: aload 0
invokevirtual org.jruby.Ruby.getTimezoneCache:()Ljava/util/Map;
aload 3
aload 5
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: aload 5
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 runtime Lorg/jruby/Ruby;
0 8 1 zoneName Ljava/lang/String;
0 8 2 offset I
2 8 3 zone Ljava/lang/String;
3 8 4 cachedZone Lorg/joda/time/DateTimeZone;
6 8 5 dtz Lorg/joda/time/DateTimeZone;
MethodParameters:
Name Flags
runtime
zoneName
offset
private static org.joda.time.DateTimeZone timeZoneWithOffset(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Lorg/joda/time/DateTimeZone;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifeq 2
1: iload 1
invokestatic org.joda.time.DateTimeZone.forOffsetMillis:(I)Lorg/joda/time/DateTimeZone;
areturn
2: StackMap locals:
StackMap stack:
new org.joda.time.tz.FixedDateTimeZone
dup
aload 0
aconst_null
iload 1
iload 1
invokespecial org.joda.time.tz.FixedDateTimeZone.<init>:(Ljava/lang/String;Ljava/lang/String;II)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 zoneName Ljava/lang/String;
0 3 1 offset I
MethodParameters:
Name Flags
zoneName
offset
public void <init>(org.jruby.Ruby, org.jruby.RubyClass);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.jruby.RubyObject.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
1: aload 0
iconst_0
putfield org.jruby.RubyTime.isTzRelative:Z
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyTime;
0 3 1 runtime Lorg/jruby/Ruby;
0 3 2 rubyClass Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
rubyClass
public void <init>(org.jruby.Ruby, org.jruby.RubyClass, org.joda.time.DateTime);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/joda/time/DateTime;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
invokespecial org.jruby.RubyObject.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
1: aload 0
iconst_0
putfield org.jruby.RubyTime.isTzRelative:Z
2: aload 0
aload 3
putfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/RubyTime;
0 4 1 runtime Lorg/jruby/Ruby;
0 4 2 rubyClass Lorg/jruby/RubyClass;
0 4 3 dt Lorg/joda/time/DateTime;
MethodParameters:
Name Flags
runtime
rubyClass
dt
public void <init>(org.jruby.Ruby, org.jruby.RubyClass, org.joda.time.DateTime, boolean);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/joda/time/DateTime;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
invokespecial org.jruby.RubyObject.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
1: aload 0
iconst_0
putfield org.jruby.RubyTime.isTzRelative:Z
2: aload 0
aload 3
putfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
3: aload 0
iload 4
invokevirtual org.jruby.RubyTime.setIsTzRelative:(Z)V
4: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/RubyTime;
0 5 1 runtime Lorg/jruby/Ruby;
0 5 2 rubyClass Lorg/jruby/RubyClass;
0 5 3 dt Lorg/joda/time/DateTime;
0 5 4 tzRelative Z
MethodParameters:
Name Flags
runtime
rubyClass
dt
tzRelative
public static org.jruby.RubyClass createTimeClass(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Lorg/jruby/RubyClass;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
ldc "Time"
aload 0
invokevirtual org.jruby.Ruby.getObject:()Lorg/jruby/RubyClass;
getstatic org.jruby.RubyTime.TIME_ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
invokevirtual org.jruby.Ruby.defineClass:(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;)Lorg/jruby/RubyClass;
astore 1
start local 1 1: aload 1
getstatic org.jruby.runtime.ClassIndex.TIME:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.RubyClass.setClassIndex:(Lorg/jruby/runtime/ClassIndex;)V
2: aload 1
ldc Lorg/jruby/RubyTime;
invokevirtual org.jruby.RubyClass.setReifiedClass:(Ljava/lang/Class;)V
3: aload 0
aload 1
invokevirtual org.jruby.Ruby.setTime:(Lorg/jruby/RubyClass;)V
4: aload 1
aload 0
invokevirtual org.jruby.Ruby.getComparable:()Lorg/jruby/RubyModule;
invokevirtual org.jruby.RubyClass.includeModule:(Lorg/jruby/runtime/builtin/IRubyObject;)V
5: aload 1
ldc Lorg/jruby/RubyTime;
invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 runtime Lorg/jruby/Ruby;
1 7 1 timeClass Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
public void setNSec(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
putfield org.jruby.RubyTime.nsec:J
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyTime;
0 2 1 nsec J
MethodParameters:
Name Flags
nsec
public long getNSec();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.nsec:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public void setUSec(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ldc 1000
lload 1
lmul
putfield org.jruby.RubyTime.nsec:J
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyTime;
0 2 1 usec J
MethodParameters:
Name Flags
usec
public long getUSec();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.nsec:J
ldc 1000
ldiv
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public void updateCal(org.joda.time.DateTime);
descriptor: (Lorg/joda/time/DateTime;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyTime;
0 2 1 dt Lorg/joda/time/DateTime;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
dt
public static org.jruby.RubyTime newTime(org.jruby.Ruby, long);
descriptor: (Lorg/jruby/Ruby;J)Lorg/jruby/RubyTime;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
new org.joda.time.DateTime
dup
lload 1
invokespecial org.joda.time.DateTime.<init>:(J)V
invokestatic org.jruby.RubyTime.newTime:(Lorg/jruby/Ruby;Lorg/joda/time/DateTime;)Lorg/jruby/RubyTime;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runtime Lorg/jruby/Ruby;
0 1 1 milliseconds J
MethodParameters:
Name Flags
runtime
milliseconds
public static org.jruby.RubyTime newTimeFromNanoseconds(org.jruby.Ruby, long);
descriptor: (Lorg/jruby/Ruby;J)Lorg/jruby/RubyTime;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: lload 1
ldc 1000000
ldiv
lstore 3
start local 3 1: lload 1
ldc 1000000
lrem
lstore 5
start local 5 2: aload 0
new org.joda.time.DateTime
dup
lload 3
invokespecial org.joda.time.DateTime.<init>:(J)V
lload 5
invokestatic org.jruby.RubyTime.newTime:(Lorg/jruby/Ruby;Lorg/joda/time/DateTime;J)Lorg/jruby/RubyTime;
areturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 runtime Lorg/jruby/Ruby;
0 3 1 nanoseconds J
1 3 3 milliseconds J
2 3 5 extraNanoseconds J
MethodParameters:
Name Flags
runtime
nanoseconds
public static org.jruby.RubyTime newTime(org.jruby.Ruby, org.joda.time.DateTime);
descriptor: (Lorg/jruby/Ruby;Lorg/joda/time/DateTime;)Lorg/jruby/RubyTime;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: new org.jruby.RubyTime
dup
aload 0
aload 0
invokevirtual org.jruby.Ruby.getTime:()Lorg/jruby/RubyClass;
aload 1
invokespecial org.jruby.RubyTime.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/joda/time/DateTime;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runtime Lorg/jruby/Ruby;
0 1 1 dt Lorg/joda/time/DateTime;
MethodParameters:
Name Flags
runtime
dt
public static org.jruby.RubyTime newTime(org.jruby.Ruby, org.joda.time.DateTime, long);
descriptor: (Lorg/jruby/Ruby;Lorg/joda/time/DateTime;J)Lorg/jruby/RubyTime;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new org.jruby.RubyTime
dup
aload 0
aload 0
invokevirtual org.jruby.Ruby.getTime:()Lorg/jruby/RubyClass;
aload 1
invokespecial org.jruby.RubyTime.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/joda/time/DateTime;)V
astore 4
start local 4 1: aload 4
lload 2
invokevirtual org.jruby.RubyTime.setNSec:(J)V
2: aload 4
areturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 runtime Lorg/jruby/Ruby;
0 3 1 dt Lorg/joda/time/DateTime;
0 3 2 nsec J
1 3 4 t Lorg/jruby/RubyTime;
MethodParameters:
Name Flags
runtime
dt
nsec
public org.jruby.runtime.builtin.IRubyObject initialize_copy(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.jruby.RubyTime
ifne 2
1: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
ldc "Expecting an instance of class Time"
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals:
StackMap stack:
aload 1
checkcast org.jruby.RubyTime
astore 2
start local 2 3: aload 0
aload 2
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
putfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
4: aload 0
aload 2
getfield org.jruby.RubyTime.nsec:J
putfield org.jruby.RubyTime.nsec:J
5: aload 0
aload 2
getfield org.jruby.RubyTime.isTzRelative:Z
putfield org.jruby.RubyTime.isTzRelative:Z
6: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/RubyTime;
0 7 1 original Lorg/jruby/runtime/builtin/IRubyObject;
3 7 2 originalTime Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(required = 1, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
original
public org.jruby.RubyTime succ();
descriptor: ()Lorg/jruby/RubyTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
iconst_1
invokevirtual org.joda.time.DateTime.plusSeconds:(I)Lorg/joda/time/DateTime;
invokestatic org.jruby.RubyTime.newTime:(Lorg/jruby/Ruby;Lorg/joda/time/DateTime;)Lorg/jruby/RubyTime;
astore 1
start local 1 1: aload 1
aload 0
getfield org.jruby.RubyTime.isTzRelative:Z
invokevirtual org.jruby.RubyTime.setIsTzRelative:(Z)V
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyTime;
1 3 1 time Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
public org.jruby.RubyTime gmtime();
descriptor: ()Lorg/jruby/RubyTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
getstatic org.joda.time.DateTimeZone.UTC:Lorg/joda/time/DateTimeZone;
iconst_0
invokevirtual org.jruby.RubyTime.adjustTimeZone:(Lorg/jruby/Ruby;Lorg/joda/time/DateTimeZone;Z)Lorg/jruby/RubyTime;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"gmtime", "utc"})
public final org.jruby.RubyTime localtime();
descriptor: ()Lorg/jruby/RubyTime;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.jruby.RubyTime.metaClass:Lorg/jruby/RubyClass;
getfield org.jruby.RubyClass.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
invokevirtual org.jruby.RubyTime.localtime:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyTime;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public org.jruby.RubyTime localtime(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokestatic org.jruby.RubyTime.getLocalTimeZone:(Lorg/jruby/Ruby;)Lorg/joda/time/DateTimeZone;
iconst_0
invokevirtual org.jruby.RubyTime.adjustTimeZone:(Lorg/jruby/Ruby;Lorg/joda/time/DateTimeZone;Z)Lorg/jruby/RubyTime;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"localtime"})
MethodParameters:
Name Flags
context
public org.jruby.RubyTime localtime(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokestatic org.jruby.RubyTime.getTimeZoneFromUtcOffset:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/joda/time/DateTimeZone;
astore 3
start local 3 1: aload 0
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 3
iconst_1
invokevirtual org.jruby.RubyTime.adjustTimeZone:(Lorg/jruby/Ruby;Lorg/joda/time/DateTimeZone;Z)Lorg/jruby/RubyTime;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyTime;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
1 2 3 zone Lorg/joda/time/DateTimeZone;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"localtime"})
MethodParameters:
Name Flags
context
arg
private org.jruby.RubyTime adjustTimeZone(org.jruby.Ruby, org.joda.time.DateTimeZone, boolean);
descriptor: (Lorg/jruby/Ruby;Lorg/joda/time/DateTimeZone;Z)Lorg/jruby/RubyTime;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getZone:()Lorg/joda/time/DateTimeZone;
invokevirtual org.joda.time.DateTimeZone.equals:(Ljava/lang/Object;)Z
istore 4
start local 4 1: iload 4
ifeq 2
iload 3
aload 0
getfield org.jruby.RubyTime.isTzRelative:Z
if_icmpne 2
aload 0
areturn
2: StackMap locals: int
StackMap stack:
aload 0
invokevirtual org.jruby.RubyTime.isFrozen:()Z
ifeq 4
3: aload 1
ldc "Time"
iconst_1
invokevirtual org.jruby.Ruby.newFrozenError:(Ljava/lang/String;Z)Lorg/jruby/exceptions/RaiseException;
athrow
4: StackMap locals:
StackMap stack:
iload 4
ifne 5
aload 0
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
aload 2
invokevirtual org.joda.time.DateTime.withZone:(Lorg/joda/time/DateTimeZone;)Lorg/joda/time/DateTime;
putfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
5: StackMap locals:
StackMap stack:
aload 0
iload 3
invokevirtual org.jruby.RubyTime.setIsTzRelative:(Z)V
6: aload 0
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/RubyTime;
0 7 1 runtime Lorg/jruby/Ruby;
0 7 2 zone Lorg/joda/time/DateTimeZone;
0 7 3 isTzRelative Z
1 7 4 zoneOk Z
MethodParameters:
Name Flags
runtime
zone final
isTzRelative
public final org.jruby.RubyTime localtime19(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyTime;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
arraylength
tableswitch { // 0 - 1
0: 1
1: 2
default: 3
}
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.jruby.RubyTime.localtime:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyTime;
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
aaload
invokevirtual org.jruby.RubyTime.localtime:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyTime;
areturn
3: StackMap locals:
StackMap stack:
new java.lang.AssertionError
dup
aload 2
invokestatic java.util.Arrays.toString:([Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/RubyTime;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
0 4 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
args
public org.jruby.RubyBoolean gmt();
descriptor: ()Lorg/jruby/RubyBoolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.metaClass:Lorg/jruby/RubyClass;
getfield org.jruby.RubyClass.runtime:Lorg/jruby/Ruby;
aload 0
invokevirtual org.jruby.RubyTime.isUTC:()Z
invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"gmt?", "utc?", "gmtime?"})
public boolean isUTC();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.isTzRelative:Z
ifne 1
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getZone:()Lorg/joda/time/DateTimeZone;
invokevirtual org.joda.time.DateTimeZone.getID:()Ljava/lang/String;
ldc "UTC"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyTime;
public org.jruby.RubyTime getgm();
descriptor: ()Lorg/jruby/RubyTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.metaClass:Lorg/jruby/RubyClass;
getfield org.jruby.RubyClass.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
getstatic org.joda.time.DateTimeZone.UTC:Lorg/joda/time/DateTimeZone;
invokevirtual org.joda.time.DateTime.withZone:(Lorg/joda/time/DateTimeZone;)Lorg/joda/time/DateTime;
aload 0
getfield org.jruby.RubyTime.nsec:J
invokestatic org.jruby.RubyTime.newTime:(Lorg/jruby/Ruby;Lorg/joda/time/DateTime;J)Lorg/jruby/RubyTime;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"getgm", "getutc"})
public final org.jruby.RubyTime getlocal();
descriptor: ()Lorg/jruby/RubyTime;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.jruby.RubyTime.metaClass:Lorg/jruby/RubyClass;
getfield org.jruby.RubyClass.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
invokevirtual org.jruby.RubyTime.getlocal:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyTime;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public org.jruby.RubyTime getlocal(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokestatic org.jruby.RubyTime.getLocalTimeZone:(Lorg/jruby/Ruby;)Lorg/joda/time/DateTimeZone;
invokevirtual org.joda.time.DateTime.withZone:(Lorg/joda/time/DateTimeZone;)Lorg/joda/time/DateTime;
aload 0
getfield org.jruby.RubyTime.nsec:J
invokestatic org.jruby.RubyTime.newTime:(Lorg/jruby/Ruby;Lorg/joda/time/DateTime;J)Lorg/jruby/RubyTime;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"getlocal"})
MethodParameters:
Name Flags
context
public org.jruby.RubyTime getlocal(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpne 2
1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokestatic org.jruby.RubyTime.getLocalTimeZone:(Lorg/jruby/Ruby;)Lorg/joda/time/DateTimeZone;
invokevirtual org.joda.time.DateTime.withZone:(Lorg/joda/time/DateTimeZone;)Lorg/joda/time/DateTime;
aload 0
getfield org.jruby.RubyTime.nsec:J
invokestatic org.jruby.RubyTime.newTime:(Lorg/jruby/Ruby;Lorg/joda/time/DateTime;J)Lorg/jruby/RubyTime;
areturn
2: StackMap locals:
StackMap stack:
aload 1
aload 2
invokestatic org.jruby.RubyTime.getTimeZoneFromUtcOffset:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/joda/time/DateTimeZone;
astore 3
start local 3 3: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
aload 3
invokevirtual org.joda.time.DateTime.withZone:(Lorg/joda/time/DateTimeZone;)Lorg/joda/time/DateTime;
aload 0
getfield org.jruby.RubyTime.nsec:J
invokestatic org.jruby.RubyTime.newTime:(Lorg/jruby/Ruby;Lorg/joda/time/DateTime;J)Lorg/jruby/RubyTime;
astore 4
start local 4 4: aload 4
iconst_1
invokevirtual org.jruby.RubyTime.setIsTzRelative:(Z)V
5: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/RubyTime;
0 6 1 context Lorg/jruby/runtime/ThreadContext;
0 6 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
3 6 3 dtz Lorg/joda/time/DateTimeZone;
4 6 4 time Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"getlocal"})
MethodParameters:
Name Flags
context
arg
public org.jruby.RubyTime getlocal19(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
arraylength
tableswitch { // 0 - 1
0: 1
1: 2
default: 3
}
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.jruby.RubyTime.getlocal:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyTime;
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
aaload
invokevirtual org.jruby.RubyTime.getlocal:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyTime;
areturn
3: StackMap locals:
StackMap stack:
new java.lang.AssertionError
dup
aload 2
invokestatic java.util.Arrays.toString:([Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/RubyTime;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
0 4 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
args
public org.jruby.RubyString strftime(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 1
invokevirtual org.jruby.RubyTime.strftime:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
0 1 1 format Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
format
public org.jruby.RubyString strftime(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual org.jruby.runtime.ThreadContext.getRubyDateFormatter:()Lorg/jruby/util/RubyDateFormatter;
astore 3
start local 3 1: aload 3
aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
iconst_0
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
aload 0
getfield org.jruby.RubyTime.nsec:J
aconst_null
invokevirtual org.jruby.util.RubyDateFormatter.compileAndFormat:(Lorg/jruby/RubyString;ZLorg/joda/time/DateTime;JLorg/jruby/RubyNumeric;)Lorg/jruby/RubyString;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyTime;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 format Lorg/jruby/runtime/builtin/IRubyObject;
1 2 3 rdf Lorg/jruby/util/RubyDateFormatter;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(required = 1)
MethodParameters:
Name Flags
context
format
public org.jruby.runtime.builtin.IRubyObject op_equal(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof org.jruby.RubyTime
ifeq 4
1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
aload 2
checkcast org.jruby.RubyTime
invokevirtual org.jruby.RubyTime.cmp:(Lorg/jruby/RubyTime;)I
ifne 2
iconst_1
goto 3
StackMap locals:
StackMap stack: org.jruby.Ruby
2: iconst_0
StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject
StackMap stack: org.jruby.Ruby int
3: invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
4: StackMap locals:
StackMap stack:
aload 2
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpne 6
5: aload 1
getfield org.jruby.runtime.ThreadContext.fals:Lorg/jruby/RubyBoolean;
areturn
6: StackMap locals:
StackMap stack:
aload 1
aload 0
aload 2
invokestatic org.jruby.RubyComparable.op_equal:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/RubyTime;
0 7 1 context Lorg/jruby/runtime/ThreadContext;
0 7 2 other Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"=="}, required = 1)
MethodParameters:
Name Flags
context
other
public org.jruby.runtime.builtin.IRubyObject op_ge(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof org.jruby.RubyTime
ifeq 4
1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
aload 2
checkcast org.jruby.RubyTime
invokevirtual org.jruby.RubyTime.cmp:(Lorg/jruby/RubyTime;)I
iflt 2
iconst_1
goto 3
StackMap locals:
StackMap stack: org.jruby.Ruby
2: iconst_0
StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject
StackMap stack: org.jruby.Ruby int
3: invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
4: StackMap locals:
StackMap stack:
aload 1
aload 0
aload 2
invokestatic org.jruby.RubyComparable.op_ge:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyBoolean;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/RubyTime;
0 5 1 context Lorg/jruby/runtime/ThreadContext;
0 5 2 other Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {">="}, required = 1)
MethodParameters:
Name Flags
context
other
public org.jruby.runtime.builtin.IRubyObject op_gt(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof org.jruby.RubyTime
ifeq 4
1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
aload 2
checkcast org.jruby.RubyTime
invokevirtual org.jruby.RubyTime.cmp:(Lorg/jruby/RubyTime;)I
ifle 2
iconst_1
goto 3
StackMap locals:
StackMap stack: org.jruby.Ruby
2: iconst_0
StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject
StackMap stack: org.jruby.Ruby int
3: invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
4: StackMap locals:
StackMap stack:
aload 1
aload 0
aload 2
invokestatic org.jruby.RubyComparable.op_gt:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyBoolean;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/RubyTime;
0 5 1 context Lorg/jruby/runtime/ThreadContext;
0 5 2 other Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {">"}, required = 1)
MethodParameters:
Name Flags
context
other
public org.jruby.runtime.builtin.IRubyObject op_le(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof org.jruby.RubyTime
ifeq 4
1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
aload 2
checkcast org.jruby.RubyTime
invokevirtual org.jruby.RubyTime.cmp:(Lorg/jruby/RubyTime;)I
ifgt 2
iconst_1
goto 3
StackMap locals:
StackMap stack: org.jruby.Ruby
2: iconst_0
StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject
StackMap stack: org.jruby.Ruby int
3: invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
4: StackMap locals:
StackMap stack:
aload 1
aload 0
aload 2
invokestatic org.jruby.RubyComparable.op_le:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyBoolean;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/RubyTime;
0 5 1 context Lorg/jruby/runtime/ThreadContext;
0 5 2 other Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"<="}, required = 1)
MethodParameters:
Name Flags
context
other
public org.jruby.runtime.builtin.IRubyObject op_lt(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof org.jruby.RubyTime
ifeq 4
1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
aload 2
checkcast org.jruby.RubyTime
invokevirtual org.jruby.RubyTime.cmp:(Lorg/jruby/RubyTime;)I
ifge 2
iconst_1
goto 3
StackMap locals:
StackMap stack: org.jruby.Ruby
2: iconst_0
StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject
StackMap stack: org.jruby.Ruby int
3: invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
4: StackMap locals:
StackMap stack:
aload 1
aload 0
aload 2
invokestatic org.jruby.RubyComparable.op_lt:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyBoolean;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/RubyTime;
0 5 1 context Lorg/jruby/runtime/ThreadContext;
0 5 2 other Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"<"}, required = 1)
MethodParameters:
Name Flags
context
other
private int cmp(org.jruby.RubyTime);
descriptor: (Lorg/jruby/RubyTime;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=10, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.RubyTime.getTimeInMillis:()J
lstore 2
start local 2 1: aload 1
invokevirtual org.jruby.RubyTime.getTimeInMillis:()J
lstore 4
start local 4 2: aload 0
getfield org.jruby.RubyTime.nsec:J
lstore 6
start local 6 3: aload 1
getfield org.jruby.RubyTime.nsec:J
lstore 8
start local 8 4: lload 2
lload 4
lcmp
ifgt 5
lload 2
lload 4
lcmp
ifne 6
lload 6
lload 8
lcmp
ifle 6
5: StackMap locals: org.jruby.RubyTime org.jruby.RubyTime long long long long
StackMap stack:
iconst_1
ireturn
6: StackMap locals:
StackMap stack:
lload 2
lload 4
lcmp
iflt 7
lload 2
lload 4
lcmp
ifne 8
lload 6
lload 8
lcmp
ifge 8
7: StackMap locals:
StackMap stack:
iconst_m1
ireturn
8: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 8 end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/jruby/RubyTime;
0 9 1 other Lorg/jruby/RubyTime;
1 9 2 millis J
2 9 4 millis_other J
3 9 6 nsec J
4 9 8 nsec_other J
MethodParameters:
Name Flags
other
public org.jruby.runtime.builtin.IRubyObject op_plus(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 1
invokevirtual org.jruby.RubyTime.op_plus:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
0 1 1 other Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
other
public org.jruby.runtime.builtin.IRubyObject op_plus(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof org.jruby.RubyTime
ifeq 2
1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "time + time?"
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals:
StackMap stack:
aload 1
aload 1
aload 2
invokestatic org.jruby.RubyTime.numExact:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyNumeric;
invokestatic org.jruby.RubyNumeric.num2dbl:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)D
ldc 1000.0
dmul
dstore 3
start local 3 3: aload 0
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
dload 3
invokevirtual org.jruby.RubyTime.opPlusMillis:(Lorg/jruby/Ruby;D)Lorg/jruby/RubyTime;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/RubyTime;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
0 4 2 other Lorg/jruby/runtime/builtin/IRubyObject;
3 4 3 adjustMillis D
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"+"}, required = 1)
MethodParameters:
Name Flags
context
other
public org.jruby.runtime.builtin.IRubyObject op_plus19(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual org.jruby.RubyTime.op_plus:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 other Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
other
private org.jruby.RubyTime opPlusMillis(org.jruby.Ruby, double);
descriptor: (Lorg/jruby/Ruby;D)Lorg/jruby/RubyTime;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=13, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.RubyTime.getTimeInMillis:()J
lstore 4
start local 4 1: lload 4
dload 2
d2l
ladd
lstore 6
start local 6 2: dload 2
dload 2
invokestatic java.lang.Math.floor:(D)D
dsub
ldc 1000000.0
dmul
d2l
lstore 8
start local 8 3: aload 0
getfield org.jruby.RubyTime.nsec:J
lload 8
ladd
lstore 10
start local 10 4: lload 10
ldc 1000000
lcmp
iflt 7
5: lload 10
ldc 1000000
lsub
lstore 10
6: lload 6
lconst_1
ladd
lstore 6
7: StackMap locals: org.jruby.RubyTime org.jruby.Ruby double long long long long
StackMap stack:
new org.jruby.RubyTime
dup
aload 1
aload 0
invokevirtual org.jruby.RubyTime.getMetaClass:()Lorg/jruby/RubyClass;
invokespecial org.jruby.RubyTime.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
astore 12
start local 12 8: aload 12
new org.joda.time.DateTime
dup
lload 6
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getZone:()Lorg/joda/time/DateTimeZone;
invokespecial org.joda.time.DateTime.<init>:(JLorg/joda/time/DateTimeZone;)V
putfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
9: aload 12
lload 10
invokevirtual org.jruby.RubyTime.setNSec:(J)V
10: aload 12
aload 0
getfield org.jruby.RubyTime.isTzRelative:Z
invokevirtual org.jruby.RubyTime.setIsTzRelative:(Z)V
11: aload 12
areturn
end local 12 end local 10 end local 8 end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/jruby/RubyTime;
0 12 1 runtime Lorg/jruby/Ruby;
0 12 2 adjustMillis D
1 12 4 currentMillis J
2 12 6 newMillisPart J
3 12 8 adjustNanos J
4 12 10 newNanosPart J
8 12 12 newTime Lorg/jruby/RubyTime;
MethodParameters:
Name Flags
runtime final
adjustMillis
private org.jruby.RubyFloat opMinus(org.jruby.Ruby, org.jruby.RubyTime);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyTime;)Lorg/jruby/RubyFloat;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.RubyTime.getTimeInMillis:()J
aload 2
invokevirtual org.jruby.RubyTime.getTimeInMillis:()J
lsub
lstore 3
start local 3 1: lload 3
l2d
ldc 1000.0
ddiv
aload 0
invokevirtual org.jruby.RubyTime.getNSec:()J
aload 2
invokevirtual org.jruby.RubyTime.getNSec:()J
lsub
l2d
ldc 1.0E9
ddiv
dadd
dstore 5
start local 5 2: aload 1
dload 5
invokestatic org.jruby.RubyFloat.newFloat:(Lorg/jruby/Ruby;D)Lorg/jruby/RubyFloat;
areturn
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyTime;
0 3 1 runtime Lorg/jruby/Ruby;
0 3 2 other Lorg/jruby/RubyTime;
1 3 3 timeInMillis J
2 3 5 timeInSeconds D
MethodParameters:
Name Flags
runtime
other
public org.jruby.runtime.builtin.IRubyObject op_minus(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 1
invokevirtual org.jruby.RubyTime.op_minus:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
0 1 1 other Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
other
public org.jruby.runtime.builtin.IRubyObject op_minus(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof org.jruby.RubyTime
ifeq 1
aload 0
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
checkcast org.jruby.RubyTime
invokevirtual org.jruby.RubyTime.opMinus:(Lorg/jruby/Ruby;Lorg/jruby/RubyTime;)Lorg/jruby/RubyFloat;
areturn
1: StackMap locals:
StackMap stack:
aload 0
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 1
aload 1
aload 2
invokestatic org.jruby.RubyTime.numExact:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyNumeric;
invokestatic org.jruby.RubyNumeric.num2dbl:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)D
invokevirtual org.jruby.RubyTime.opMinus:(Lorg/jruby/Ruby;D)Lorg/jruby/RubyTime;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyTime;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 other Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"-"}, required = 1)
MethodParameters:
Name Flags
context
other
public org.jruby.runtime.builtin.IRubyObject op_minus19(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual org.jruby.RubyTime.op_minus:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 other Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
other
private org.jruby.RubyTime opMinus(org.jruby.Ruby, double);
descriptor: (Lorg/jruby/Ruby;D)Lorg/jruby/RubyTime;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=15, args_size=3
start local 0 start local 1 start local 2 0: dload 2
ldc 1.0E9
dmul
d2l
lstore 4
start local 4 1: lload 4
ldc 1000000
ldiv
lstore 6
start local 6 2: lload 4
ldc 1000000
lrem
lstore 8
start local 8 3: aload 0
invokevirtual org.jruby.RubyTime.getTimeInMillis:()J
lload 6
lsub
lstore 10
start local 10 4: aload 0
getfield org.jruby.RubyTime.nsec:J
lload 8
lcmp
ifge 8
5: lload 10
lconst_1
lsub
lstore 10
6: ldc 1000000
lload 8
aload 0
getfield org.jruby.RubyTime.nsec:J
lsub
lsub
lstore 12
start local 12 7: goto 9
end local 12 8: StackMap locals: org.jruby.RubyTime org.jruby.Ruby double long long long long
StackMap stack:
aload 0
getfield org.jruby.RubyTime.nsec:J
lload 8
lsub
lstore 12
start local 12 9: StackMap locals: long
StackMap stack:
new org.jruby.RubyTime
dup
aload 1
aload 0
invokevirtual org.jruby.RubyTime.getMetaClass:()Lorg/jruby/RubyClass;
invokespecial org.jruby.RubyTime.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
astore 14
start local 14 10: aload 14
new org.joda.time.DateTime
dup
lload 10
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getZone:()Lorg/joda/time/DateTimeZone;
invokespecial org.joda.time.DateTime.<init>:(JLorg/joda/time/DateTimeZone;)V
putfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
11: aload 14
lload 12
invokevirtual org.jruby.RubyTime.setNSec:(J)V
12: aload 14
aload 0
getfield org.jruby.RubyTime.isTzRelative:Z
invokevirtual org.jruby.RubyTime.setIsTzRelative:(Z)V
13: aload 14
areturn
end local 14 end local 12 end local 10 end local 8 end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/jruby/RubyTime;
0 14 1 runtime Lorg/jruby/Ruby;
0 14 2 other D
1 14 4 adjustmentInNanos J
2 14 6 adjustmentInMillis J
3 14 8 adjustmentInNanosLeft J
4 14 10 time J
7 8 12 nano J
9 14 12 nano J
10 14 14 newTime Lorg/jruby/RubyTime;
MethodParameters:
Name Flags
runtime
other
public org.jruby.runtime.builtin.IRubyObject op_eqq(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof org.jruby.RubyTime
ifeq 4
1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 1
aload 0
getstatic org.jruby.runtime.invokedynamic.MethodNames.OP_CMP:Lorg/jruby/runtime/invokedynamic/MethodNames;
aload 2
invokestatic org.jruby.runtime.Helpers.invokedynamic:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/invokedynamic/MethodNames;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
ifne 2
iconst_1
goto 3
StackMap locals:
StackMap stack: org.jruby.Ruby
2: iconst_0
StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject
StackMap stack: org.jruby.Ruby int
3: invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
4: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.fals:Lorg/jruby/RubyBoolean;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/RubyTime;
0 5 1 context Lorg/jruby/runtime/ThreadContext;
0 5 2 other Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"==="}, required = 1)
MethodParameters:
Name Flags
context
other
public org.jruby.runtime.builtin.IRubyObject op_cmp(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof org.jruby.RubyTime
ifeq 2
1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
aload 2
checkcast org.jruby.RubyTime
invokevirtual org.jruby.RubyTime.cmp:(Lorg/jruby/RubyTime;)I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
2: StackMap locals:
StackMap stack:
aload 1
aload 1
invokestatic org.jruby.RubyTime.sites:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/JavaSites$TimeSites;
getfield org.jruby.runtime.JavaSites$TimeSites.recursive_cmp:Lorg/jruby/runtime/ThreadContext$RecursiveFunctionEx;
aload 0
aload 2
invokestatic org.jruby.RubyComparable.invcmp:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/ThreadContext$RecursiveFunctionEx;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyTime;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
0 3 2 other Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"<=>"}, required = 1)
MethodParameters:
Name Flags
context
other
public org.jruby.runtime.builtin.IRubyObject eql_p(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.jruby.RubyTime
ifeq 5
1: aload 1
checkcast org.jruby.RubyTime
astore 2
start local 2 2: aload 0
getfield org.jruby.RubyTime.nsec:J
aload 2
getfield org.jruby.RubyTime.nsec:J
lcmp
ifne 3
aload 0
invokevirtual org.jruby.RubyTime.getTimeInMillis:()J
aload 2
invokevirtual org.jruby.RubyTime.getTimeInMillis:()J
lcmp
ifne 3
aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getTrue:()Lorg/jruby/RubyBoolean;
goto 4
StackMap locals: org.jruby.RubyTime
StackMap stack:
3: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getFalse:()Lorg/jruby/RubyBoolean;
StackMap locals:
StackMap stack: org.jruby.RubyBoolean
4: areturn
end local 2 5: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getFalse:()Lorg/jruby/RubyBoolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/RubyTime;
0 6 1 other Lorg/jruby/runtime/builtin/IRubyObject;
2 5 2 otherTime Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"eql?"}, required = 1)
MethodParameters:
Name Flags
other
public org.jruby.RubyString asctime();
descriptor: ()Lorg/jruby/RubyString;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getDayOfMonth:()I
bipush 10
if_icmpge 3
1: getstatic org.jruby.RubyTime.ONE_DAY_CTIME_FORMATTER:Lorg/joda/time/format/DateTimeFormatter;
astore 1
start local 1 2: goto 4
end local 1 3: StackMap locals:
StackMap stack:
getstatic org.jruby.RubyTime.TWO_DAY_CTIME_FORMATTER:Lorg/joda/time/format/DateTimeFormatter;
astore 1
start local 1 4: StackMap locals: org.joda.time.format.DateTimeFormatter
StackMap stack:
aload 1
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.format.DateTimeFormatter.print:(Lorg/joda/time/ReadableInstant;)Ljava/lang/String;
astore 2
start local 2 5: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
aload 2
getstatic org.jcodings.specific.USASCIIEncoding.INSTANCE:Lorg/jcodings/specific/USASCIIEncoding;
invokestatic org.jruby.RubyString.newString:(Lorg/jruby/Ruby;Ljava/lang/String;Lorg/jcodings/Encoding;)Lorg/jruby/RubyString;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/RubyTime;
2 3 1 simpleDateFormat Lorg/joda/time/format/DateTimeFormatter;
4 6 1 simpleDateFormat Lorg/joda/time/format/DateTimeFormatter;
5 6 2 result Ljava/lang/String;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"asctime", "ctime"})
public org.jruby.runtime.builtin.IRubyObject to_s();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getstatic org.jruby.RubyTime.TO_S_FORMATTER:Lorg/joda/time/format/DateTimeFormatter;
getstatic org.jruby.RubyTime.TO_S_UTC_FORMATTER:Lorg/joda/time/format/DateTimeFormatter;
invokevirtual org.jruby.RubyTime.inspectCommon:(Lorg/joda/time/format/DateTimeFormatter;Lorg/joda/time/format/DateTimeFormatter;)Ljava/lang/String;
astore 1
start local 1 1: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
aload 1
getstatic org.jcodings.specific.USASCIIEncoding.INSTANCE:Lorg/jcodings/specific/USASCIIEncoding;
invokestatic org.jruby.RubyString.newString:(Lorg/jruby/Ruby;Ljava/lang/String;Lorg/jcodings/Encoding;)Lorg/jruby/RubyString;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyTime;
1 2 1 str Ljava/lang/String;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"to_s", "inspect"})
public final org.jruby.runtime.builtin.IRubyObject to_s19();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.to_s:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
private java.lang.String inspectCommon(org.joda.time.format.DateTimeFormatter, org.joda.time.format.DateTimeFormatter);
descriptor: (Lorg/joda/time/format/DateTimeFormatter;Lorg/joda/time/format/DateTimeFormatter;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getZone:()Lorg/joda/time/DateTimeZone;
getstatic org.joda.time.DateTimeZone.UTC:Lorg/joda/time/DateTimeZone;
if_acmpne 3
aload 0
getfield org.jruby.RubyTime.isTzRelative:Z
ifne 3
1: aload 2
astore 3
start local 3 2: goto 4
end local 3 3: StackMap locals:
StackMap stack:
aload 1
astore 3
start local 3 4: StackMap locals: org.joda.time.format.DateTimeFormatter
StackMap stack:
aload 0
getfield org.jruby.RubyTime.isTzRelative:Z
ifeq 10
5: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getZone:()Lorg/joda/time/DateTimeZone;
astore 4
start local 4 6: aload 4
invokevirtual org.joda.time.DateTimeZone.toTimeZone:()Ljava/util/TimeZone;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getMillis:()J
invokevirtual java.util.TimeZone.getOffset:(J)I
istore 5
start local 5 7: iload 5
invokestatic org.joda.time.DateTimeZone.forOffsetMillis:(I)Lorg/joda/time/DateTimeZone;
astore 6
start local 6 8: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
aload 6
invokevirtual org.joda.time.DateTime.withZone:(Lorg/joda/time/DateTimeZone;)Lorg/joda/time/DateTime;
astore 7
start local 7 9: aload 3
aload 7
invokevirtual org.joda.time.format.DateTimeFormatter.print:(Lorg/joda/time/ReadableInstant;)Ljava/lang/String;
areturn
end local 7 end local 6 end local 5 end local 4 10: StackMap locals:
StackMap stack:
aload 3
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.format.DateTimeFormatter.print:(Lorg/joda/time/ReadableInstant;)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jruby/RubyTime;
0 11 1 formatter Lorg/joda/time/format/DateTimeFormatter;
0 11 2 utcFormatter Lorg/joda/time/format/DateTimeFormatter;
2 3 3 simpleDateFormat Lorg/joda/time/format/DateTimeFormatter;
4 11 3 simpleDateFormat Lorg/joda/time/format/DateTimeFormatter;
6 10 4 dtz Lorg/joda/time/DateTimeZone;
7 10 5 offset I
8 10 6 invertedDTZ Lorg/joda/time/DateTimeZone;
9 10 7 invertedDT Lorg/joda/time/DateTime;
MethodParameters:
Name Flags
formatter final
utcFormatter final
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.jruby.RubyTime.TO_S_FORMATTER:Lorg/joda/time/format/DateTimeFormatter;
getstatic org.jruby.RubyTime.TO_S_UTC_FORMATTER:Lorg/joda/time/format/DateTimeFormatter;
invokevirtual org.jruby.RubyTime.inspectCommon:(Lorg/joda/time/format/DateTimeFormatter;Lorg/joda/time/format/DateTimeFormatter;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public org.jruby.RubyArray to_a();
descriptor: ()Lorg/jruby/RubyArray;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
bipush 10
anewarray org.jruby.runtime.builtin.IRubyObject
dup
iconst_0
aload 0
invokevirtual org.jruby.RubyTime.sec:()Lorg/jruby/RubyInteger;
aastore
dup
iconst_1
aload 0
invokevirtual org.jruby.RubyTime.min:()Lorg/jruby/RubyInteger;
aastore
dup
iconst_2
aload 0
invokevirtual org.jruby.RubyTime.hour:()Lorg/jruby/RubyInteger;
aastore
dup
iconst_3
aload 0
invokevirtual org.jruby.RubyTime.mday:()Lorg/jruby/RubyInteger;
aastore
dup
iconst_4
aload 0
invokevirtual org.jruby.RubyTime.month:()Lorg/jruby/RubyInteger;
aastore
dup
iconst_5
aload 0
invokevirtual org.jruby.RubyTime.year:()Lorg/jruby/RubyInteger;
aastore
dup
bipush 6
aload 0
invokevirtual org.jruby.RubyTime.wday:()Lorg/jruby/RubyInteger;
aastore
dup
bipush 7
aload 0
invokevirtual org.jruby.RubyTime.yday:()Lorg/jruby/RubyInteger;
aastore
dup
bipush 8
aload 0
invokevirtual org.jruby.RubyTime.isdst:()Lorg/jruby/RubyBoolean;
aastore
dup
bipush 9
aload 0
invokevirtual org.jruby.RubyTime.zone:()Lorg/jruby/runtime/builtin/IRubyObject;
aastore
invokestatic org.jruby.RubyArray.newArrayNoCopy:(Lorg/jruby/Ruby;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
public org.jruby.RubyFloat to_f();
descriptor: ()Lorg/jruby/RubyFloat;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getTimeInMillis:()J
lstore 1
start local 1 1: aload 0
getfield org.jruby.RubyTime.nsec:J
lstore 3
start local 3 2: dconst_0
dstore 5
start local 5 3: lload 1
lconst_0
lcmp
ifeq 4
dload 5
lload 1
l2d
ldc 1000.0
ddiv
dadd
dstore 5
4: StackMap locals: long long double
StackMap stack:
lload 3
lconst_0
lcmp
ifeq 5
dload 5
lload 3
l2d
ldc 1.0E9
ddiv
dadd
dstore 5
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
dload 5
invokestatic org.jruby.RubyFloat.newFloat:(Lorg/jruby/Ruby;D)Lorg/jruby/RubyFloat;
areturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/RubyTime;
1 6 1 millis J
2 6 3 nanos J
3 6 5 secs D
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
public org.jruby.RubyInteger to_i();
descriptor: ()Lorg/jruby/RubyInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
aload 0
invokevirtual org.jruby.RubyTime.getTimeInMillis:()J
ldc 1000
ldiv
invokevirtual org.jruby.Ruby.newFixnum:(J)Lorg/jruby/RubyFixnum;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"to_i", "tv_sec"})
public org.jruby.RubyInteger nsec();
descriptor: ()Lorg/jruby/RubyInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
aload 0
invokevirtual org.jruby.RubyTime.getNanos:()I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"nsec", "tv_nsec"})
public org.jruby.runtime.builtin.IRubyObject to_r(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual org.jruby.RubyTime.getTimeInMillis:()J
ldc 1000000
lmul
aload 0
getfield org.jruby.RubyTime.nsec:J
ladd
ldc 1000000000
invokestatic org.jruby.RubyRational.newRationalCanonicalize:(Lorg/jruby/runtime/ThreadContext;JJ)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
public org.jruby.RubyInteger usec();
descriptor: ()Lorg/jruby/RubyInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getMillisOfSecond:()I
sipush 1000
imul
i2l
aload 0
invokevirtual org.jruby.RubyTime.getUSec:()J
ladd
invokevirtual org.jruby.Ruby.newFixnum:(J)Lorg/jruby/RubyFixnum;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"usec", "tv_usec"})
public long getTimeInMicros();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getTimeInMillis:()J
ldc 1000
lmul
aload 0
invokevirtual org.jruby.RubyTime.getUSec:()J
ladd
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public int getMicros();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getTimeInMillis:()J
ldc 1000
lrem
l2i
sipush 1000
imul
aload 0
invokevirtual org.jruby.RubyTime.getUSec:()J
l2i
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public void setMicros(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.RubyTime.getTimeInMillis:()J
lstore 2
start local 2 1: lload 2
lload 2
ldc 1000
lrem
lsub
iload 1
sipush 1000
idiv
i2l
ladd
lstore 2
2: aload 0
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
lload 2
invokevirtual org.joda.time.DateTime.withMillis:(J)Lorg/joda/time/DateTime;
putfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
3: aload 0
iload 1
sipush 1000
irem
sipush 1000
imul
i2l
putfield org.jruby.RubyTime.nsec:J
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/RubyTime;
0 5 1 micros I
1 5 2 millis J
MethodParameters:
Name Flags
micros
public void setMicroseconds(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
l2i
invokevirtual org.jruby.RubyTime.setMicros:(I)V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
0 1 1 micros J
MethodParameters:
Name Flags
micros
public long microseconds();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getMicros:()I
i2l
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public int getNanos();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getMillisOfSecond:()I
i2l
ldc 1000000
lmul
aload 0
invokevirtual org.jruby.RubyTime.getNSec:()J
ladd
l2i
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public void setNanos(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.RubyTime.getTimeInMillis:()J
lstore 2
start local 2 1: lload 2
lload 2
ldc 1000
lrem
lsub
iload 1
ldc 1000000
idiv
i2l
ladd
lstore 2
2: aload 0
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
lload 2
invokevirtual org.joda.time.DateTime.withMillis:(J)Lorg/joda/time/DateTime;
putfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
3: aload 0
iload 1
ldc 1000000
irem
i2l
putfield org.jruby.RubyTime.nsec:J
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/RubyTime;
0 5 1 nanos I
1 5 2 millis J
MethodParameters:
Name Flags
nanos
public org.jruby.RubyInteger sec();
descriptor: ()Lorg/jruby/RubyInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getSecondOfMinute:()I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
public org.jruby.RubyInteger min();
descriptor: ()Lorg/jruby/RubyInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getMinuteOfHour:()I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
public org.jruby.RubyInteger hour();
descriptor: ()Lorg/jruby/RubyInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getHourOfDay:()I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
public org.jruby.RubyInteger mday();
descriptor: ()Lorg/jruby/RubyInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getDayOfMonth:()I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"mday", "day"})
public org.jruby.RubyInteger month();
descriptor: ()Lorg/jruby/RubyInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getMonthOfYear:()I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"month", "mon"})
public org.jruby.RubyInteger year();
descriptor: ()Lorg/jruby/RubyInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getYear:()I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
public org.jruby.RubyInteger wday();
descriptor: ()Lorg/jruby/RubyInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getDayOfWeek:()I
bipush 7
irem
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
public org.jruby.RubyInteger yday();
descriptor: ()Lorg/jruby/RubyInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getDayOfYear:()I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
public org.jruby.RubyBoolean sunday_p(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyBoolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getDayOfWeek:()I
bipush 7
irem
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack: org.jruby.Ruby
1: iconst_0
StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext
StackMap stack: org.jruby.Ruby int
2: invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyTime;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"sunday?"})
MethodParameters:
Name Flags
context
public org.jruby.RubyBoolean monday_p(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyBoolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getDayOfWeek:()I
bipush 7
irem
iconst_1
if_icmpne 1
iconst_1
goto 2
StackMap locals:
StackMap stack: org.jruby.Ruby
1: iconst_0
StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext
StackMap stack: org.jruby.Ruby int
2: invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyTime;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"monday?"})
MethodParameters:
Name Flags
context
public org.jruby.RubyBoolean tuesday_p(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyBoolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getDayOfWeek:()I
bipush 7
irem
iconst_2
if_icmpne 1
iconst_1
goto 2
StackMap locals:
StackMap stack: org.jruby.Ruby
1: iconst_0
StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext
StackMap stack: org.jruby.Ruby int
2: invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyTime;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"tuesday?"})
MethodParameters:
Name Flags
context
public org.jruby.RubyBoolean wednesday_p(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyBoolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getDayOfWeek:()I
bipush 7
irem
iconst_3
if_icmpne 1
iconst_1
goto 2
StackMap locals:
StackMap stack: org.jruby.Ruby
1: iconst_0
StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext
StackMap stack: org.jruby.Ruby int
2: invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyTime;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"wednesday?"})
MethodParameters:
Name Flags
context
public org.jruby.RubyBoolean thursday_p(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyBoolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getDayOfWeek:()I
bipush 7
irem
iconst_4
if_icmpne 1
iconst_1
goto 2
StackMap locals:
StackMap stack: org.jruby.Ruby
1: iconst_0
StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext
StackMap stack: org.jruby.Ruby int
2: invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyTime;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"thursday?"})
MethodParameters:
Name Flags
context
public org.jruby.RubyBoolean friday_p(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyBoolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getDayOfWeek:()I
bipush 7
irem
iconst_5
if_icmpne 1
iconst_1
goto 2
StackMap locals:
StackMap stack: org.jruby.Ruby
1: iconst_0
StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext
StackMap stack: org.jruby.Ruby int
2: invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyTime;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"friday?"})
MethodParameters:
Name Flags
context
public org.jruby.RubyBoolean saturday_p(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyBoolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getDayOfWeek:()I
bipush 7
irem
bipush 6
if_icmpne 1
iconst_1
goto 2
StackMap locals:
StackMap stack: org.jruby.Ruby
1: iconst_0
StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext
StackMap stack: org.jruby.Ruby int
2: invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyTime;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"saturday?"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject subsec();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
invokevirtual org.jruby.RubyTime.subsec:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyNumeric;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public org.jruby.RubyNumeric subsec(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyNumeric;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getMillisOfSecond:()I
ldc 1000000
imul
i2l
aload 0
getfield org.jruby.RubyTime.nsec:J
ladd
lstore 2
start local 2 1: aload 1
lload 2
ldc 1000000000
invokestatic org.jruby.RubyRational.newRationalCanonicalize:(Lorg/jruby/runtime/ThreadContext;JJ)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyNumeric
astore 4
start local 4 2: aload 4
invokevirtual org.jruby.RubyNumeric.isZero:()Z
ifeq 3
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokestatic org.jruby.RubyFixnum.zero:(Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
goto 4
StackMap locals: long org.jruby.RubyNumeric
StackMap stack:
3: aload 4
StackMap locals:
StackMap stack: org.jruby.RubyNumeric
4: areturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/RubyTime;
0 5 1 context Lorg/jruby/runtime/ThreadContext;
1 5 2 nanosec J
2 5 4 subsec Lorg/jruby/RubyNumeric;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context final
public org.jruby.RubyInteger gmt_offset();
descriptor: ()Lorg/jruby/RubyInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getZone:()Lorg/joda/time/DateTimeZone;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getMillis:()J
invokevirtual org.joda.time.DateTimeZone.getOffset:(J)I
istore 1
start local 1 1: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
iload 1
sipush 1000
idiv
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyTime;
1 2 1 offset I
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"gmt_offset", "gmtoff", "utc_offset"})
public org.jruby.RubyBoolean isdst();
descriptor: ()Lorg/jruby/RubyBoolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getZone:()Lorg/joda/time/DateTimeZone;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getMillis:()J
invokevirtual org.joda.time.DateTimeZone.isStandardOffset:(J)Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack: org.jruby.Ruby
1: iconst_1
StackMap locals: org.jruby.RubyTime
StackMap stack: org.jruby.Ruby int
2: invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"isdst", "dst?"})
public org.jruby.runtime.builtin.IRubyObject zone();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.isTzRelative:Z
ifeq 1
aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.RubyTime.getZoneName:()Ljava/lang/String;
astore 1
start local 1 2: ldc ""
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals: java.lang.String
StackMap stack:
aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
aload 1
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
astore 2
start local 2 4: aload 2
invokevirtual org.jruby.RubyString.isAsciiOnly:()Z
ifeq 5
aload 2
getstatic org.jcodings.specific.USASCIIEncoding.INSTANCE:Lorg/jcodings/specific/USASCIIEncoding;
invokevirtual org.jruby.RubyString.setEncoding:(Lorg/jcodings/Encoding;)V
5: StackMap locals: org.jruby.RubyString
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/RubyTime;
2 6 1 zoneName Ljava/lang/String;
4 6 2 zone Lorg/jruby/RubyString;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
public java.lang.String getZoneName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokestatic org.jruby.RubyTime.getRubyTimeZoneName:(Lorg/jruby/Ruby;Lorg/joda/time/DateTime;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public static java.lang.String getRubyTimeZoneName(org.jruby.Ruby, org.joda.time.DateTime);
descriptor: (Lorg/jruby/Ruby;Lorg/joda/time/DateTime;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic org.jruby.RubyTime.getEnvTimeZone:(Lorg/jruby/Ruby;)Ljava/lang/String;
astore 2
start local 2 1: aload 2
ifnonnull 2
ldc ""
goto 3
StackMap locals: java.lang.String
StackMap stack:
2: aload 2
StackMap locals:
StackMap stack: java.lang.String
3: aload 1
invokestatic org.jruby.RubyTime.getRubyTimeZoneName:(Ljava/lang/String;Lorg/joda/time/DateTime;)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 runtime Lorg/jruby/Ruby;
0 4 1 dt Lorg/joda/time/DateTime;
1 4 2 tz Ljava/lang/String;
MethodParameters:
Name Flags
runtime
dt
public static java.lang.String getRubyTimeZoneName(java.lang.String, org.joda.time.DateTime);
descriptor: (Ljava/lang/String;Lorg/joda/time/DateTime;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 2
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 3
76220: 1
83846: 2
227138667: 3
default: 8
}
StackMap locals: java.lang.String
StackMap stack:
1: aload 2
ldc "MET"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
goto 8
StackMap locals:
StackMap stack:
2: aload 2
ldc "UCT"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 4
goto 8
StackMap locals:
StackMap stack:
3: aload 2
ldc "Etc/UCT"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 4
goto 8
4: StackMap locals:
StackMap stack:
ldc "UCT"
areturn
5: StackMap locals:
StackMap stack:
aload 1
invokestatic org.jruby.RubyTime.inDaylighTime:(Lorg/joda/time/DateTime;)Z
ifeq 6
ldc "MEST"
goto 7
StackMap locals:
StackMap stack:
6: ldc "MET"
StackMap locals:
StackMap stack: java.lang.String
7: areturn
8: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.joda.time.DateTime.getZone:()Lorg/joda/time/DateTimeZone;
aload 1
invokevirtual org.joda.time.DateTime.getMillis:()J
invokevirtual org.joda.time.DateTimeZone.getShortName:(J)Ljava/lang/String;
astore 3
start local 3 9: getstatic org.jruby.RubyTime.TIME_OFFSET_PATTERN:Ljava/util/regex/Pattern;
aload 3
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 4
start local 4 10: aload 4
invokevirtual java.util.regex.Matcher.matches:()Z
ifeq 17
11: aload 3
ldc "+00:00"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 14
12: ldc "UTC"
astore 3
13: goto 17
14: StackMap locals: java.lang.String org.joda.time.DateTime top java.lang.String java.util.regex.Matcher
StackMap stack:
aload 1
invokevirtual org.joda.time.DateTime.getZone:()Lorg/joda/time/DateTimeZone;
aload 1
invokevirtual org.joda.time.DateTime.getMillis:()J
invokevirtual org.joda.time.DateTimeZone.getNameKey:(J)Ljava/lang/String;
astore 3
15: aload 3
ifnonnull 17
16: ldc ""
astore 3
17: StackMap locals:
StackMap stack:
aload 3
areturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 envTZ Ljava/lang/String;
0 18 1 dt Lorg/joda/time/DateTime;
9 18 3 zone Ljava/lang/String;
10 18 4 offsetMatcher Ljava/util/regex/Matcher;
MethodParameters:
Name Flags
envTZ
dt
private static boolean inDaylighTime(org.joda.time.DateTime);
descriptor: (Lorg/joda/time/DateTime;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.joda.time.DateTime.getZone:()Lorg/joda/time/DateTimeZone;
invokevirtual org.joda.time.DateTimeZone.toTimeZone:()Ljava/util/TimeZone;
aload 0
invokevirtual org.joda.time.DateTime.toDate:()Ljava/util/Date;
invokevirtual java.util.TimeZone.inDaylightTime:(Ljava/util/Date;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 dt Lorg/joda/time/DateTime;
MethodParameters:
Name Flags
dt final
public void setDateTime(org.joda.time.DateTime);
descriptor: (Lorg/joda/time/DateTime;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyTime;
0 2 1 dt Lorg/joda/time/DateTime;
MethodParameters:
Name Flags
dt
public org.joda.time.DateTime getDateTime();
descriptor: ()Lorg/joda/time/DateTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public org.jruby.RubyFixnum hash();
descriptor: ()Lorg/jruby/RubyFixnum;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
aload 0
invokevirtual org.jruby.RubyTime.hashCode:()I
i2l
invokestatic org.jruby.RubyFixnum.newFixnum:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyFixnum;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getMillis:()J
ldc 1000
ldiv
aload 0
invokevirtual org.jruby.RubyTime.getMicros:()I
i2l
lxor
iconst_1
lshl
l2i
iconst_1
ishr
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public org.jruby.RubyString dump(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyString;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.RubyTime.mdump:(Lorg/jruby/Ruby;)Lorg/jruby/RubyString;
astore 2
start local 2 1: aload 2
aload 0
invokevirtual org.jruby.RubyString.syncVariables:(Lorg/jruby/runtime/builtin/IRubyObject;)V
2: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyTime;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
1 3 2 str Lorg/jruby/RubyString;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"_dump"})
MethodParameters:
Name Flags
context final
public org.jruby.RubyString dump(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.jruby.RubyTime.dump:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyString;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"_dump"})
MethodParameters:
Name Flags
context final
arg final
public org.jruby.RubyString dump(org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: ([Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/RubyString;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.RubyTime.mdump:()Lorg/jruby/RubyObject;
checkcast org.jruby.RubyString
astore 3
start local 3 1: aload 3
aload 0
invokevirtual org.jruby.RubyString.syncVariables:(Lorg/jruby/runtime/builtin/IRubyObject;)V
2: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyTime;
0 3 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 3 2 unusedBlock Lorg/jruby/runtime/Block;
1 3 3 str Lorg/jruby/RubyString;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
args
unusedBlock
public org.jruby.RubyObject mdump();
descriptor: ()Lorg/jruby/RubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual org.jruby.RubyTime.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.RubyTime.mdump:(Lorg/jruby/Ruby;)Lorg/jruby/RubyString;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
private org.jruby.RubyString mdump(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Lorg/jruby/RubyString;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=17, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
getstatic org.joda.time.DateTimeZone.UTC:Lorg/joda/time/DateTimeZone;
invokevirtual org.joda.time.DateTime.toDateTime:(Lorg/joda/time/DateTimeZone;)Lorg/joda/time/DateTime;
astore 2
start local 2 1: bipush 8
newarray 8
astore 3
start local 3 2: aload 0
getfield org.jruby.RubyTime.nsec:J
ldc 1000
ldiv
lstore 4
start local 4 3: aload 0
getfield org.jruby.RubyTime.nsec:J
ldc 1000
lrem
lstore 6
start local 6 4: ldc -2147483648
5: aload 0
invokevirtual org.jruby.RubyTime.isUTC:()Z
ifeq 6
iconst_1
goto 7
StackMap locals: org.jruby.RubyTime org.jruby.Ruby org.joda.time.DateTime byte[] long long
StackMap stack: int
6: iconst_0
StackMap locals: org.jruby.RubyTime org.jruby.Ruby org.joda.time.DateTime byte[] long long
StackMap stack: int int
7: bipush 30
ishl
8: ior
9: aload 2
invokevirtual org.joda.time.DateTime.getYear:()I
sipush 1900
isub
bipush 14
ishl
10: ior
11: aload 2
invokevirtual org.joda.time.DateTime.getMonthOfYear:()I
iconst_1
isub
bipush 10
ishl
12: ior
13: aload 2
invokevirtual org.joda.time.DateTime.getDayOfMonth:()I
iconst_5
ishl
14: ior
15: aload 2
invokevirtual org.joda.time.DateTime.getHourOfDay:()I
16: ior
17: istore 8
start local 8 18: aload 2
invokevirtual org.joda.time.DateTime.getMinuteOfHour:()I
bipush 26
ishl
19: aload 2
invokevirtual org.joda.time.DateTime.getSecondOfMinute:()I
bipush 20
ishl
20: ior
21: aload 2
invokevirtual org.joda.time.DateTime.getMillisOfSecond:()I
sipush 1000
imul
lload 4
l2i
iadd
22: ior
23: istore 9
start local 9 24: iconst_0
istore 10
start local 10 25: goto 29
26: StackMap locals: int int int
StackMap stack:
aload 3
iload 10
iload 8
sipush 255
iand
i2b
bastore
27: iload 8
bipush 8
iushr
istore 8
28: iinc 10 1
StackMap locals:
StackMap stack:
29: iload 10
iconst_4
if_icmplt 26
end local 10 30: iconst_4
istore 10
start local 10 31: goto 35
32: StackMap locals:
StackMap stack:
aload 3
iload 10
iload 9
sipush 255
iand
i2b
bastore
33: iload 9
bipush 8
iushr
istore 9
34: iinc 10 1
StackMap locals:
StackMap stack:
35: iload 10
bipush 8
if_icmplt 32
end local 10 36: aload 1
new org.jruby.util.ByteList
dup
aload 3
iconst_0
invokespecial org.jruby.util.ByteList.<init>:([BZ)V
invokestatic org.jruby.RubyString.newString:(Lorg/jruby/Ruby;Lorg/jruby/util/ByteList;)Lorg/jruby/RubyString;
astore 10
start local 10 37: aload 0
aload 10
invokevirtual org.jruby.RubyTime.copyInstanceVariablesInto:(Lorg/jruby/runtime/builtin/InstanceVariables;)V
38: lload 6
lconst_0
lcmp
ifeq 41
39: aload 10
ldc "nano_num"
aload 1
lload 6
invokevirtual org.jruby.Ruby.newFixnum:(J)Lorg/jruby/RubyFixnum;
invokevirtual org.jruby.RubyString.setInternalVariable:(Ljava/lang/String;Ljava/lang/Object;)V
40: aload 10
ldc "nano_den"
aload 1
iconst_1
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
invokevirtual org.jruby.RubyString.setInternalVariable:(Ljava/lang/String;Ljava/lang/Object;)V
41: StackMap locals: org.jruby.RubyTime org.jruby.Ruby org.joda.time.DateTime byte[] long long int int org.jruby.RubyString
StackMap stack:
iconst_2
newarray 8
astore 11
start local 11 42: iconst_2
istore 12
start local 12 43: aload 11
iconst_1
lload 6
ldc 10
lrem
iconst_4
lshl
l2i
i2b
bastore
44: lload 6
ldc 10
ldiv
lstore 6
45: aload 11
iconst_0
lload 6
ldc 10
lrem
l2i
i2b
bastore
46: lload 6
ldc 10
ldiv
lstore 6
47: aload 11
iconst_0
dup2
baload
lload 6
ldc 10
lrem
iconst_4
lshl
l2i
i2b
ior
i2b
bastore
48: aload 11
iconst_1
baload
ifne 49
iconst_1
istore 12
49: StackMap locals: byte[] int
StackMap stack:
aload 10
ldc "submicro"
aload 1
aload 11
iconst_0
iload 12
invokestatic org.jruby.RubyString.newString:(Lorg/jruby/Ruby;[BII)Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.setInternalVariable:(Ljava/lang/String;Ljava/lang/Object;)V
50: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getZone:()Lorg/joda/time/DateTimeZone;
astore 13
start local 13 51: aload 13
getstatic org.joda.time.DateTimeZone.UTC:Lorg/joda/time/DateTimeZone;
if_acmpeq 57
52: aload 13
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getMillis:()J
invokevirtual org.joda.time.DateTimeZone.getOffset:(J)I
i2l
lstore 14
start local 14 53: aload 10
ldc "offset"
aload 1
lload 14
ldc 1000
ldiv
invokevirtual org.jruby.Ruby.newFixnum:(J)Lorg/jruby/RubyFixnum;
invokevirtual org.jruby.RubyString.setInternalVariable:(Ljava/lang/String;Ljava/lang/Object;)V
54: aload 13
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getMillis:()J
invokevirtual org.joda.time.DateTimeZone.getShortName:(J)Ljava/lang/String;
astore 16
start local 16 55: getstatic org.jruby.RubyTime.TIME_OFFSET_PATTERN:Ljava/util/regex/Pattern;
aload 16
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.matches:()Z
ifne 57
56: aload 10
ldc "zone"
aload 1
aload 16
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.setInternalVariable:(Ljava/lang/String;Ljava/lang/Object;)V
end local 16 end local 14 57: StackMap locals: org.joda.time.DateTimeZone
StackMap stack:
aload 10
areturn
end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 58 0 this Lorg/jruby/RubyTime;
0 58 1 runtime Lorg/jruby/Ruby;
1 58 2 dateTime Lorg/joda/time/DateTime;
2 58 3 dumpValue [B
3 58 4 usec J
4 58 6 nanosec J
18 58 8 pe I
24 58 9 se I
25 30 10 i I
31 36 10 i I
37 58 10 string Lorg/jruby/RubyString;
42 58 11 submicro [B
43 58 12 len I
51 58 13 zone Lorg/joda/time/DateTimeZone;
53 57 14 offset J
55 57 16 zoneName Ljava/lang/String;
MethodParameters:
Name Flags
runtime final
public org.jruby.RubyTime round(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 2
arraylength
ifne 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: aload 2
iconst_0
aaload
invokestatic org.jruby.RubyNumeric.num2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
StackMap locals:
StackMap stack: int
2: istore 3
start local 3 3: iload 3
bipush 9
if_icmple 6
4: bipush 9
istore 3
5: goto 8
StackMap locals: int
StackMap stack:
6: iload 3
ifge 8
7: aload 1
invokevirtual org.jruby.runtime.ThreadContext.getRuntime:()Lorg/jruby/Ruby;
ldc "negative ndigits given"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
8: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getMillisOfSecond:()I
ldc 1000000
imul
aload 0
getfield org.jruby.RubyTime.nsec:J
l2i
iadd
istore 4
start local 4 9: ldc 10.0
bipush 9
iload 3
isub
i2d
invokestatic java.lang.Math.pow:(DD)D
d2i
istore 5
start local 5 10: iload 4
iload 5
iconst_2
idiv
iadd
iload 5
idiv
iload 5
imul
istore 6
start local 6 11: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
iconst_0
invokevirtual org.joda.time.DateTime.withMillisOfSecond:(I)Lorg/joda/time/DateTime;
iload 6
ldc 1000000
idiv
invokevirtual org.joda.time.DateTime.plusMillis:(I)Lorg/joda/time/DateTime;
astore 7
start local 7 12: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 7
iload 6
ldc 1000000
irem
i2l
invokestatic org.jruby.RubyTime.newTime:(Lorg/jruby/Ruby;Lorg/joda/time/DateTime;J)Lorg/jruby/RubyTime;
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/jruby/RubyTime;
0 13 1 context Lorg/jruby/runtime/ThreadContext;
0 13 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
3 13 3 ndigits I
9 13 4 _nsec I
10 13 5 pow I
11 13 6 rounded I
12 13 7 _dt Lorg/joda/time/DateTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(optional = 1)
MethodParameters:
Name Flags
context
args
public static org.jruby.runtime.builtin.IRubyObject s_new(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 3
start local 3 1: new org.jruby.RubyTime
dup
aload 3
aload 0
checkcast org.jruby.RubyClass
new org.joda.time.DateTime
dup
aload 3
invokestatic org.jruby.RubyTime.getLocalTimeZone:(Lorg/jruby/Ruby;)Lorg/joda/time/DateTimeZone;
invokespecial org.joda.time.DateTime.<init>:(Lorg/joda/time/DateTimeZone;)V
invokespecial org.jruby.RubyTime.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/joda/time/DateTime;)V
astore 4
start local 4 2: aload 4
aload 1
aload 2
invokevirtual org.jruby.RubyTime.callInit:([Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)V
3: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 4 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 4 2 block Lorg/jruby/runtime/Block;
1 4 3 runtime Lorg/jruby/Ruby;
2 4 4 time Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
recv
args
block
public static org.jruby.runtime.builtin.IRubyObject newInstance(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokestatic org.jruby.RubyTime.newInstance:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyTime;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
recv
args
block
public static org.jruby.RubyTime newInstance(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyTime;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
checkcast org.jruby.RubyClass
invokevirtual org.jruby.RubyClass.allocate:()Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyTime
astore 2
start local 2 1: aload 2
invokevirtual org.jruby.RubyTime.getMetaClass:()Lorg/jruby/RubyClass;
iconst_0
invokevirtual org.jruby.RubyClass.getBaseCallSite:(I)Lorg/jruby/runtime/CallSite;
aload 0
aload 1
aload 2
invokevirtual org.jruby.runtime.CallSite.call:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
2: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 context Lorg/jruby/runtime/ThreadContext;
0 3 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
1 3 2 obj Lorg/jruby/RubyTime;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"now"}, meta = true)
MethodParameters:
Name Flags
context
recv
public static org.jruby.runtime.builtin.IRubyObject at(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=9, locals=15, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 2
instanceof org.jruby.RubyTime
ifeq 6
2: aload 2
checkcast org.jruby.RubyTime
astore 5
start local 5 3: new org.jruby.RubyTime
dup
aload 3
aload 1
checkcast org.jruby.RubyClass
aload 5
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokespecial org.jruby.RubyTime.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/joda/time/DateTime;)V
astore 4
start local 4 4: aload 4
aload 5
invokevirtual org.jruby.RubyTime.getNSec:()J
invokevirtual org.jruby.RubyTime.setNSec:(J)V
end local 5 5: goto 33
end local 4 6: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 0
aload 2
invokestatic org.jruby.RubyTime.numExact:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyNumeric;
astore 2
7: aload 2
instanceof org.jruby.RubyFloat
ifeq 16
8: aload 2
checkcast org.jruby.RubyFloat
invokestatic org.jruby.RubyNumeric.float2long:(Lorg/jruby/RubyFloat;)J
lstore 9
start local 9 9: aload 2
checkcast org.jruby.RubyFloat
getfield org.jruby.RubyFloat.value:D
dstore 11
start local 11 10: dload 11
lload 9
l2d
dsub
ldc 1.0E9
dmul
d2l
lstore 13
start local 13 11: dload 11
dconst_0
dcmpg
ifge 13
lload 13
lconst_0
lcmp
ifeq 13
12: lload 13
ldc 1000000000
ladd
lstore 13
13: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby top top top top top long double long
StackMap stack:
lload 9
ldc 1000
lmul
lload 13
ldc 1000000
ldiv
ladd
lstore 7
start local 7 14: lload 13
ldc 1000000
lrem
lstore 5
end local 13 end local 11 end local 9 start local 5 15: goto 28
end local 7 end local 5 StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby
StackMap stack:
16: aload 2
instanceof org.jruby.RubyRational
ifeq 26
17: aload 2
checkcast org.jruby.RubyRational
astore 9
start local 9 18: aload 9
invokevirtual org.jruby.RubyRational.getNumerator:()Lorg/jruby/RubyInteger;
invokevirtual org.jruby.RubyInteger.getBigIntegerValue:()Ljava/math/BigInteger;
astore 10
start local 10 19: aload 9
invokevirtual org.jruby.RubyRational.getDenominator:()Lorg/jruby/RubyInteger;
invokevirtual org.jruby.RubyInteger.getBigIntegerValue:()Ljava/math/BigInteger;
astore 11
start local 11 20: new java.math.BigDecimal
dup
aload 10
invokespecial java.math.BigDecimal.<init>:(Ljava/math/BigInteger;)V
new java.math.BigDecimal
dup
aload 11
invokespecial java.math.BigDecimal.<init>:(Ljava/math/BigInteger;)V
bipush 50
iconst_4
invokevirtual java.math.BigDecimal.divide:(Ljava/math/BigDecimal;II)Ljava/math/BigDecimal;
getstatic org.jruby.RubyTime.ONE_BILLION_BD:Ljava/math/BigDecimal;
invokevirtual java.math.BigDecimal.multiply:(Ljava/math/BigDecimal;)Ljava/math/BigDecimal;
astore 12
start local 12 21: aload 12
getstatic org.jruby.RubyTime.ONE_MILLION_BD:Ljava/math/BigDecimal;
invokevirtual java.math.BigDecimal.divide:(Ljava/math/BigDecimal;)Ljava/math/BigDecimal;
invokevirtual java.math.BigDecimal.toBigInteger:()Ljava/math/BigInteger;
astore 13
start local 13 22: aload 12
getstatic org.jruby.RubyTime.ONE_MILLION_BD:Ljava/math/BigDecimal;
invokevirtual java.math.BigDecimal.remainder:(Ljava/math/BigDecimal;)Ljava/math/BigDecimal;
invokevirtual java.math.BigDecimal.toBigInteger:()Ljava/math/BigInteger;
astore 14
start local 14 23: aload 13
invokevirtual java.math.BigInteger.longValue:()J
lstore 7
start local 7 24: aload 14
invokevirtual java.math.BigInteger.longValue:()J
lstore 5
end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 start local 5 25: goto 28
end local 7 end local 5 26: StackMap locals:
StackMap stack:
lconst_0
lstore 5
start local 5 27: aload 2
invokestatic org.jruby.RubyNumeric.num2long:(Lorg/jruby/runtime/builtin/IRubyObject;)J
ldc 1000
lmul
lstore 7
start local 7 28: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby top long long
StackMap stack:
new org.jruby.RubyTime
dup
aload 3
aload 1
checkcast org.jruby.RubyClass
new org.joda.time.DateTime
dup
lload 7
aload 3
invokestatic org.jruby.RubyTime.getLocalTimeZone:(Lorg/jruby/Ruby;)Lorg/joda/time/DateTimeZone;
invokespecial org.joda.time.DateTime.<init>:(JLorg/joda/time/DateTimeZone;)V
invokespecial org.jruby.RubyTime.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/joda/time/DateTime;)V
astore 4
start local 4 29: goto 32
end local 4 30: StackMap locals:
StackMap stack: java.lang.RuntimeException
astore 9
start local 9 31: aload 3
aload 9
invokevirtual java.lang.RuntimeException.getMessage:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newRangeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 9 start local 4 32: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby org.jruby.RubyTime long long
StackMap stack:
aload 4
lload 5
invokevirtual org.jruby.RubyTime.setNSec:(J)V
end local 7 end local 5 33: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 context Lorg/jruby/runtime/ThreadContext;
0 34 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 34 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
1 34 3 runtime Lorg/jruby/Ruby;
4 6 4 time Lorg/jruby/RubyTime;
29 30 4 time Lorg/jruby/RubyTime;
32 34 4 time Lorg/jruby/RubyTime;
3 5 5 other Lorg/jruby/RubyTime;
15 16 5 nanosecs J
25 26 5 nanosecs J
27 33 5 nanosecs J
14 16 7 millisecs J
24 26 7 millisecs J
28 33 7 millisecs J
9 15 9 seconds J
10 15 11 dbl D
11 15 13 nano J
18 25 9 rational Lorg/jruby/RubyRational;
19 25 10 numerator Ljava/math/BigInteger;
20 25 11 denominator Ljava/math/BigInteger;
21 25 12 nanosBD Ljava/math/BigDecimal;
22 25 13 millis Ljava/math/BigInteger;
23 25 14 nanos Ljava/math/BigInteger;
31 32 9 ex Ljava/lang/RuntimeException;
Exception table:
from to target type
28 29 30 Class java.lang.ArithmeticException
28 29 30 Class org.joda.time.IllegalFieldValueException
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(meta = true)
MethodParameters:
Name Flags
context
recv
arg
public static org.jruby.runtime.builtin.IRubyObject at(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "microsecond"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
astore 4
start local 4 1: aload 0
aload 1
aload 2
aload 3
aload 4
invokestatic org.jruby.RubyTime.at:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 context Lorg/jruby/runtime/ThreadContext;
0 2 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 2 2 arg1 Lorg/jruby/runtime/builtin/IRubyObject;
0 2 3 arg2 Lorg/jruby/runtime/builtin/IRubyObject;
1 2 4 ms Lorg/jruby/RubySymbol;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(meta = true)
MethodParameters:
Name Flags
context
recv
arg1
arg2
public static org.jruby.runtime.builtin.IRubyObject at(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=9, locals=16, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 5
start local 5 1: new org.jruby.RubyTime
dup
aload 5
aload 1
checkcast org.jruby.RubyClass
new org.joda.time.DateTime
dup
lconst_0
aload 5
invokestatic org.jruby.RubyTime.getLocalTimeZone:(Lorg/jruby/Ruby;)Lorg/joda/time/DateTimeZone;
invokespecial org.joda.time.DateTime.<init>:(JLorg/joda/time/DateTimeZone;)V
invokespecial org.jruby.RubyTime.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/joda/time/DateTime;)V
astore 6
start local 6 2: lconst_0
lstore 9
start local 9 3: aload 0
aload 2
invokestatic org.jruby.RubyTime.numExact:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyNumeric;
astore 2
4: aload 0
aload 3
invokestatic org.jruby.RubyTime.numExact:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyNumeric;
astore 3
5: aload 2
instanceof org.jruby.RubyFloat
ifne 6
aload 2
instanceof org.jruby.RubyRational
ifeq 10
6: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby org.jruby.RubyTime top top long
StackMap stack:
aload 0
aload 2
invokestatic org.jruby.RubyNumeric.num2dbl:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)D
dstore 11
start local 11 7: dload 11
ldc 1000.0
dmul
d2l
lstore 7
start local 7 8: dload 11
ldc 1.0E9
dmul
d2l
ldc 1000000
lrem
lstore 9
end local 11 9: goto 11
end local 7 10: StackMap locals:
StackMap stack:
aload 2
invokestatic org.jruby.RubyNumeric.num2long:(Lorg/jruby/runtime/builtin/IRubyObject;)J
ldc 1000
lmul
lstore 7
start local 7 11: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby org.jruby.RubyTime long long
StackMap stack:
aload 4
instanceof org.jruby.RubySymbol
ifne 13
12: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "unexpected unit "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
13: StackMap locals:
StackMap stack:
aload 4
checkcast org.jruby.RubySymbol
astore 11
start local 11 14: aload 3
instanceof org.jruby.RubyFloat
ifne 15
aload 3
instanceof org.jruby.RubyRational
ifeq 31
15: StackMap locals: org.jruby.RubySymbol
StackMap stack:
aload 5
ldc "microsecond"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aload 11
invokevirtual org.jruby.RubySymbol.eql:(Lorg/jruby/runtime/builtin/IRubyObject;)Z
ifne 16
aload 5
ldc "usec"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aload 11
invokevirtual org.jruby.RubySymbol.eql:(Lorg/jruby/runtime/builtin/IRubyObject;)Z
ifeq 21
16: StackMap locals:
StackMap stack:
aload 0
aload 3
invokestatic org.jruby.RubyNumeric.num2dbl:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)D
dstore 12
start local 12 17: dload 12
ldc 1000.0
dmul
dstore 14
start local 14 18: lload 7
dload 14
ldc 1000000.0
ddiv
d2l
ladd
lstore 7
19: lload 9
dload 14
ldc 1000000.0
drem
d2l
ladd
lstore 9
end local 14 end local 12 20: goto 47
StackMap locals:
StackMap stack:
21: aload 5
ldc "millisecond"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aload 11
invokevirtual org.jruby.RubySymbol.eql:(Lorg/jruby/runtime/builtin/IRubyObject;)Z
ifeq 27
22: aload 0
aload 3
invokestatic org.jruby.RubyNumeric.num2dbl:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)D
dstore 12
start local 12 23: dload 12
ldc 1000000.0
dmul
dstore 14
start local 14 24: lload 7
dload 14
ldc 1000000.0
ddiv
d2l
ladd
lstore 7
25: lload 9
dload 14
ldc 1000000.0
drem
d2l
ladd
lstore 9
end local 14 end local 12 26: goto 47
StackMap locals:
StackMap stack:
27: aload 5
ldc "nanosecond"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aload 11
invokevirtual org.jruby.RubySymbol.eql:(Lorg/jruby/runtime/builtin/IRubyObject;)Z
ifne 28
aload 5
ldc "nsec"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aload 11
invokevirtual org.jruby.RubySymbol.eql:(Lorg/jruby/runtime/builtin/IRubyObject;)Z
ifeq 30
28: StackMap locals:
StackMap stack:
lload 9
aload 3
invokestatic org.jruby.RubyNumeric.num2long:(Lorg/jruby/runtime/builtin/IRubyObject;)J
ladd
lstore 9
29: goto 47
30: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "unexpected unit "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
31: StackMap locals:
StackMap stack:
aload 5
ldc "microsecond"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aload 11
invokevirtual org.jruby.RubySymbol.eql:(Lorg/jruby/runtime/builtin/IRubyObject;)Z
ifne 32
aload 5
ldc "usec"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aload 11
invokevirtual org.jruby.RubySymbol.eql:(Lorg/jruby/runtime/builtin/IRubyObject;)Z
ifeq 37
32: StackMap locals:
StackMap stack:
aload 3
invokestatic org.jruby.RubyNumeric.num2long:(Lorg/jruby/runtime/builtin/IRubyObject;)J
lstore 12
start local 12 33: lload 12
ldc 1000
lmul
lstore 14
start local 14 34: lload 7
lload 14
ldc 1000000
ldiv
ladd
lstore 7
35: lload 9
lload 14
ldc 1000000
lrem
ladd
lstore 9
end local 14 end local 12 36: goto 47
StackMap locals:
StackMap stack:
37: aload 5
ldc "millisecond"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aload 11
invokevirtual org.jruby.RubySymbol.eql:(Lorg/jruby/runtime/builtin/IRubyObject;)Z
ifeq 43
38: aload 3
invokestatic org.jruby.RubyNumeric.num2long:(Lorg/jruby/runtime/builtin/IRubyObject;)J
l2d
dstore 12
start local 12 39: dload 12
ldc 1000000.0
dmul
dstore 14
start local 14 40: lload 7
l2d
dload 14
ldc 1000000.0
ddiv
dadd
d2l
lstore 7
41: lload 9
l2d
dload 14
ldc 1000000.0
drem
dadd
d2l
lstore 9
end local 14 end local 12 42: goto 47
StackMap locals:
StackMap stack:
43: aload 5
ldc "nanosecond"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aload 11
invokevirtual org.jruby.RubySymbol.eql:(Lorg/jruby/runtime/builtin/IRubyObject;)Z
ifne 44
aload 5
ldc "nsec"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aload 11
invokevirtual org.jruby.RubySymbol.eql:(Lorg/jruby/runtime/builtin/IRubyObject;)Z
ifeq 46
44: StackMap locals:
StackMap stack:
lload 9
aload 3
invokestatic org.jruby.RubyNumeric.num2long:(Lorg/jruby/runtime/builtin/IRubyObject;)J
ladd
lstore 9
45: goto 47
46: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "unexpected unit "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
47: StackMap locals:
StackMap stack:
lload 9
ldc 1000000
ldiv
lstore 12
start local 12 48: aload 6
lload 9
ldc 1000000
lrem
invokevirtual org.jruby.RubyTime.setNSec:(J)V
49: aload 6
aload 6
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
lload 7
lload 12
ladd
invokevirtual org.joda.time.DateTime.withMillis:(J)Lorg/joda/time/DateTime;
putfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
50: aload 6
areturn
end local 12 end local 11 end local 9 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 51 0 context Lorg/jruby/runtime/ThreadContext;
0 51 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 51 2 arg1 Lorg/jruby/runtime/builtin/IRubyObject;
0 51 3 arg2 Lorg/jruby/runtime/builtin/IRubyObject;
0 51 4 arg3 Lorg/jruby/runtime/builtin/IRubyObject;
1 51 5 runtime Lorg/jruby/Ruby;
2 51 6 time Lorg/jruby/RubyTime;
8 10 7 millisecs J
11 51 7 millisecs J
3 51 9 nanosecs J
7 9 11 dbl D
14 51 11 unit Lorg/jruby/RubySymbol;
17 20 12 micros D
18 20 14 nanos D
23 26 12 millis D
24 26 14 nanos D
33 36 12 micros J
34 36 14 nanos J
39 42 12 millis D
40 42 14 nanos D
48 51 12 nanosecOverflow J
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(meta = true)
MethodParameters:
Name Flags
context
recv
arg1
arg2
arg3
public static org.jruby.RubyTime local(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyTime;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
checkcast org.jruby.RubyClass
invokevirtual org.jruby.RubyClass.allocate:()Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyTime
aload 0
aload 2
iconst_0
iconst_0
invokevirtual org.jruby.RubyTime.initTime:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;ZZ)Lorg/jruby/RubyTime;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"local", "mktime"}, required = 1, optional = 9, meta = true)
MethodParameters:
Name Flags
context
recv
args
public org.jruby.runtime.builtin.IRubyObject initialize(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=15, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 2
arraylength
ifne 22
2: aload 3
invokestatic org.jruby.RubyTime.getLocalTimeZone:(Lorg/jruby/Ruby;)Lorg/joda/time/DateTimeZone;
astore 4
start local 4 3: aload 3
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
astore 9
start local 9 4: aload 9
invokeinterface jnr.posix.POSIX.isNative:()Z
ifeq 16
5: aload 9
invokeinterface jnr.posix.POSIX.allocateTimeval:()Ljnr/posix/Timeval;
astore 10
start local 10 6: aload 9
aload 10
invokeinterface jnr.posix.POSIX.gettimeofday:(Ljnr/posix/Timeval;)I
pop
7: aload 10
invokevirtual jnr.posix.Timeval.sec:()J
lstore 11
start local 11 8: aload 10
invokevirtual jnr.posix.Timeval.usec:()J
lstore 13
start local 13 9: lload 11
ldc 1000
lmul
lload 13
ldc 1000
ldiv
ladd
lstore 5
start local 5 10: lload 13
ldc 1000
lrem
ldc 1000
lmul
lstore 7
end local 13 end local 11 end local 10 start local 7 11: goto 18
end local 7 end local 5 StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.joda.time.DateTimeZone top top top top jnr.posix.POSIX
StackMap stack: org.jruby.exceptions.RaiseException
12: pop
13: invokestatic java.lang.System.currentTimeMillis:()J
lstore 5
start local 5 14: lconst_0
lstore 7
start local 7 15: goto 18
end local 7 end local 5 16: StackMap locals:
StackMap stack:
invokestatic java.lang.System.currentTimeMillis:()J
lstore 5
start local 5 17: lconst_0
lstore 7
start local 7 18: StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.joda.time.DateTimeZone long long jnr.posix.POSIX
StackMap stack:
new org.joda.time.DateTime
dup
lload 5
aload 4
invokespecial org.joda.time.DateTime.<init>:(JLorg/joda/time/DateTimeZone;)V
astore 10
start local 10 19: aload 0
aload 10
putfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
20: aload 0
lload 7
invokevirtual org.jruby.RubyTime.setNSec:(J)V
21: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 10 end local 9 end local 7 end local 5 end local 4 22: StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby
StackMap stack:
aload 2
arraylength
bipush 7
if_icmpne 38
23: aload 3
ldc "dst"
invokestatic org.jruby.RubySymbol.newSymbol:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/RubySymbol;
astore 4
start local 4 24: aload 2
bipush 6
aaload
aload 1
aload 4
invokeinterface org.jruby.runtime.builtin.IRubyObject.op_equal:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
istore 5
start local 5 25: aload 3
iload 5
invokestatic org.jruby.RubyBoolean.newBoolean:(Lorg/jruby/Ruby;Z)Lorg/jruby/RubyBoolean;
astore 6
start local 6 26: bipush 10
anewarray org.jruby.runtime.builtin.IRubyObject
dup
iconst_0
27: aload 2
iconst_5
aaload
aastore
dup
iconst_1
28: aload 2
iconst_4
aaload
aastore
dup
iconst_2
29: aload 2
iconst_3
aaload
aastore
dup
iconst_3
30: aload 2
iconst_2
aaload
aastore
dup
iconst_4
31: aload 2
iconst_1
aaload
aastore
dup
iconst_5
32: aload 2
iconst_0
aaload
aastore
dup
bipush 6
33: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
aastore
dup
bipush 7
34: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
aastore
dup
bipush 8
35: aload 6
aastore
dup
bipush 9
36: aload 2
bipush 6
aaload
aastore
37: astore 2
end local 6 end local 5 end local 4 38: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
iconst_1
invokevirtual org.jruby.RubyTime.initTime:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;ZZ)Lorg/jruby/RubyTime;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 39 0 this Lorg/jruby/RubyTime;
0 39 1 context Lorg/jruby/runtime/ThreadContext;
0 39 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 39 3 runtime Lorg/jruby/Ruby;
3 22 4 dtz Lorg/joda/time/DateTimeZone;
10 12 5 msecs J
14 16 5 msecs J
17 22 5 msecs J
11 12 7 nsecs J
15 16 7 nsecs J
18 22 7 nsecs J
4 22 9 posix Ljnr/posix/POSIX;
6 11 10 tv Ljnr/posix/Timeval;
8 11 11 secs J
9 11 13 usecs J
19 22 10 dt Lorg/joda/time/DateTime;
24 38 4 dstSymbol Lorg/jruby/RubySymbol;
25 38 5 receivedDstSymbolAsArgument Z
26 38 6 isDst Lorg/jruby/RubyBoolean;
Exception table:
from to target type
5 11 12 Class org.jruby.exceptions.RaiseException
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"initialize"}, optional = 7, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
args
public static org.jruby.RubyTime utc(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyTime;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
checkcast org.jruby.RubyClass
invokevirtual org.jruby.RubyClass.allocate:()Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyTime
aload 0
aload 2
iconst_1
iconst_0
invokevirtual org.jruby.RubyTime.initTime:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;ZZ)Lorg/jruby/RubyTime;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"utc", "gm"}, required = 1, optional = 9, meta = true)
MethodParameters:
Name Flags
context
recv
args
public static org.jruby.RubyTime load(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/RubyTime;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 0
checkcast org.jruby.RubyClass
invokevirtual org.jruby.RubyClass.allocate:()Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyTime
aload 1
invokestatic org.jruby.RubyTime.s_mload:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyTime;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyTime;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 1 from Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
recv
from
block
public static org.jruby.RubyTime load(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyTime;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
checkcast org.jruby.RubyClass
invokevirtual org.jruby.RubyClass.allocate:()Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyTime
aload 2
invokestatic org.jruby.RubyTime.s_mload:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyTime;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyTime;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 from Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"_load"}, meta = true)
MethodParameters:
Name Flags
context
recv
from
public java.lang.Class<?> getJavaClass();
descriptor: ()Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc Ljava/util/Date;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
Signature: ()Ljava/lang/Class<*>;
public <T> T toJava(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc Ljava/util/Date;
if_acmpeq 1
aload 1
ldc Ljava/lang/Comparable;
if_acmpeq 1
aload 1
ldc Ljava/lang/Object;
if_acmpne 2
1: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual org.jruby.RubyTime.getJavaDate:()Ljava/util/Date;
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
2: StackMap locals:
StackMap stack:
aload 1
ldc Ljava/util/Calendar;
if_acmpeq 3
aload 1
ldc Ljava/util/GregorianCalendar;
if_acmpne 4
3: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.toGregorianCalendar:()Ljava/util/GregorianCalendar;
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
4: StackMap locals:
StackMap stack:
aload 1
ldc Lorg/joda/time/DateTime;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 6
aload 1
ldc Ljava/io/Serializable;
if_acmpeq 6
5: aload 1
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
6: StackMap locals:
StackMap stack:
aload 1
ldc Ljava/sql/Date;
if_acmpne 8
7: aload 1
new java.sql.Date
dup
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getMillis:()J
invokespecial java.sql.Date.<init>:(J)V
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
8: StackMap locals:
StackMap stack:
aload 1
ldc Ljava/sql/Time;
if_acmpne 10
9: aload 1
new java.sql.Time
dup
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getMillis:()J
invokespecial java.sql.Time.<init>:(J)V
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
10: StackMap locals:
StackMap stack:
aload 1
ldc Ljava/sql/Timestamp;
if_acmpne 14
11: new java.sql.Timestamp
dup
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getMillis:()J
invokespecial java.sql.Timestamp.<init>:(J)V
astore 2
start local 2 12: aload 2
aload 0
invokevirtual org.jruby.RubyTime.getNanos:()I
invokevirtual java.sql.Timestamp.setNanos:(I)V
13: aload 1
aload 2
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 2 14: StackMap locals:
StackMap stack:
aload 1
ldc Ljava/io/Serializable;
if_acmpeq 23
15: aload 1
ldc Ljava/time/Instant;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 17
16: aload 0
invokevirtual org.jruby.RubyTime.toInstant:()Ljava/time/Instant;
areturn
17: StackMap locals:
StackMap stack:
aload 1
ldc Ljava/time/LocalDateTime;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 19
18: aload 0
invokevirtual org.jruby.RubyTime.toLocalDateTime:()Ljava/time/LocalDateTime;
areturn
19: StackMap locals:
StackMap stack:
aload 1
ldc Ljava/time/ZonedDateTime;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 21
20: aload 0
invokevirtual org.jruby.RubyTime.toZonedDateTime:()Ljava/time/ZonedDateTime;
areturn
21: StackMap locals:
StackMap stack:
aload 1
ldc Ljava/time/OffsetDateTime;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 23
22: aload 0
invokevirtual org.jruby.RubyTime.toOffsetDateTime:()Ljava/time/OffsetDateTime;
areturn
23: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial org.jruby.RubyObject.toJava:(Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/jruby/RubyTime;
0 24 1 target Ljava/lang/Class<TT;>;
12 14 2 timestamp Ljava/sql/Timestamp;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
target
public long getTimeInMillis();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getMillis:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public int getYear();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getYear:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public int getMonth();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getMonthOfYear:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public int getDay();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getDayOfMonth:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public int getHour();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getHourOfDay:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public int getMinute();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getMinuteOfHour:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public int getSecond();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getSecondOfMinute:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public java.util.Date getJavaDate();
descriptor: ()Ljava/util/Date;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.toDate:()Ljava/util/Date;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public java.time.Instant toInstant();
descriptor: ()Ljava/time/Instant;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getTimeInMillis:()J
lstore 1
start local 1 1: lload 1
ldc 1000
invokestatic java.lang.Math.floorDiv:(JJ)J
lstore 3
start local 3 2: aload 0
invokevirtual org.jruby.RubyTime.getNSec:()J
lload 1
ldc 1000
invokestatic java.lang.Math.floorMod:(JJ)J
ldc 1000000
lmul
ladd
lstore 5
start local 5 3: lload 3
lload 5
invokestatic java.time.Instant.ofEpochSecond:(JJ)Ljava/time/Instant;
areturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/RubyTime;
1 4 1 millis J
2 4 3 sec J
3 4 5 nanoAdj J
public java.time.LocalDateTime toLocalDateTime();
descriptor: ()Ljava/time/LocalDateTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.getYear:()I
aload 0
invokevirtual org.jruby.RubyTime.getMonth:()I
aload 0
invokevirtual org.jruby.RubyTime.getDay:()I
aload 0
invokevirtual org.jruby.RubyTime.getHour:()I
aload 0
invokevirtual org.jruby.RubyTime.getMinute:()I
aload 0
invokevirtual org.jruby.RubyTime.getSecond:()I
aload 0
invokevirtual org.jruby.RubyTime.getNanos:()I
invokestatic java.time.LocalDateTime.of:(IIIIIII)Ljava/time/LocalDateTime;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public java.time.ZonedDateTime toZonedDateTime();
descriptor: ()Ljava/time/ZonedDateTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyTime.toLocalDateTime:()Ljava/time/LocalDateTime;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getZone:()Lorg/joda/time/DateTimeZone;
invokevirtual org.joda.time.DateTimeZone.getID:()Ljava/lang/String;
invokestatic java.time.ZoneId.of:(Ljava/lang/String;)Ljava/time/ZoneId;
invokestatic java.time.ZonedDateTime.of:(Ljava/time/LocalDateTime;Ljava/time/ZoneId;)Ljava/time/ZonedDateTime;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyTime;
public java.time.OffsetDateTime toOffsetDateTime();
descriptor: ()Ljava/time/OffsetDateTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getZone:()Lorg/joda/time/DateTimeZone;
aload 0
getfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
invokevirtual org.joda.time.DateTime.getMillis:()J
invokevirtual org.joda.time.DateTimeZone.getOffset:(J)I
sipush 1000
idiv
istore 1
start local 1 1: aload 0
invokevirtual org.jruby.RubyTime.toLocalDateTime:()Ljava/time/LocalDateTime;
iload 1
invokestatic java.time.ZoneOffset.ofTotalSeconds:(I)Ljava/time/ZoneOffset;
invokestatic java.time.OffsetDateTime.of:(Ljava/time/LocalDateTime;Ljava/time/ZoneOffset;)Ljava/time/OffsetDateTime;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyTime;
1 2 1 offset I
public static double convertTimeInterval(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)D
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.jruby.RubyNumeric
ifeq 3
1: aload 1
checkcast org.jruby.RubyNumeric
invokevirtual org.jruby.RubyNumeric.getDoubleValue:()D
dstore 2
start local 2 2: goto 20
end local 2 3: StackMap locals:
StackMap stack:
aload 0
invokestatic org.jruby.RubyTime.sites:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/JavaSites$TimeSites;
getfield org.jruby.runtime.JavaSites$TimeSites.respond_to_divmod:Lorg/jruby/runtime/callsite/RespondToCallSite;
aload 0
aload 1
aload 1
invokevirtual org.jruby.runtime.callsite.RespondToCallSite.respondsTo:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Z
ifeq 11
4: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 4
start local 4 5: aload 0
invokestatic org.jruby.RubyTime.sites:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/JavaSites$TimeSites;
getfield org.jruby.runtime.JavaSites$TimeSites.divmod:Lorg/jruby/runtime/callsite/CachingCallSite;
aload 0
aload 1
aload 1
lconst_1
invokevirtual org.jruby.runtime.callsite.CachingCallSite.call:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;J)Lorg/jruby/runtime/builtin/IRubyObject;
astore 5
start local 5 6: aload 5
instanceof org.jruby.RubyArray
ifeq 10
7: aload 5
checkcast org.jruby.RubyArray
lconst_0
invokevirtual org.jruby.RubyArray.eltOk:(J)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyNumeric
invokevirtual org.jruby.RubyNumeric.getDoubleValue:()D
dstore 2
start local 2 8: dload 2
aload 5
checkcast org.jruby.RubyArray
lconst_1
invokevirtual org.jruby.RubyArray.eltOk:(J)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyNumeric
invokevirtual org.jruby.RubyNumeric.getDoubleValue:()D
dadd
dstore 2
9: goto 20
end local 2 10: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject top top org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 4
aload 4
ldc "unexpected divmod result: into %s"
aload 4
aload 5
invokeinterface org.jruby.runtime.builtin.IRubyObject.getMetaClass:()Lorg/jruby/RubyClass;
invokestatic org.jruby.util.RubyStringBuilder.types:(Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)Lorg/jruby/RubyString;
invokestatic org.jruby.util.RubyStringBuilder.str:(Lorg/jruby/Ruby;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Ljava/lang/String;
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 5 end local 4 11: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject
StackMap stack:
dconst_0
dstore 2
start local 2 12: iconst_1
istore 4
start local 4 13: aload 1
instanceof org.jruby.java.proxies.JavaProxy
ifeq 17
14: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToFloat:()Lorg/jruby/RubyFloat;
getfield org.jruby.RubyFloat.value:D
dstore 2
iconst_0
istore 4
15: goto 17
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject double int
StackMap stack: org.jruby.exceptions.TypeError
16: pop
17: StackMap locals:
StackMap stack:
iload 4
ifeq 20
18: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 5
start local 5 19: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 5
ldc "can't convert "
aload 5
aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.getMetaClass:()Lorg/jruby/RubyClass;
invokestatic org.jruby.util.RubyStringBuilder.types:(Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)Lorg/jruby/RubyString;
ldc " into time interval"
invokestatic org.jruby.util.RubyStringBuilder.str:(Lorg/jruby/Ruby;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;)Ljava/lang/String;
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 5 end local 4 20: StackMap locals:
StackMap stack:
dload 2
dconst_0
dcmpg
ifge 21
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "time interval must be positive"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
21: StackMap locals:
StackMap stack:
dload 2
dreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 context Lorg/jruby/runtime/ThreadContext;
0 22 1 sec Lorg/jruby/runtime/builtin/IRubyObject;
2 3 2 seconds D
8 10 2 seconds D
12 22 2 seconds D
5 11 4 runtime Lorg/jruby/Ruby;
6 11 5 result Lorg/jruby/runtime/builtin/IRubyObject;
13 20 4 raise Z
19 20 5 runtime Lorg/jruby/Ruby;
Exception table:
from to target type
14 15 16 Class org.jruby.exceptions.TypeError
MethodParameters:
Name Flags
context
sec
private static org.jruby.RubyTime s_mload(org.jruby.runtime.ThreadContext, org.jruby.RubyTime, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyTime;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyTime;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=15, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.jruby.RubyTime.TIME0:Lorg/joda/time/DateTime;
astore 3
start local 3 1: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getBytes:()[B
astore 4
start local 4 2: aload 4
arraylength
bipush 8
if_icmpeq 4
3: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "marshaled time format differ"
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
4: StackMap locals: org.joda.time.DateTime byte[]
StackMap stack:
iconst_0
istore 5
start local 5 5: iconst_0
istore 6
start local 6 6: iconst_0
istore 7
start local 7 7: goto 10
8: StackMap locals: int int int
StackMap stack:
iload 5
aload 4
iload 7
baload
sipush 255
iand
bipush 8
iload 7
imul
ishl
ior
istore 5
9: iinc 7 1
StackMap locals:
StackMap stack:
10: iload 7
iconst_4
if_icmplt 8
end local 7 11: iconst_4
istore 7
start local 7 12: goto 15
13: StackMap locals:
StackMap stack:
iload 6
aload 4
iload 7
baload
sipush 255
iand
bipush 8
iload 7
iconst_4
isub
imul
ishl
ior
istore 6
14: iinc 7 1
StackMap locals:
StackMap stack:
15: iload 7
bipush 8
if_icmplt 13
end local 7 16: iconst_0
istore 7
start local 7 17: iload 5
ldc -2147483648
iand
ifne 21
18: aload 3
iload 5
i2l
ldc 1000
lmul
invokevirtual org.joda.time.DateTime.withMillis:(J)Lorg/joda/time/DateTime;
astore 3
19: aload 1
iload 6
ldc 1048575
iand
sipush 1000
irem
i2l
invokevirtual org.jruby.RubyTime.setUSec:(J)V
20: goto 33
21: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.RubyTime org.jruby.runtime.builtin.IRubyObject org.joda.time.DateTime byte[] int int int
StackMap stack:
iload 5
ldc 2147483647
iand
istore 5
22: iload 5
bipush 30
iushr
iconst_1
iand
iconst_1
if_icmpne 23
iconst_1
goto 24
StackMap locals:
StackMap stack:
23: iconst_0
StackMap locals:
StackMap stack: int
24: istore 7
25: aload 3
iload 5
bipush 14
iushr
ldc 65535
iand
sipush 1900
iadd
invokevirtual org.joda.time.DateTime.withYear:(I)Lorg/joda/time/DateTime;
astore 3
26: aload 3
iload 5
bipush 10
iushr
bipush 15
iand
iconst_1
iadd
invokevirtual org.joda.time.DateTime.withMonthOfYear:(I)Lorg/joda/time/DateTime;
astore 3
27: aload 3
iload 5
iconst_5
iushr
bipush 31
iand
invokevirtual org.joda.time.DateTime.withDayOfMonth:(I)Lorg/joda/time/DateTime;
astore 3
28: aload 3
iload 5
bipush 31
iand
invokevirtual org.joda.time.DateTime.withHourOfDay:(I)Lorg/joda/time/DateTime;
astore 3
29: aload 3
iload 6
bipush 26
iushr
bipush 63
iand
invokevirtual org.joda.time.DateTime.withMinuteOfHour:(I)Lorg/joda/time/DateTime;
astore 3
30: aload 3
iload 6
bipush 20
iushr
bipush 63
iand
invokevirtual org.joda.time.DateTime.withSecondOfMinute:(I)Lorg/joda/time/DateTime;
astore 3
31: aload 3
iload 6
ldc 1048575
iand
sipush 1000
idiv
invokevirtual org.joda.time.DateTime.withMillisOfSecond:(I)Lorg/joda/time/DateTime;
astore 3
32: aload 1
iload 6
ldc 1048575
iand
sipush 1000
irem
i2l
invokevirtual org.jruby.RubyTime.setUSec:(J)V
33: StackMap locals:
StackMap stack:
aload 1
aload 3
invokevirtual org.jruby.RubyTime.setDateTime:(Lorg/joda/time/DateTime;)V
34: iload 7
ifne 35
aload 1
invokevirtual org.jruby.RubyTime.localtime:()Lorg/jruby/RubyTime;
pop
35: StackMap locals:
StackMap stack:
aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.getInstanceVariables:()Lorg/jruby/runtime/builtin/InstanceVariables;
aload 1
invokeinterface org.jruby.runtime.builtin.InstanceVariables.copyInstanceVariablesInto:(Lorg/jruby/runtime/builtin/InstanceVariables;)V
36: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.getInternalVariables:()Lorg/jruby/runtime/builtin/InternalVariables;
ldc "nano_num"
invokeinterface org.jruby.runtime.builtin.InternalVariables.getInternalVariable:(Ljava/lang/String;)Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject
astore 8
start local 8 37: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.getInternalVariables:()Lorg/jruby/runtime/builtin/InternalVariables;
ldc "nano_den"
invokeinterface org.jruby.runtime.builtin.InternalVariables.getInternalVariable:(Ljava/lang/String;)Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject
astore 9
start local 9 38: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.getInternalVariables:()Lorg/jruby/runtime/builtin/InternalVariables;
ldc "offset"
invokeinterface org.jruby.runtime.builtin.InternalVariables.getInternalVariable:(Ljava/lang/String;)Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject
astore 10
start local 10 39: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.getInternalVariables:()Lorg/jruby/runtime/builtin/InternalVariables;
ldc "zone"
invokeinterface org.jruby.runtime.builtin.InternalVariables.getInternalVariable:(Ljava/lang/String;)Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject
astore 11
start local 11 40: aload 8
ifnull 43
aload 9
ifnull 43
41: aload 8
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToInteger:()Lorg/jruby/RubyInteger;
invokevirtual org.jruby.RubyInteger.getLongValue:()J
aload 9
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToInteger:()Lorg/jruby/RubyInteger;
invokevirtual org.jruby.RubyInteger.getLongValue:()J
ldiv
lstore 12
start local 12 42: aload 1
dup
getfield org.jruby.RubyTime.nsec:J
lload 12
ladd
putfield org.jruby.RubyTime.nsec:J
end local 12 43: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.RubyTime org.jruby.runtime.builtin.IRubyObject org.joda.time.DateTime byte[] int int int org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject
StackMap stack:
iconst_0
istore 12
start local 12 44: aload 10
ifnull 50
aload 10
ldc "to_int"
invokeinterface org.jruby.runtime.builtin.IRubyObject.respondsTo:(Ljava/lang/String;)Z
ifeq 50
45: aload 0
invokevirtual org.jruby.runtime.ThreadContext.getErrorInfo:()Lorg/jruby/runtime/builtin/IRubyObject;
astore 13
start local 13 46: aload 10
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToInteger:()Lorg/jruby/RubyInteger;
invokevirtual org.jruby.RubyInteger.getIntValue:()I
sipush 1000
imul
istore 12
47: goto 50
48: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.RubyTime org.jruby.runtime.builtin.IRubyObject org.joda.time.DateTime byte[] int int int org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject int org.jruby.runtime.builtin.IRubyObject
StackMap stack: org.jruby.exceptions.TypeError
pop
49: aload 0
aload 13
invokevirtual org.jruby.runtime.ThreadContext.setErrorInfo:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
end local 13 50: StackMap locals:
StackMap stack:
ldc ""
astore 13
start local 13 51: aload 11
ifnull 57
aload 11
ldc "to_str"
invokeinterface org.jruby.runtime.builtin.IRubyObject.respondsTo:(Ljava/lang/String;)Z
ifeq 57
52: aload 0
invokevirtual org.jruby.runtime.ThreadContext.getErrorInfo:()Lorg/jruby/runtime/builtin/IRubyObject;
astore 14
start local 14 53: aload 11
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.toString:()Ljava/lang/String;
astore 13
54: goto 57
55: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.RubyTime org.jruby.runtime.builtin.IRubyObject org.joda.time.DateTime byte[] int int int org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject int java.lang.String org.jruby.runtime.builtin.IRubyObject
StackMap stack: org.jruby.exceptions.TypeError
pop
56: aload 0
aload 14
invokevirtual org.jruby.runtime.ThreadContext.setErrorInfo:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
end local 14 57: StackMap locals:
StackMap stack:
aload 1
aload 3
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 13
iload 12
invokestatic org.jruby.RubyTime.getTimeZoneWithOffset:(Lorg/jruby/Ruby;Ljava/lang/String;I)Lorg/joda/time/DateTimeZone;
invokevirtual org.joda.time.DateTime.withZone:(Lorg/joda/time/DateTimeZone;)Lorg/joda/time/DateTime;
putfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
58: aload 1
areturn
end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 59 0 context Lorg/jruby/runtime/ThreadContext;
0 59 1 time Lorg/jruby/RubyTime;
0 59 2 from Lorg/jruby/runtime/builtin/IRubyObject;
1 59 3 dt Lorg/joda/time/DateTime;
2 59 4 fromAsBytes [B
5 59 5 p I
6 59 6 s I
7 11 7 i I
12 16 7 i I
17 59 7 utc Z
37 59 8 nano_num Lorg/jruby/runtime/builtin/IRubyObject;
38 59 9 nano_den Lorg/jruby/runtime/builtin/IRubyObject;
39 59 10 offsetVar Lorg/jruby/runtime/builtin/IRubyObject;
40 59 11 zoneVar Lorg/jruby/runtime/builtin/IRubyObject;
42 43 12 nanos J
44 59 12 offset I
46 50 13 $ex Lorg/jruby/runtime/builtin/IRubyObject;
51 59 13 zone Ljava/lang/String;
53 57 14 $ex Lorg/jruby/runtime/builtin/IRubyObject;
Exception table:
from to target type
46 47 48 Class org.jruby.exceptions.TypeError
53 54 55 Class org.jruby.exceptions.TypeError
MethodParameters:
Name Flags
context
time final
from
private org.jruby.RubyTime initTime(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[], boolean, boolean);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;ZZ)Lorg/jruby/RubyTime;
flags: (0x0002) ACC_PRIVATE
Code:
stack=10, locals=28, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 5
start local 5 1: bipush 7
istore 6
start local 6 2: iconst_0
istore 7
start local 7 3: iconst_0
istore 8
start local 8 4: lconst_0
lstore 9
start local 9 5: iload 3
ifeq 8
6: getstatic org.joda.time.DateTimeZone.UTC:Lorg/joda/time/DateTimeZone;
astore 11
start local 11 7: goto 21
end local 11 8: StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] int int org.jruby.Ruby int int int long
StackMap stack:
iload 4
ifeq 20
9: aload 2
arraylength
bipush 10
if_icmpne 13
aload 2
bipush 9
aaload
instanceof org.jruby.RubyString
ifeq 13
10: aload 1
aload 2
bipush 9
aaload
invokestatic org.jruby.RubyTime.getTimeZoneFromUtcOffset:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/joda/time/DateTimeZone;
astore 11
start local 11 11: iconst_1
istore 8
12: goto 21
end local 11 StackMap locals:
StackMap stack:
13: aload 2
arraylength
bipush 10
if_icmpne 18
aload 1
invokestatic org.jruby.RubyTime.sites:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/JavaSites$TimeSites;
getfield org.jruby.runtime.JavaSites$TimeSites.respond_to_to_int:Lorg/jruby/runtime/callsite/RespondToCallSite;
aload 1
aload 2
bipush 9
aaload
aload 2
bipush 9
aaload
invokevirtual org.jruby.runtime.callsite.RespondToCallSite.respondsTo:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Z
ifeq 18
14: aload 1
invokestatic org.jruby.RubyTime.sites:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/JavaSites$TimeSites;
getfield org.jruby.runtime.JavaSites$TimeSites.to_int:Lorg/jruby/runtime/callsite/CachingCallSite;
aload 1
aload 2
bipush 9
aaload
aload 2
bipush 9
aaload
invokevirtual org.jruby.runtime.callsite.CachingCallSite.call:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 12
start local 12 15: aload 5
aload 12
checkcast org.jruby.RubyNumeric
invokevirtual org.jruby.RubyNumeric.getLongValue:()J
invokestatic org.jruby.RubyTime.getTimeZone:(Lorg/jruby/Ruby;J)Lorg/joda/time/DateTimeZone;
astore 11
start local 11 16: iconst_1
istore 8
end local 12 17: goto 21
end local 11 18: StackMap locals:
StackMap stack:
aload 5
invokestatic org.jruby.RubyTime.getLocalTimeZone:(Lorg/jruby/Ruby;)Lorg/joda/time/DateTimeZone;
astore 11
start local 11 19: goto 21
end local 11 20: StackMap locals:
StackMap stack:
aload 5
invokestatic org.jruby.RubyTime.getLocalTimeZone:(Lorg/jruby/Ruby;)Lorg/joda/time/DateTimeZone;
astore 11
start local 11 21: StackMap locals: org.joda.time.DateTimeZone
StackMap stack:
aload 2
arraylength
bipush 10
if_icmpne 25
22: aload 2
bipush 8
aaload
instanceof org.jruby.RubyBoolean
ifeq 23
aload 2
bipush 8
aaload
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
istore 7
23: StackMap locals:
StackMap stack:
bipush 7
anewarray org.jruby.runtime.builtin.IRubyObject
dup
iconst_0
aload 2
iconst_5
aaload
aastore
dup
iconst_1
aload 2
iconst_4
aaload
aastore
dup
iconst_2
aload 2
iconst_3
aaload
aastore
dup
iconst_3
aload 2
iconst_2
aaload
aastore
dup
iconst_4
aload 2
iconst_1
aaload
aastore
dup
iconst_5
aload 2
iconst_0
aaload
aastore
dup
bipush 6
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
aastore
astore 2
24: goto 35
25: StackMap locals:
StackMap stack:
aload 2
arraylength
istore 6
26: iload 6
bipush 7
if_icmpge 35
27: bipush 7
anewarray org.jruby.runtime.builtin.IRubyObject
astore 12
start local 12 28: aload 2
aload 12
iconst_0
iload 6
invokestatic org.jruby.util.ArraySupport.copy:([Ljava/lang/Object;[Ljava/lang/Object;II)V
29: iload 6
istore 13
start local 13 30: goto 32
StackMap locals: org.jruby.runtime.builtin.IRubyObject[] int
StackMap stack:
31: aload 12
iload 13
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
aastore
iinc 13 1
StackMap locals:
StackMap stack:
32: iload 13
bipush 7
if_icmplt 31
end local 13 33: aload 12
astore 2
34: bipush 7
istore 6
end local 12 35: StackMap locals:
StackMap stack:
aload 2
iconst_0
aaload
instanceof org.jruby.RubyString
ifeq 37
36: aload 2
iconst_0
aload 5
aload 2
iconst_0
aaload
checkcast org.jruby.RubyString
bipush 10
iconst_0
invokestatic org.jruby.RubyNumeric.str2inum:(Lorg/jruby/Ruby;Lorg/jruby/RubyString;IZ)Lorg/jruby/RubyInteger;
aastore
37: StackMap locals:
StackMap stack:
aload 2
iconst_0
aaload
invokestatic org.jruby.RubyNumeric.num2long:(Lorg/jruby/runtime/builtin/IRubyObject;)J
l2i
istore 12
start local 12 38: iconst_1
istore 13
start local 13 39: iload 6
iconst_1
if_icmple 44
40: aload 2
iconst_1
aaload
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpeq 42
41: aload 1
aload 2
iconst_1
aaload
invokestatic org.jruby.RubyTime.parseMonth:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 13
42: StackMap locals: int int
StackMap stack:
iload 13
iconst_1
if_icmplt 43
iload 13
bipush 12
if_icmple 44
43: StackMap locals:
StackMap stack:
aload 5
new java.lang.StringBuilder
dup
ldc "Argument out of range: for month: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 13
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
44: StackMap locals:
StackMap stack:
aload 1
aload 2
iconst_2
iconst_1
invokestatic org.jruby.RubyTime.argToInt:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;II)I
istore 14
start local 14 45: aload 1
aload 2
iconst_3
iconst_0
invokestatic org.jruby.RubyTime.argToInt:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;II)I
istore 15
start local 15 46: aload 1
aload 2
iconst_4
iconst_0
invokestatic org.jruby.RubyTime.argToInt:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;II)I
istore 16
start local 16 47: aload 1
aload 2
iconst_5
iconst_0
invokestatic org.jruby.RubyTime.argToInt:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;II)I
istore 17
start local 17 48: iload 14
iconst_1
if_icmplt 53
iload 14
bipush 31
if_icmpgt 53
49: iload 15
iflt 53
iload 15
bipush 24
if_icmpgt 53
50: iload 15
bipush 24
if_icmpne 51
iload 16
ifgt 53
iload 17
ifgt 53
51: StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] int int org.jruby.Ruby int int int long org.joda.time.DateTimeZone int int int int int int
StackMap stack:
iload 16
iflt 53
iload 16
bipush 59
if_icmpgt 53
52: iload 17
iflt 53
iload 17
bipush 60
if_icmple 54
53: StackMap locals:
StackMap stack:
aload 5
ldc "argument out of range."
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
54: StackMap locals:
StackMap stack:
new org.joda.time.DateTime
dup
iload 12
iload 13
iconst_1
iconst_0
iconst_0
iconst_0
iconst_0
getstatic org.joda.time.DateTimeZone.UTC:Lorg/joda/time/DateTimeZone;
invokespecial org.joda.time.DateTime.<init>:(IIIIIIILorg/joda/time/DateTimeZone;)V
astore 18
start local 18 55: aload 18
invokevirtual org.joda.time.DateTime.getChronology:()Lorg/joda/time/Chronology;
astore 19
start local 19 56: aload 18
invokevirtual org.joda.time.DateTime.getMillis:()J
lstore 20
start local 20 57: aload 19
invokevirtual org.joda.time.Chronology.days:()Lorg/joda/time/DurationField;
lload 20
iload 14
iconst_1
isub
invokevirtual org.joda.time.DurationField.add:(JI)J
lstore 20
58: iload 15
ifeq 59
aload 19
invokevirtual org.joda.time.Chronology.hours:()Lorg/joda/time/DurationField;
lload 20
iload 15
invokevirtual org.joda.time.DurationField.add:(JI)J
lstore 20
59: StackMap locals: org.joda.time.DateTime org.joda.time.Chronology long
StackMap stack:
iload 16
ifeq 60
aload 19
invokevirtual org.joda.time.Chronology.minutes:()Lorg/joda/time/DurationField;
lload 20
iload 16
invokevirtual org.joda.time.DurationField.add:(JI)J
lstore 20
60: StackMap locals:
StackMap stack:
iload 17
ifeq 61
aload 19
invokevirtual org.joda.time.Chronology.seconds:()Lorg/joda/time/DurationField;
lload 20
iload 17
invokevirtual org.joda.time.DurationField.add:(JI)J
lstore 20
61: StackMap locals:
StackMap stack:
aload 2
iconst_5
aaload
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpeq 78
aload 2
bipush 6
aaload
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpne 78
62: aload 2
iconst_5
aaload
instanceof org.jruby.RubyRational
ifeq 72
63: aload 2
iconst_5
aaload
checkcast org.jruby.RubyRational
astore 22
start local 22 64: aload 22
invokevirtual org.jruby.RubyRational.isNegative:()Z
ifeq 66
65: aload 5
ldc "argument out of range."
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
66: StackMap locals: org.jruby.RubyRational
StackMap stack:
aload 22
aload 1
aload 5
ldc 1000000000
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
invokevirtual org.jruby.RubyRational.op_mul:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyInteger;)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyRational
astore 23
start local 23 67: aload 23
invokevirtual org.jruby.RubyRational.getLongValue:()J
lstore 24
start local 24 68: lload 24
ldc 1000000
ldiv
lstore 26
start local 26 69: lload 24
lload 26
ldc 1000000
lmul
lsub
lstore 9
70: aload 19
invokevirtual org.joda.time.Chronology.millis:()Lorg/joda/time/DurationField;
lload 20
lload 26
ldc 1000
lrem
invokevirtual org.joda.time.DurationField.add:(JJ)J
lstore 20
end local 26 end local 24 end local 23 end local 22 71: goto 78
72: StackMap locals:
StackMap stack:
aload 1
aload 2
iconst_5
aaload
invokestatic org.jruby.RubyFloat.num2dbl:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)D
dstore 22
start local 22 73: dload 22
dconst_0
dcmpg
iflt 74
dload 22
ldc 1.0E9
dcmpl
iflt 75
74: StackMap locals: double
StackMap stack:
aload 5
ldc "argument out of range."
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
75: StackMap locals:
StackMap stack:
dload 22
ldc 1000.0
dmul
d2i
sipush 1000
irem
istore 24
start local 24 76: aload 19
invokevirtual org.joda.time.Chronology.millis:()Lorg/joda/time/DurationField;
lload 20
iload 24
invokevirtual org.joda.time.DurationField.add:(JI)J
lstore 20
77: dload 22
ldc 1.0E9
dmul
d2l
ldc 1000000
lrem
lstore 9
end local 24 end local 22 78: StackMap locals:
StackMap stack:
aload 18
lload 20
invokevirtual org.joda.time.DateTime.withMillis:(J)Lorg/joda/time/DateTime;
astore 18
79: aload 18
aload 11
invokevirtual org.joda.time.DateTime.withZoneRetainFields:(Lorg/joda/time/DateTimeZone;)Lorg/joda/time/DateTime;
astore 18
80: aload 18
invokevirtual org.joda.time.DateTime.withEarlierOffsetAtOverlap:()Lorg/joda/time/DateTime;
astore 22
start local 22 81: aload 18
invokevirtual org.joda.time.DateTime.withLaterOffsetAtOverlap:()Lorg/joda/time/DateTime;
astore 23
start local 23 82: aload 11
aload 22
invokevirtual org.joda.time.DateTimeZone.getOffset:(Lorg/joda/time/ReadableInstant;)I
istore 24
start local 24 83: aload 11
aload 23
invokevirtual org.joda.time.DateTimeZone.getOffset:(Lorg/joda/time/ReadableInstant;)I
istore 25
start local 25 84: iload 7
ifeq 89
85: iload 24
iload 25
if_icmple 86
aload 22
goto 87
StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] int int org.jruby.Ruby int int int long org.joda.time.DateTimeZone int int int int int int org.joda.time.DateTime org.joda.time.Chronology long org.joda.time.DateTime org.joda.time.DateTime int int
StackMap stack:
86: aload 23
StackMap locals:
StackMap stack: org.joda.time.DateTime
87: astore 18
88: goto 95
89: StackMap locals:
StackMap stack:
iload 24
iload 25
if_icmple 90
aload 23
goto 91
StackMap locals:
StackMap stack:
90: aload 22
StackMap locals:
StackMap stack: org.joda.time.DateTime
91: astore 18
end local 25 end local 24 end local 23 end local 22 end local 20 end local 19 92: goto 95
end local 18 93: StackMap locals: org.jruby.RubyTime org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] int int org.jruby.Ruby int int int long org.joda.time.DateTimeZone int int int int int int
StackMap stack: org.joda.time.IllegalFieldValueException
pop
94: aload 5
ldc "time out of range"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
start local 18 95: StackMap locals: org.joda.time.DateTime
StackMap stack:
aload 2
arraylength
bipush 8
if_icmpeq 123
aload 2
bipush 6
aaload
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpeq 123
96: aload 2
bipush 6
aaload
instanceof org.jruby.RubyRational
ifeq 105
97: aload 2
bipush 6
aaload
checkcast org.jruby.RubyRational
astore 19
start local 19 98: aload 19
invokevirtual org.jruby.RubyRational.isNegative:()Z
ifeq 100
99: aload 5
ldc "argument out of range."
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
100: StackMap locals: org.jruby.RubyRational
StackMap stack:
aload 19
aload 1
aload 5
sipush 1000
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
invokevirtual org.jruby.RubyRational.op_mul:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyInteger;)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyRational
astore 20
start local 20 101: aload 20
aload 1
invokevirtual org.jruby.RubyRational.getDoubleValue:(Lorg/jruby/runtime/ThreadContext;)D
d2l
lstore 21
start local 21 102: aload 18
aload 18
invokevirtual org.joda.time.DateTime.getMillis:()J
lload 21
ldc 1000000
ldiv
ladd
invokevirtual org.joda.time.DateTime.withMillis:(J)Lorg/joda/time/DateTime;
astore 18
103: lload 21
ldc 1000000
lrem
lstore 9
end local 21 end local 20 end local 19 104: goto 123
StackMap locals:
StackMap stack:
105: aload 2
bipush 6
aaload
instanceof org.jruby.RubyFloat
ifeq 113
106: aload 2
bipush 6
aaload
checkcast org.jruby.RubyFloat
astore 19
start local 19 107: aload 19
invokevirtual org.jruby.RubyFloat.isNegative:()Z
ifeq 109
108: aload 5
ldc "argument out of range."
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
109: StackMap locals: org.jruby.RubyFloat
StackMap stack:
aload 19
getfield org.jruby.RubyFloat.value:D
dstore 20
start local 20 110: aload 18
aload 18
invokevirtual org.joda.time.DateTime.getMillis:()J
dload 20
ldc 1000.0
ddiv
d2l
ladd
invokevirtual org.joda.time.DateTime.withMillis:(J)Lorg/joda/time/DateTime;
astore 18
111: dload 20
ldc 1000.0
dmul
ldc 1000000.0
drem
invokestatic java.lang.Math.rint:(D)D
d2l
lstore 9
end local 20 end local 19 112: goto 123
113: StackMap locals:
StackMap stack:
aload 1
aload 2
bipush 6
iconst_0
invokestatic org.jruby.RubyTime.argToInt:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;II)I
istore 19
start local 19 114: iload 19
iflt 115
iload 19
ldc 1000000
if_icmplt 116
115: StackMap locals: int
StackMap stack:
aload 5
ldc "argument out of range."
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
116: StackMap locals:
StackMap stack:
iload 19
sipush 1000
irem
istore 20
start local 20 117: iload 19
sipush 1000
idiv
istore 21
start local 21 118: iload 19
ifge 121
119: iinc 21 -1
120: iinc 20 1000
121: StackMap locals: int int
StackMap stack:
aload 18
aload 18
invokevirtual org.joda.time.DateTime.getMillis:()J
iload 21
i2l
ladd
invokevirtual org.joda.time.DateTime.withMillis:(J)Lorg/joda/time/DateTime;
astore 18
122: aload 0
iload 20
i2l
invokevirtual org.jruby.RubyTime.setUSec:(J)V
end local 21 end local 20 end local 19 123: StackMap locals:
StackMap stack:
aload 0
aload 18
putfield org.jruby.RubyTime.dt:Lorg/joda/time/DateTime;
124: lload 9
lconst_0
lcmp
ifeq 125
aload 0
lload 9
invokevirtual org.jruby.RubyTime.setNSec:(J)V
125: StackMap locals:
StackMap stack:
aload 0
iload 8
invokevirtual org.jruby.RubyTime.setIsTzRelative:(Z)V
126: aload 0
areturn
end local 18 end local 17 end local 16 end local 15 end local 14 end local 13 end local 12 end local 11 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 127 0 this Lorg/jruby/RubyTime;
0 127 1 context Lorg/jruby/runtime/ThreadContext;
0 127 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 127 3 gmt Z
0 127 4 utcOffset Z
1 127 5 runtime Lorg/jruby/Ruby;
2 127 6 len I
3 127 7 isDst Z
4 127 8 setTzRelative Z
5 127 9 nanos J
7 8 11 dtz Lorg/joda/time/DateTimeZone;
11 13 11 dtz Lorg/joda/time/DateTimeZone;
16 18 11 dtz Lorg/joda/time/DateTimeZone;
19 20 11 dtz Lorg/joda/time/DateTimeZone;
21 127 11 dtz Lorg/joda/time/DateTimeZone;
15 17 12 offsetInt Lorg/jruby/runtime/builtin/IRubyObject;
28 35 12 newArgs [Lorg/jruby/runtime/builtin/IRubyObject;
30 33 13 i I
38 127 12 year I
39 127 13 month I
45 127 14 i_args0 I
46 127 15 i_args1 I
47 127 16 i_args2 I
48 127 17 i_args3 I
55 93 18 dt Lorg/joda/time/DateTime;
95 127 18 dt Lorg/joda/time/DateTime;
56 92 19 chrono Lorg/joda/time/Chronology;
57 92 20 instant J
64 71 22 rat Lorg/jruby/RubyRational;
67 71 23 nsec Lorg/jruby/RubyRational;
68 71 24 full_nanos J
69 71 26 millis J
73 78 22 secs D
76 78 24 int_millis I
81 92 22 beforeDstBoundary Lorg/joda/time/DateTime;
82 92 23 afterDstBoundary Lorg/joda/time/DateTime;
83 92 24 offsetBeforeBoundary I
84 92 25 offsetAfterBoundary I
98 104 19 rat Lorg/jruby/RubyRational;
101 104 20 nsec Lorg/jruby/RubyRational;
102 104 21 tmpNanos J
107 112 19 flo Lorg/jruby/RubyFloat;
110 112 20 micros D
114 123 19 i_args4 I
117 123 20 usec I
118 123 21 msec I
Exception table:
from to target type
54 92 93 Class org.joda.time.IllegalFieldValueException
MethodParameters:
Name Flags
context
args
gmt
utcOffset
private static int argToInt(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[], int, int);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;II)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
iload 2
aaload
astore 4
start local 4 1: aload 4
aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpeq 9
2: aload 4
instanceof org.jruby.RubyNumeric
ifne 8
3: aload 0
invokestatic org.jruby.RubyTime.sites:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/JavaSites$TimeSites;
astore 5
start local 5 4: aload 5
getfield org.jruby.runtime.JavaSites$TimeSites.respond_to_to_int:Lorg/jruby/runtime/callsite/RespondToCallSite;
aload 0
aload 4
aload 4
invokevirtual org.jruby.runtime.callsite.RespondToCallSite.respondsTo:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Z
ifeq 7
5: aload 1
iload 2
aload 5
getfield org.jruby.runtime.JavaSites$TimeSites.to_int:Lorg/jruby/runtime/callsite/CachingCallSite;
aload 0
aload 4
aload 4
invokevirtual org.jruby.runtime.callsite.CachingCallSite.call:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
dup_x2
aastore
astore 4
6: goto 8
7: StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.JavaSites$TimeSites
StackMap stack:
aload 1
iload 2
aload 5
getfield org.jruby.runtime.JavaSites$TimeSites.to_i:Lorg/jruby/runtime/callsite/CachingCallSite;
aload 0
aload 4
aload 4
invokevirtual org.jruby.runtime.callsite.CachingCallSite.call:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
dup_x2
aastore
astore 4
end local 5 8: StackMap locals:
StackMap stack:
aload 4
invokestatic org.jruby.RubyNumeric.num2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
ireturn
9: StackMap locals:
StackMap stack:
iload 3
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 context Lorg/jruby/runtime/ThreadContext;
0 10 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 10 2 i I
0 10 3 def I
1 10 4 arg Lorg/jruby/runtime/builtin/IRubyObject;
4 8 5 sites Lorg/jruby/runtime/JavaSites$TimeSites;
MethodParameters:
Name Flags
context final
args
i final
def final
private static int parseMonth(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.checkStringType:()Lorg/jruby/runtime/builtin/IRubyObject;
astore 2
start local 2 1: aload 2
aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpeq 33
2: aload 2
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
astore 3
start local 3 3: aload 3
invokevirtual java.lang.String.length:()I
iconst_3
if_icmpne 29
4: aload 3
dup
astore 4
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 12
96803: 5
96947: 6
99330: 7
101251: 8
104983: 9
105601: 10
105603: 11
107870: 12
107877: 13
109269: 14
109856: 15
113758: 16
default: 29
}
StackMap locals: org.jruby.runtime.builtin.IRubyObject java.lang.String java.lang.String
StackMap stack:
5: aload 4
ldc "apr"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 20
goto 29
StackMap locals:
StackMap stack:
6: aload 4
ldc "aug"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 24
goto 29
StackMap locals:
StackMap stack:
7: aload 4
ldc "dec"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 28
goto 29
StackMap locals:
StackMap stack:
8: aload 4
ldc "feb"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 18
goto 29
StackMap locals:
StackMap stack:
9: aload 4
ldc "jan"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 17
goto 29
StackMap locals:
StackMap stack:
10: aload 4
ldc "jul"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 23
goto 29
StackMap locals:
StackMap stack:
11: aload 4
ldc "jun"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 22
goto 29
StackMap locals:
StackMap stack:
12: aload 4
ldc "mar"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 19
goto 29
StackMap locals:
StackMap stack:
13: aload 4
ldc "may"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 21
goto 29
StackMap locals:
StackMap stack:
14: aload 4
ldc "nov"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 27
goto 29
StackMap locals:
StackMap stack:
15: aload 4
ldc "oct"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 26
goto 29
StackMap locals:
StackMap stack:
16: aload 4
ldc "sep"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 25
goto 29
17: StackMap locals:
StackMap stack:
iconst_1
ireturn
18: StackMap locals:
StackMap stack:
iconst_2
ireturn
19: StackMap locals:
StackMap stack:
iconst_3
ireturn
20: StackMap locals:
StackMap stack:
iconst_4
ireturn
21: StackMap locals:
StackMap stack:
iconst_5
ireturn
22: StackMap locals:
StackMap stack:
bipush 6
ireturn
23: StackMap locals:
StackMap stack:
bipush 7
ireturn
24: StackMap locals:
StackMap stack:
bipush 8
ireturn
25: StackMap locals:
StackMap stack:
bipush 9
ireturn
26: StackMap locals:
StackMap stack:
bipush 10
ireturn
27: StackMap locals:
StackMap stack:
bipush 11
ireturn
28: StackMap locals:
StackMap stack:
bipush 12
ireturn
29: StackMap locals:
StackMap stack:
aload 3
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
30: ireturn
31: StackMap locals:
StackMap stack: java.lang.NumberFormatException
pop
32: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "Argument out of range."
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 3 33: StackMap locals:
StackMap stack:
aload 1
invokestatic org.jruby.RubyNumeric.num2long:(Lorg/jruby/runtime/builtin/IRubyObject;)J
l2i
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 context Lorg/jruby/runtime/ThreadContext;
0 34 1 arg Lorg/jruby/runtime/builtin/IRubyObject;
1 34 2 tmp Lorg/jruby/runtime/builtin/IRubyObject;
3 33 3 monthStr Ljava/lang/String;
Exception table:
from to target type
29 30 31 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
context final
arg
private static org.jruby.runtime.JavaSites$TimeSites sites(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/JavaSites$TimeSites;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.ThreadContext.sites:Lorg/jruby/runtime/JavaSites;
getfield org.jruby.runtime.JavaSites.Time:Lorg/jruby/runtime/JavaSites$TimeSites;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
MethodParameters:
Name Flags
context
public static org.jruby.RubyTime new_local(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyTime;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
checkcast org.jruby.RubyClass
invokevirtual org.jruby.RubyClass.allocate:()Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyTime
aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 1
iconst_0
iconst_0
invokevirtual org.jruby.RubyTime.initTime:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;ZZ)Lorg/jruby/RubyTime;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
recv
args
public static org.jruby.RubyTime new_utc(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyTime;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
checkcast org.jruby.RubyClass
invokevirtual org.jruby.RubyClass.allocate:()Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyTime
aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 1
iconst_1
iconst_0
invokevirtual org.jruby.RubyTime.initTime:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;ZZ)Lorg/jruby/RubyTime;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
recv
args
public static org.jruby.runtime.builtin.IRubyObject new19(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
checkcast org.jruby.RubyClass
invokevirtual org.jruby.RubyClass.allocate:()Lorg/jruby/runtime/builtin/IRubyObject;
aload 0
ldc "initialize"
aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.callMethod:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
recv
args
static int[] $SWITCH_TABLE$org$jruby$runtime$ClassIndex();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.jruby.RubyTime.$SWITCH_TABLE$org$jruby$runtime$ClassIndex:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.jruby.runtime.ClassIndex.values:()[Lorg/jruby/runtime/ClassIndex;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.jruby.runtime.ClassIndex.ARRAY:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
iconst_4
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.jruby.runtime.ClassIndex.BASICOBJECT:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 39
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.jruby.runtime.ClassIndex.BIGDECIMAL:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 40
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic org.jruby.runtime.ClassIndex.BIGNUM:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
iconst_3
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic org.jruby.runtime.ClassIndex.BINDING:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 33
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
getstatic org.jruby.runtime.ClassIndex.CLASS:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 14
iastore
18: goto 20
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
19: pop
StackMap locals:
StackMap stack:
20: aload 0
getstatic org.jruby.runtime.ClassIndex.COMPLEX:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 21
iastore
21: goto 23
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
22: pop
StackMap locals:
StackMap stack:
23: aload 0
getstatic org.jruby.runtime.ClassIndex.CONTINUATION:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 38
iastore
24: goto 26
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
25: pop
StackMap locals:
StackMap stack:
26: aload 0
getstatic org.jruby.runtime.ClassIndex.CONVERTER:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 24
iastore
27: goto 29
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
28: pop
StackMap locals:
StackMap stack:
29: aload 0
getstatic org.jruby.runtime.ClassIndex.DIR:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 36
iastore
30: goto 32
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
31: pop
StackMap locals:
StackMap stack:
32: aload 0
getstatic org.jruby.runtime.ClassIndex.ENCODING:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 23
iastore
33: goto 35
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
34: pop
StackMap locals:
StackMap stack:
35: aload 0
getstatic org.jruby.runtime.ClassIndex.EXCEPTION:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 31
iastore
36: goto 38
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
37: pop
StackMap locals:
StackMap stack:
38: aload 0
getstatic org.jruby.runtime.ClassIndex.FALSE:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 8
iastore
39: goto 41
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
40: pop
StackMap locals:
StackMap stack:
41: aload 0
getstatic org.jruby.runtime.ClassIndex.FILE:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 27
iastore
42: goto 44
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
43: pop
StackMap locals:
StackMap stack:
44: aload 0
getstatic org.jruby.runtime.ClassIndex.FIXNUM:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
iconst_2
iastore
45: goto 47
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
46: pop
StackMap locals:
StackMap stack:
47: aload 0
getstatic org.jruby.runtime.ClassIndex.FLOAT:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 12
iastore
48: goto 50
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
49: pop
StackMap locals:
StackMap stack:
50: aload 0
getstatic org.jruby.runtime.ClassIndex.GENERATOR:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 25
iastore
51: goto 53
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
52: pop
StackMap locals:
StackMap stack:
53: aload 0
getstatic org.jruby.runtime.ClassIndex.HASH:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 11
iastore
54: goto 56
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
55: pop
StackMap locals:
StackMap stack:
56: aload 0
getstatic org.jruby.runtime.ClassIndex.INTEGER:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 17
iastore
57: goto 59
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
58: pop
StackMap locals:
StackMap stack:
59: aload 0
getstatic org.jruby.runtime.ClassIndex.IO:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 32
iastore
60: goto 62
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
61: pop
StackMap locals:
StackMap stack:
62: aload 0
getstatic org.jruby.runtime.ClassIndex.MATCHDATA:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 28
iastore
63: goto 65
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
64: pop
StackMap locals:
StackMap stack:
65: aload 0
getstatic org.jruby.runtime.ClassIndex.MAX_CLASSES:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 41
iastore
66: goto 68
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
67: pop
StackMap locals:
StackMap stack:
68: aload 0
getstatic org.jruby.runtime.ClassIndex.METHOD:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 35
iastore
69: goto 71
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
70: pop
StackMap locals:
StackMap stack:
71: aload 0
getstatic org.jruby.runtime.ClassIndex.MODULE:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 13
iastore
72: goto 74
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
73: pop
StackMap locals:
StackMap stack:
74: aload 0
getstatic org.jruby.runtime.ClassIndex.NIL:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 6
iastore
75: goto 77
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
76: pop
StackMap locals:
StackMap stack:
77: aload 0
getstatic org.jruby.runtime.ClassIndex.NO_INDEX:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
iconst_1
iastore
78: goto 80
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
79: pop
StackMap locals:
StackMap stack:
80: aload 0
getstatic org.jruby.runtime.ClassIndex.NUMERIC:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 18
iastore
81: goto 83
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
82: pop
StackMap locals:
StackMap stack:
83: aload 0
getstatic org.jruby.runtime.ClassIndex.OBJECT:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 15
iastore
84: goto 86
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
85: pop
StackMap locals:
StackMap stack:
86: aload 0
getstatic org.jruby.runtime.ClassIndex.PROC:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 34
iastore
87: goto 89
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
88: pop
StackMap locals:
StackMap stack:
89: aload 0
getstatic org.jruby.runtime.ClassIndex.RANGE:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 19
iastore
90: goto 92
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
91: pop
StackMap locals:
StackMap stack:
92: aload 0
getstatic org.jruby.runtime.ClassIndex.RATIONAL:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 22
iastore
93: goto 95
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
94: pop
StackMap locals:
StackMap stack:
95: aload 0
getstatic org.jruby.runtime.ClassIndex.REGEXP:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 10
iastore
96: goto 98
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
97: pop
StackMap locals:
StackMap stack:
98: aload 0
getstatic org.jruby.runtime.ClassIndex.STRING:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
iconst_5
iastore
99: goto 101
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
100: pop
StackMap locals:
StackMap stack:
101: aload 0
getstatic org.jruby.runtime.ClassIndex.STRUCT:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 16
iastore
102: goto 104
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
103: pop
StackMap locals:
StackMap stack:
104: aload 0
getstatic org.jruby.runtime.ClassIndex.SYMBOL:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 9
iastore
105: goto 107
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
106: pop
StackMap locals:
StackMap stack:
107: aload 0
getstatic org.jruby.runtime.ClassIndex.THREAD:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 30
iastore
108: goto 110
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
109: pop
StackMap locals:
StackMap stack:
110: aload 0
getstatic org.jruby.runtime.ClassIndex.THREADGROUP:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 29
iastore
111: goto 113
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
112: pop
StackMap locals:
StackMap stack:
113: aload 0
getstatic org.jruby.runtime.ClassIndex.TIME:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 20
iastore
114: goto 116
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
115: pop
StackMap locals:
StackMap stack:
116: aload 0
getstatic org.jruby.runtime.ClassIndex.TRUE:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 7
iastore
117: goto 119
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
118: pop
StackMap locals:
StackMap stack:
119: aload 0
getstatic org.jruby.runtime.ClassIndex.UNBOUNDMETHOD:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 37
iastore
120: goto 122
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
121: pop
StackMap locals:
StackMap stack:
122: aload 0
getstatic org.jruby.runtime.ClassIndex.YIELDER:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.runtime.ClassIndex.ordinal:()I
bipush 26
iastore
123: goto 125
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
124: pop
StackMap locals:
StackMap stack:
125: aload 0
dup
putstatic org.jruby.RubyTime.$SWITCH_TABLE$org$jruby$runtime$ClassIndex:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
17 18 19 Class java.lang.NoSuchFieldError
20 21 22 Class java.lang.NoSuchFieldError
23 24 25 Class java.lang.NoSuchFieldError
26 27 28 Class java.lang.NoSuchFieldError
29 30 31 Class java.lang.NoSuchFieldError
32 33 34 Class java.lang.NoSuchFieldError
35 36 37 Class java.lang.NoSuchFieldError
38 39 40 Class java.lang.NoSuchFieldError
41 42 43 Class java.lang.NoSuchFieldError
44 45 46 Class java.lang.NoSuchFieldError
47 48 49 Class java.lang.NoSuchFieldError
50 51 52 Class java.lang.NoSuchFieldError
53 54 55 Class java.lang.NoSuchFieldError
56 57 58 Class java.lang.NoSuchFieldError
59 60 61 Class java.lang.NoSuchFieldError
62 63 64 Class java.lang.NoSuchFieldError
65 66 67 Class java.lang.NoSuchFieldError
68 69 70 Class java.lang.NoSuchFieldError
71 72 73 Class java.lang.NoSuchFieldError
74 75 76 Class java.lang.NoSuchFieldError
77 78 79 Class java.lang.NoSuchFieldError
80 81 82 Class java.lang.NoSuchFieldError
83 84 85 Class java.lang.NoSuchFieldError
86 87 88 Class java.lang.NoSuchFieldError
89 90 91 Class java.lang.NoSuchFieldError
92 93 94 Class java.lang.NoSuchFieldError
95 96 97 Class java.lang.NoSuchFieldError
98 99 100 Class java.lang.NoSuchFieldError
101 102 103 Class java.lang.NoSuchFieldError
104 105 106 Class java.lang.NoSuchFieldError
107 108 109 Class java.lang.NoSuchFieldError
110 111 112 Class java.lang.NoSuchFieldError
113 114 115 Class java.lang.NoSuchFieldError
116 117 118 Class java.lang.NoSuchFieldError
119 120 121 Class java.lang.NoSuchFieldError
122 123 124 Class java.lang.NoSuchFieldError
}
SourceFile: "RubyTime.java"
NestMembers:
org.jruby.RubyTime$1
InnerClasses:
public final RubyHashEntry = org.jruby.RubyHash$RubyHashEntry of org.jruby.RubyHash
org.jruby.RubyTime$1
public CheckedSites = org.jruby.runtime.JavaSites$CheckedSites of org.jruby.runtime.JavaSites
public TimeSites = org.jruby.runtime.JavaSites$TimeSites of org.jruby.runtime.JavaSites
public abstract RecursiveFunctionEx = org.jruby.runtime.ThreadContext$RecursiveFunctionEx of org.jruby.runtime.ThreadContext
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyClass(name = {"Time"}, include = {"Comparable"})