class com.mongodb.util.JSONSerializers$LegacyDateSerializer extends com.mongodb.util.JSONSerializers$CompoundObjectSerializer
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.util.JSONSerializers$LegacyDateSerializer
super_class: com.mongodb.util.JSONSerializers$CompoundObjectSerializer
{
void <init>(com.mongodb.util.ObjectSerializer);
descriptor: (Lcom/mongodb/util/ObjectSerializer;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 // com.mongodb.util.JSONSerializers$LegacyDateSerializer this
start local 1 // com.mongodb.util.ObjectSerializer serializer
0: .line 224
aload 0 /* this */
aload 1 /* serializer */
invokespecial com.mongodb.util.JSONSerializers$CompoundObjectSerializer.<init>:(Lcom/mongodb/util/ObjectSerializer;)V
1: .line 225
return
end local 1 // com.mongodb.util.ObjectSerializer serializer
end local 0 // com.mongodb.util.JSONSerializers$LegacyDateSerializer this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/util/JSONSerializers$LegacyDateSerializer;
0 2 1 serializer Lcom/mongodb/util/ObjectSerializer;
MethodParameters:
Name Flags
serializer final
public void serialize(java.lang.Object, java.lang.StringBuilder);
descriptor: (Ljava/lang/Object;Ljava/lang/StringBuilder;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=3
start local 0 // com.mongodb.util.JSONSerializers$LegacyDateSerializer this
start local 1 // java.lang.Object obj
start local 2 // java.lang.StringBuilder buf
0: .line 229
aload 1 /* obj */
checkcast java.util.Date
astore 3 /* d */
start local 3 // java.util.Date d
1: .line 230
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 4 /* format */
start local 4 // java.text.SimpleDateFormat format
2: .line 231
aload 4 /* format */
new java.util.GregorianCalendar
dup
new java.util.SimpleTimeZone
dup
iconst_0
ldc "GMT"
invokespecial java.util.SimpleTimeZone.<init>:(ILjava/lang/String;)V
invokespecial java.util.GregorianCalendar.<init>:(Ljava/util/TimeZone;)V
invokevirtual java.text.SimpleDateFormat.setCalendar:(Ljava/util/Calendar;)V
3: .line 232
aload 0 /* this */
getfield com.mongodb.util.JSONSerializers$LegacyDateSerializer.serializer:Lcom/mongodb/util/ObjectSerializer;
new com.mongodb.BasicDBObject
dup
ldc "$date"
aload 4 /* format */
aload 3 /* d */
invokevirtual java.text.SimpleDateFormat.format:(Ljava/util/Date;)Ljava/lang/String;
invokespecial com.mongodb.BasicDBObject.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
aload 2 /* buf */
invokeinterface com.mongodb.util.ObjectSerializer.serialize:(Ljava/lang/Object;Ljava/lang/StringBuilder;)V
4: .line 233
return
end local 4 // java.text.SimpleDateFormat format
end local 3 // java.util.Date d
end local 2 // java.lang.StringBuilder buf
end local 1 // java.lang.Object obj
end local 0 // com.mongodb.util.JSONSerializers$LegacyDateSerializer this
LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/mongodb/util/JSONSerializers$LegacyDateSerializer;
0 5 1 obj Ljava/lang/Object;
0 5 2 buf Ljava/lang/StringBuilder;
1 5 3 d Ljava/util/Date;
2 5 4 format Ljava/text/SimpleDateFormat;
MethodParameters:
Name Flags
obj final
buf final
}
SourceFile: "JSONSerializers.java"
NestHost: com.mongodb.util.JSONSerializers
InnerClasses:
private abstract CompoundObjectSerializer = com.mongodb.util.JSONSerializers$CompoundObjectSerializer of com.mongodb.util.JSONSerializers
private LegacyDateSerializer = com.mongodb.util.JSONSerializers$LegacyDateSerializer of com.mongodb.util.JSONSerializers