public class com.sun.tools.javac.util.MatchingUtils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.javac.util.MatchingUtils
super_class: java.lang.Object
{
private static final java.lang.String allMatchesString;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: ".*"
private static final java.util.regex.Pattern allMatches;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc ".*"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic com.sun.tools.javac.util.MatchingUtils.allMatches:Ljava/util/regex/Pattern;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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 Lcom/sun/tools/javac/util/MatchingUtils;
public static boolean isValidImportString(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=9, args_size=1
start local 0 0: aload 0
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
iconst_1
istore 1
start local 1 3: aload 0
astore 2
start local 2 4: aload 2
bipush 42
invokevirtual java.lang.String.indexOf:(I)I
istore 3
start local 3 5: iload 3
iconst_m1
if_icmpeq 14
6: iload 3
aload 2
invokevirtual java.lang.String.length:()I
iconst_1
isub
if_icmpne 13
7: iload 3
iconst_1
isub
iflt 14
8: aload 2
iload 3
iconst_1
isub
invokevirtual java.lang.String.charAt:(I)C
bipush 46
if_icmpne 9
iconst_1
goto 10
StackMap locals: int java.lang.String int
StackMap stack:
9: iconst_0
StackMap locals:
StackMap stack: int
10: istore 1
11: aload 2
iconst_0
aload 2
invokevirtual java.lang.String.length:()I
iconst_2
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 2
12: goto 14
13: StackMap locals:
StackMap stack:
iconst_0
ireturn
14: StackMap locals:
StackMap stack:
iload 1
ifeq 21
15: aload 2
ldc "\\."
aload 2
invokevirtual java.lang.String.length:()I
iconst_2
iadd
invokevirtual java.lang.String.split:(Ljava/lang/String;I)[Ljava/lang/String;
astore 4
start local 4 16: aload 4
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 20
StackMap locals: java.lang.String int java.lang.String int java.lang.String[] top int int java.lang.String[]
StackMap stack:
17: aload 8
iload 6
aaload
astore 5
start local 5 18: iload 1
aload 5
invokestatic javax.lang.model.SourceVersion.isIdentifier:(Ljava/lang/CharSequence;)Z
iand
istore 1
end local 5 19: iinc 6 1
StackMap locals:
StackMap stack:
20: iload 6
iload 7
if_icmplt 17
end local 4 21: StackMap locals: java.lang.String int java.lang.String int
StackMap stack:
iload 1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 s Ljava/lang/String;
3 22 1 valid Z
4 22 2 t Ljava/lang/String;
5 22 3 index I
16 21 4 javaIds [Ljava/lang/String;
18 19 5 javaId Ljava/lang/String;
MethodParameters:
Name Flags
s
public static java.lang.String validImportStringToPatternString(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: aload 0
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
1: ldc ".*"
areturn
2: StackMap locals:
StackMap stack:
aload 0
ldc "."
ldc "\\."
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
astore 1
start local 1 3: aload 1
ldc "*"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 5
4: new java.lang.StringBuilder
dup
aload 1
iconst_0
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".+"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
5: StackMap locals: java.lang.String
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 s Ljava/lang/String;
3 6 1 s_prime Ljava/lang/String;
MethodParameters:
Name Flags
s
public static java.util.regex.Pattern validImportStringToPattern(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/regex/Pattern;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokestatic com.sun.tools.javac.util.MatchingUtils.validImportStringToPatternString:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 1: aload 1
ldc ".*"
if_acmpne 3
2: getstatic com.sun.tools.javac.util.MatchingUtils.allMatches:Ljava/util/regex/Pattern;
areturn
3: StackMap locals: java.lang.String
StackMap stack:
aload 1
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 s Ljava/lang/String;
1 4 1 pattern Ljava/lang/String;
MethodParameters:
Name Flags
s
}
SourceFile: "MatchingUtils.java"