public abstract class jdk.internal.joptsimple.util.EnumConverter<E extends java.lang.Enum<E>> implements jdk.internal.joptsimple.ValueConverter<E>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: jdk.internal.joptsimple.util.EnumConverter
super_class: java.lang.Object
{
private final java.lang.Class<E> clazz;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/Class<TE;>;
private java.lang.String delimiters;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
protected void <init>(java.lang.Class<E>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc "[,]"
putfield jdk.internal.joptsimple.util.EnumConverter.delimiters:Ljava/lang/String;
2: aload 0
aload 1
putfield jdk.internal.joptsimple.util.EnumConverter.clazz:Ljava/lang/Class;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/joptsimple/util/EnumConverter<TE;>;
0 4 1 clazz Ljava/lang/Class<TE;>;
Signature: (Ljava/lang/Class<TE;>;)V
MethodParameters:
Name Flags
clazz
public E convert(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Enum;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.internal.joptsimple.util.EnumConverter.valueType:()Ljava/lang/Class;
invokevirtual java.lang.Class.getEnumConstants:()[Ljava/lang/Object;
checkcast java.lang.Enum[]
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 5
StackMap locals: jdk.internal.joptsimple.util.EnumConverter java.lang.String top int int java.lang.Enum[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 2
invokevirtual java.lang.Enum.name:()Ljava/lang/String;
aload 1
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 4
3: aload 2
areturn
end local 2 4: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 4
if_icmplt 1
6: new jdk.internal.joptsimple.ValueConversionException
dup
aload 0
aload 1
invokevirtual jdk.internal.joptsimple.util.EnumConverter.message:(Ljava/lang/String;)Ljava/lang/String;
invokespecial jdk.internal.joptsimple.ValueConversionException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/joptsimple/util/EnumConverter<TE;>;
0 7 1 value Ljava/lang/String;
2 4 2 each TE;
Signature: (Ljava/lang/String;)TE;
MethodParameters:
Name Flags
value
public java.lang.Class<E> valueType();
descriptor: ()Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.joptsimple.util.EnumConverter.clazz:Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/joptsimple/util/EnumConverter<TE;>;
Signature: ()Ljava/lang/Class<TE;>;
public void setDelimiters(java.lang.String);
descriptor: (Ljava/lang/String;)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 jdk.internal.joptsimple.util.EnumConverter.delimiters:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/joptsimple/util/EnumConverter<TE;>;
0 2 1 delimiters Ljava/lang/String;
MethodParameters:
Name Flags
delimiters
public java.lang.String valuePattern();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.joptsimple.util.EnumConverter.valueType:()Ljava/lang/Class;
invokestatic java.util.EnumSet.allOf:(Ljava/lang/Class;)Ljava/util/EnumSet;
astore 1
start local 1 1: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 2: aload 2
aload 0
getfield jdk.internal.joptsimple.util.EnumConverter.delimiters:Ljava/lang/String;
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
3: aload 1
invokevirtual java.util.EnumSet.iterator:()Ljava/util/Iterator;
astore 3
start local 3 4: goto 8
5: StackMap locals: java.util.EnumSet java.lang.StringBuilder java.util.Iterator
StackMap stack:
aload 2
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Enum
invokevirtual java.lang.Enum.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 8
7: aload 2
aload 0
getfield jdk.internal.joptsimple.util.EnumConverter.delimiters:Ljava/lang/String;
iconst_1
invokevirtual java.lang.String.charAt:(I)C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
8: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
end local 3 9: aload 2
aload 0
getfield jdk.internal.joptsimple.util.EnumConverter.delimiters:Ljava/lang/String;
iconst_2
invokevirtual java.lang.String.charAt:(I)C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
10: aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/internal/joptsimple/util/EnumConverter<TE;>;
1 11 1 values Ljava/util/EnumSet<TE;>;
2 11 2 builder Ljava/lang/StringBuilder;
4 9 3 i Ljava/util/Iterator<TE;>;
private java.lang.String message(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: ldc "jdk.internal.joptsimple.ExceptionMessages"
invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;)Ljava/util/ResourceBundle;
astore 2
start local 2 1: iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 0
invokevirtual jdk.internal.joptsimple.util.EnumConverter.valuePattern:()Ljava/lang/String;
aastore
astore 3
start local 3 2: aload 2
new java.lang.StringBuilder
dup
ldc Ljdk/internal/joptsimple/util/EnumConverter;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".message"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 3: new java.text.MessageFormat
dup
aload 4
invokespecial java.text.MessageFormat.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.text.MessageFormat.format:(Ljava/lang/Object;)Ljava/lang/String;
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 this Ljdk/internal/joptsimple/util/EnumConverter<TE;>;
0 4 1 value Ljava/lang/String;
1 4 2 bundle Ljava/util/ResourceBundle;
2 4 3 arguments [Ljava/lang/Object;
3 4 4 template Ljava/lang/String;
MethodParameters:
Name Flags
value
public java.lang.Object convert(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual jdk.internal.joptsimple.util.EnumConverter.convert:(Ljava/lang/String;)Ljava/lang/Enum;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <E:Ljava/lang/Enum<TE;>;>Ljava/lang/Object;Ljdk/internal/joptsimple/ValueConverter<TE;>;
SourceFile: "EnumConverter.java"