class jdk.tools.jmod.JmodTask$PatternConverter implements jdk.internal.joptsimple.ValueConverter<java.util.regex.Pattern>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.tools.jmod.JmodTask$PatternConverter
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 Ljdk/tools/jmod/JmodTask$PatternConverter;
public java.util.regex.Pattern convert(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/regex/Pattern;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "regex:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 2
1: aload 1
ldc "regex:"
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 1
2: StackMap locals:
StackMap stack:
aload 1
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
3: areturn
4: StackMap locals:
StackMap stack: java.util.regex.PatternSyntaxException
pop
5: new jdk.tools.jmod.JmodTask$CommandException
dup
ldc "err.bad.pattern"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokespecial jdk.tools.jmod.JmodTask$CommandException.<init>:(Ljava/lang/String;[Ljava/lang/Object;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/tools/jmod/JmodTask$PatternConverter;
0 6 1 value Ljava/lang/String;
Exception table:
from to target type
0 3 4 Class java.util.regex.PatternSyntaxException
MethodParameters:
Name Flags
value
public java.lang.Class<java.util.regex.Pattern> valueType();
descriptor: ()Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc Ljava/util/regex/Pattern;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jmod/JmodTask$PatternConverter;
Signature: ()Ljava/lang/Class<Ljava/util/regex/Pattern;>;
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: ldc "regex-pattern"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jmod/JmodTask$PatternConverter;
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.tools.jmod.JmodTask$PatternConverter.convert:(Ljava/lang/String;)Ljava/util/regex/Pattern;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljdk/internal/joptsimple/ValueConverter<Ljava/util/regex/Pattern;>;
SourceFile: "JmodTask.java"
NestHost: jdk.tools.jmod.JmodTask
InnerClasses:
CommandException = jdk.tools.jmod.JmodTask$CommandException of jdk.tools.jmod.JmodTask
PatternConverter = jdk.tools.jmod.JmodTask$PatternConverter of jdk.tools.jmod.JmodTask