public class org.jruby.javasupport.ext.JavaTime$Instant
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.javasupport.ext.JavaTime$Instant
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/javasupport/ext/JavaTime$Instant;
static org.jruby.RubyModule define(org.jruby.Ruby, org.jruby.RubyModule);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)Lorg/jruby/RubyModule;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc Lorg/jruby/javasupport/ext/JavaTime$Instant;
invokevirtual org.jruby.RubyModule.defineAnnotatedMethods:(Ljava/lang/Class;)V
1: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 runtime Lorg/jruby/Ruby;
0 2 1 proxy Lorg/jruby/RubyModule;
MethodParameters:
Name Flags
runtime final
proxy final
public static org.jruby.runtime.builtin.IRubyObject to_time(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: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=8, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.jruby.javasupport.JavaUtil.unwrapIfJavaObject:(Lorg/jruby/runtime/builtin/IRubyObject;)Ljava/lang/Object;
checkcast java.time.Instant
astore 2
start local 2 1: aload 2
invokevirtual java.time.Instant.getNano:()I
i2l
lstore 3
start local 3 2: aload 2
invokevirtual java.time.Instant.getEpochSecond:()J
ldc 1000
lmul
lload 3
ldc 1000000
ldiv
ladd
lstore 5
start local 5 3: lload 3
ldc 1000000
lrem
lstore 3
4: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 7
start local 7 5: aload 7
new org.joda.time.DateTime
dup
lload 5
aload 7
invokestatic org.jruby.RubyTime.getLocalTimeZone:(Lorg/jruby/Ruby;)Lorg/joda/time/DateTimeZone;
invokespecial org.joda.time.DateTime.<init>:(JLorg/joda/time/DateTimeZone;)V
lload 3
invokestatic org.jruby.RubyTime.newTime:(Lorg/jruby/Ruby;Lorg/joda/time/DateTime;J)Lorg/jruby/RubyTime;
areturn
end local 7 end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 context Lorg/jruby/runtime/ThreadContext;
0 6 1 self Lorg/jruby/runtime/builtin/IRubyObject;
1 6 2 val Ljava/time/Instant;
2 6 3 nano J
3 6 5 millis J
5 6 7 runtime Lorg/jruby/Ruby;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"to_time"})
MethodParameters:
Name Flags
context
self
}
SourceFile: "JavaTime.java"
NestHost: org.jruby.javasupport.ext.JavaTime
InnerClasses:
public Instant = org.jruby.javasupport.ext.JavaTime$Instant of org.jruby.javasupport.ext.JavaTime
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyModule(name = {"Java::JavaTime::Instant"})