class org.bson.json.ShellDateTimeConverter implements org.bson.json.Converter<java.lang.Long>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bson.json.ShellDateTimeConverter
super_class: java.lang.Object
{
void <init>();
descriptor: ()V
flags: (0x0000)
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/bson/json/ShellDateTimeConverter;
public void convert(java.lang.Long, org.bson.json.StrictJsonWriter);
descriptor: (Ljava/lang/Long;Lorg/bson/json/StrictJsonWriter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new java.text.SimpleDateFormat
dup
ldc "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
invokespecial java.text.SimpleDateFormat.<init>:(Ljava/lang/String;)V
astore 3
start local 3 1: aload 3
ldc "UTC"
invokestatic java.util.TimeZone.getTimeZone:(Ljava/lang/String;)Ljava/util/TimeZone;
invokevirtual java.text.SimpleDateFormat.setTimeZone:(Ljava/util/TimeZone;)V
2: aload 1
invokevirtual java.lang.Long.longValue:()J
ldc -59014396800000
lcmp
iflt 5
aload 1
invokevirtual java.lang.Long.longValue:()J
ldc 253399536000000
lcmp
ifgt 5
3: aload 2
ldc "ISODate(\"%s\")"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
new java.util.Date
dup
aload 1
invokevirtual java.lang.Long.longValue:()J
invokespecial java.util.Date.<init>:(J)V
invokevirtual java.text.SimpleDateFormat.format:(Ljava/util/Date;)Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.bson.json.StrictJsonWriter.writeRaw:(Ljava/lang/String;)V
4: goto 6
5: StackMap locals: java.text.SimpleDateFormat
StackMap stack:
aload 2
ldc "new Date(%d)"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.bson.json.StrictJsonWriter.writeRaw:(Ljava/lang/String;)V
6: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bson/json/ShellDateTimeConverter;
0 7 1 value Ljava/lang/Long;
0 7 2 writer Lorg/bson/json/StrictJsonWriter;
1 7 3 dateFormat Ljava/text/SimpleDateFormat;
MethodParameters:
Name Flags
value final
writer final
public void convert(java.lang.Object, org.bson.json.StrictJsonWriter);
descriptor: (Ljava/lang/Object;Lorg/bson/json/StrictJsonWriter;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast java.lang.Long
aload 2
invokevirtual org.bson.json.ShellDateTimeConverter.convert:(Ljava/lang/Long;Lorg/bson/json/StrictJsonWriter;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lorg/bson/json/Converter<Ljava/lang/Long;>;
SourceFile: "ShellDateTimeConverter.java"