class io.dropwizard.jackson.FuzzyEnumModule$PermissiveEnumDeserializer extends com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer<java.lang.Enum<?>>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: io.dropwizard.jackson.FuzzyEnumModule$PermissiveEnumDeserializer
super_class: com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private final java.lang.Enum<?>[] constants;
descriptor: [Ljava/lang/Enum;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: [Ljava/lang/Enum<*>;
private final java.util.List<java.lang.String> acceptedValues;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/String;>;
protected void <init>(java.lang.Class<java.lang.Enum<?>>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer.<init>:(Ljava/lang/Class;)V
1: aload 0
aload 0
invokevirtual io.dropwizard.jackson.FuzzyEnumModule$PermissiveEnumDeserializer.handledType:()Ljava/lang/Class;
invokevirtual java.lang.Class.getEnumConstants:()[Ljava/lang/Object;
checkcast java.lang.Enum[]
putfield io.dropwizard.jackson.FuzzyEnumModule$PermissiveEnumDeserializer.constants:[Ljava/lang/Enum;
2: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield io.dropwizard.jackson.FuzzyEnumModule$PermissiveEnumDeserializer.acceptedValues:Ljava/util/List;
3: aload 0
getfield io.dropwizard.jackson.FuzzyEnumModule$PermissiveEnumDeserializer.constants:[Ljava/lang/Enum;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 7
StackMap locals: io.dropwizard.jackson.FuzzyEnumModule$PermissiveEnumDeserializer java.lang.Class top int int java.lang.Enum[]
StackMap stack:
4: aload 5
iload 3
aaload
astore 2
start local 2 5: aload 0
getfield io.dropwizard.jackson.FuzzyEnumModule$PermissiveEnumDeserializer.acceptedValues:Ljava/util/List;
aload 2
invokevirtual java.lang.Enum.name:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 6: iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
iload 4
if_icmplt 4
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/dropwizard/jackson/FuzzyEnumModule$PermissiveEnumDeserializer;
0 9 1 clazz Ljava/lang/Class<Ljava/lang/Enum<*>;>;
5 6 2 constant Ljava/lang/Enum<*>;
Signature: (Ljava/lang/Class<Ljava/lang/Enum<*>;>;)V
MethodParameters:
Name Flags
clazz
public java.lang.Enum<?> deserialize(com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.DeserializationContext);
descriptor: (Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/lang/Enum;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual com.fasterxml.jackson.core.JsonParser.getText:()Ljava/lang/String;
aload 0
getfield io.dropwizard.jackson.FuzzyEnumModule$PermissiveEnumDeserializer.constants:[Ljava/lang/Enum;
invokestatic io.dropwizard.util.Enums.fromStringFuzzy:(Ljava/lang/String;[Ljava/lang/Enum;)Ljava/lang/Enum;
astore 3
start local 3 1: aload 3
ifnull 3
2: aload 3
areturn
3: StackMap locals: java.lang.Enum
StackMap stack:
aload 2
aload 1
invokevirtual com.fasterxml.jackson.core.JsonParser.getText:()Ljava/lang/String;
aload 0
invokevirtual io.dropwizard.jackson.FuzzyEnumModule$PermissiveEnumDeserializer.handledType:()Ljava/lang/Class;
new java.lang.StringBuilder
dup
aload 1
invokevirtual com.fasterxml.jackson.core.JsonParser.getText:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " was not one of "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield io.dropwizard.jackson.FuzzyEnumModule$PermissiveEnumDeserializer.acceptedValues:Ljava/util/List;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual com.fasterxml.jackson.databind.DeserializationContext.weirdStringException:(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonMappingException;
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/dropwizard/jackson/FuzzyEnumModule$PermissiveEnumDeserializer;
0 4 1 jp Lcom/fasterxml/jackson/core/JsonParser;
0 4 2 ctxt Lcom/fasterxml/jackson/databind/DeserializationContext;
1 4 3 constant Ljava/lang/Enum<*>;
Exceptions:
throws java.io.IOException
Signature: (Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/lang/Enum<*>;
MethodParameters:
Name Flags
jp
ctxt
public boolean isCachable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/jackson/FuzzyEnumModule$PermissiveEnumDeserializer;
public java.lang.Object deserialize(com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.DeserializationContext);
descriptor: (Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
invokevirtual io.dropwizard.jackson.FuzzyEnumModule$PermissiveEnumDeserializer.deserialize:(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/lang/Enum;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException, com.fasterxml.jackson.core.JsonProcessingException
}
Signature: Lcom/fasterxml/jackson/databind/deser/std/StdScalarDeserializer<Ljava/lang/Enum<*>;>;
SourceFile: "FuzzyEnumModule.java"
NestHost: io.dropwizard.jackson.FuzzyEnumModule
InnerClasses:
private PermissiveEnumDeserializer = io.dropwizard.jackson.FuzzyEnumModule$PermissiveEnumDeserializer of io.dropwizard.jackson.FuzzyEnumModule