public class jdk.internal.joptsimple.util.DateConverter implements jdk.internal.joptsimple.ValueConverter<java.util.Date>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.joptsimple.util.DateConverter
super_class: java.lang.Object
{
private final java.text.DateFormat formatter;
descriptor: Ljava/text/DateFormat;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.text.DateFormat);
descriptor: (Ljava/text/DateFormat;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
ldc "illegal null formatter"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: jdk.internal.joptsimple.util.DateConverter java.text.DateFormat
StackMap stack:
aload 0
aload 1
putfield jdk.internal.joptsimple.util.DateConverter.formatter:Ljava/text/DateFormat;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/joptsimple/util/DateConverter;
0 5 1 formatter Ljava/text/DateFormat;
MethodParameters:
Name Flags
formatter
public static jdk.internal.joptsimple.util.DateConverter datePattern(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/internal/joptsimple/util/DateConverter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.text.SimpleDateFormat
dup
aload 0
invokespecial java.text.SimpleDateFormat.<init>:(Ljava/lang/String;)V
astore 1
start local 1 1: aload 1
iconst_0
invokevirtual java.text.SimpleDateFormat.setLenient:(Z)V
2: new jdk.internal.joptsimple.util.DateConverter
dup
aload 1
invokespecial jdk.internal.joptsimple.util.DateConverter.<init>:(Ljava/text/DateFormat;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 pattern Ljava/lang/String;
1 3 1 formatter Ljava/text/SimpleDateFormat;
MethodParameters:
Name Flags
pattern
public java.util.Date convert(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Date;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: new java.text.ParsePosition
dup
iconst_0
invokespecial java.text.ParsePosition.<init>:(I)V
astore 2
start local 2 1: aload 0
getfield jdk.internal.joptsimple.util.DateConverter.formatter:Ljava/text/DateFormat;
aload 1
aload 2
invokevirtual java.text.DateFormat.parse:(Ljava/lang/String;Ljava/text/ParsePosition;)Ljava/util/Date;
astore 3
start local 3 2: aload 2
invokevirtual java.text.ParsePosition.getIndex:()I
aload 1
invokevirtual java.lang.String.length:()I
if_icmpeq 4
3: new jdk.internal.joptsimple.ValueConversionException
dup
aload 0
aload 1
invokevirtual jdk.internal.joptsimple.util.DateConverter.message:(Ljava/lang/String;)Ljava/lang/String;
invokespecial jdk.internal.joptsimple.ValueConversionException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: java.text.ParsePosition java.util.Date
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/joptsimple/util/DateConverter;
0 5 1 value Ljava/lang/String;
1 5 2 position Ljava/text/ParsePosition;
2 5 3 date Ljava/util/Date;
MethodParameters:
Name Flags
value
public java.lang.Class<java.util.Date> valueType();
descriptor: ()Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc Ljava/util/Date;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/joptsimple/util/DateConverter;
Signature: ()Ljava/lang/Class<Ljava/util/Date;>;
public java.lang.String valuePattern();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.joptsimple.util.DateConverter.formatter:Ljava/text/DateFormat;
instanceof java.text.SimpleDateFormat
ifeq 2
1: aload 0
getfield jdk.internal.joptsimple.util.DateConverter.formatter:Ljava/text/DateFormat;
checkcast java.text.SimpleDateFormat
invokevirtual java.text.SimpleDateFormat.toPattern:()Ljava/lang/String;
goto 3
2: StackMap locals:
StackMap stack:
ldc ""
3: StackMap locals:
StackMap stack: java.lang.String
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/joptsimple/util/DateConverter;
private java.lang.String message(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.joptsimple.util.DateConverter.formatter:Ljava/text/DateFormat;
instanceof java.text.SimpleDateFormat
ifeq 4
1: ldc "with.pattern.message"
astore 2
start local 2 2: iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 0
getfield jdk.internal.joptsimple.util.DateConverter.formatter:Ljava/text/DateFormat;
checkcast java.text.SimpleDateFormat
invokevirtual java.text.SimpleDateFormat.toPattern:()Ljava/lang/String;
aastore
astore 3
start local 3 3: goto 6
end local 3 end local 2 4: StackMap locals:
StackMap stack:
ldc "without.pattern.message"
astore 2
start local 2 5: iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
astore 3
start local 3 6: StackMap locals: java.lang.String java.lang.Object[]
StackMap stack:
invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
7: ldc "jdk.internal.joptsimple.ExceptionMessages"
8: ldc Ljdk/internal/joptsimple/util/DateConverter;
9: aload 2
10: aload 3
11: invokestatic jdk.internal.joptsimple.internal.Messages.message:(Ljava/util/Locale;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/internal/joptsimple/util/DateConverter;
0 12 1 value Ljava/lang/String;
2 4 2 key Ljava/lang/String;
5 12 2 key Ljava/lang/String;
3 4 3 arguments [Ljava/lang/Object;
6 12 3 arguments [Ljava/lang/Object;
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.DateConverter.convert:(Ljava/lang/String;)Ljava/util/Date;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljdk/internal/joptsimple/ValueConverter<Ljava/util/Date;>;
SourceFile: "DateConverter.java"