public abstract class org.jboss.resteasy.core.registry.Expression implements java.lang.Comparable<org.jboss.resteasy.core.registry.Expression>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.jboss.resteasy.core.registry.Expression
super_class: java.lang.Object
{
public static final java.util.regex.Pattern GROUP;
descriptor: Ljava/util/regex/Pattern;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
protected java.lang.String pathExpression;
descriptor: Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
protected java.lang.String regex;
descriptor: Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
protected java.util.regex.Pattern pattern;
descriptor: Ljava/util/regex/Pattern;
flags: (0x0004) ACC_PROTECTED
protected java.util.List<org.jboss.resteasy.core.registry.Expression$Group> groups;
descriptor: Ljava/util/List;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/List<Lorg/jboss/resteasy/core/registry/Expression$Group;>;
protected int literalCharacters;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int numCapturingGroups;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int numNonDefaultGroups;
descriptor: I
flags: (0x0004) ACC_PROTECTED
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 org.jboss.resteasy.core.registry.Expression.GROUP:Ljava/util/regex/Pattern;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=11, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.jboss.resteasy.core.registry.Expression.groups:Ljava/util/List;
2: aload 0
aload 1
putfield org.jboss.resteasy.core.registry.Expression.pathExpression:Ljava/lang/String;
3: aload 1
invokestatic org.jboss.resteasy.util.PathHelper.replaceEnclosedCurlyBracesCS:(Ljava/lang/String;)Ljava/lang/CharSequence;
astore 3
start local 3 4: aload 0
getstatic org.jboss.resteasy.util.PathHelper.URI_PARAM_PATTERN:Ljava/util/regex/Pattern;
aload 3
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
ldc ""
invokevirtual java.util.regex.Matcher.replaceAll:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.length:()I
putfield org.jboss.resteasy.core.registry.Expression.literalCharacters:I
5: getstatic org.jboss.resteasy.util.PathHelper.URI_PARAM_PATTERN:Ljava/util/regex/Pattern;
aload 3
invokevirtual java.util.regex.Pattern.split:(Ljava/lang/CharSequence;)[Ljava/lang/String;
astore 4
start local 4 6: getstatic org.jboss.resteasy.util.PathHelper.URI_PARAM_PATTERN:Ljava/util/regex/Pattern;
aload 3
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 5
start local 5 7: iconst_0
istore 6
start local 6 8: new java.lang.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
astore 7
start local 7 9: iload 6
aload 4
arraylength
if_icmpge 10
aload 7
aload 4
iload 6
iinc 6 1
aaload
invokestatic java.util.regex.Pattern.quote:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
10: StackMap locals: org.jboss.resteasy.core.registry.Expression java.lang.String java.lang.String java.lang.CharSequence java.lang.String[] java.util.regex.Matcher int java.lang.StringBuffer
StackMap stack:
iconst_1
istore 8
start local 8 11: goto 26
12: StackMap locals: int
StackMap stack:
aload 5
iconst_1
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 9
start local 9 13: aload 7
ldc "("
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
14: aload 5
iconst_3
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
ifnonnull 18
15: aload 7
ldc "[^/]+"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
16: aload 0
getfield org.jboss.resteasy.core.registry.Expression.groups:Ljava/util/List;
new org.jboss.resteasy.core.registry.Expression$Group
dup
iload 8
iinc 8 1
aload 9
iconst_1
invokespecial org.jboss.resteasy.core.registry.Expression$Group.<init>:(ILjava/lang/String;Z)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
17: goto 24
18: StackMap locals: java.lang.String
StackMap stack:
aload 5
iconst_3
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 10
start local 10 19: aload 10
invokestatic org.jboss.resteasy.util.PathHelper.recoverEnclosedCurlyBraces:(Ljava/lang/String;)Ljava/lang/String;
astore 10
20: aload 7
aload 10
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
21: aload 0
dup
getfield org.jboss.resteasy.core.registry.Expression.numNonDefaultGroups:I
iconst_1
iadd
putfield org.jboss.resteasy.core.registry.Expression.numNonDefaultGroups:I
22: aload 0
getfield org.jboss.resteasy.core.registry.Expression.groups:Ljava/util/List;
new org.jboss.resteasy.core.registry.Expression$Group
dup
iload 8
iinc 8 1
aload 9
invokespecial org.jboss.resteasy.core.registry.Expression$Group.<init>:(ILjava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
23: iload 8
aload 10
invokestatic org.jboss.resteasy.core.registry.Expression.groupCount:(Ljava/lang/String;)I
iadd
istore 8
end local 10 24: StackMap locals:
StackMap stack:
aload 7
ldc ")"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
25: iload 6
aload 4
arraylength
if_icmpge 26
aload 7
aload 4
iload 6
iinc 6 1
aaload
invokestatic java.util.regex.Pattern.quote:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
end local 9 26: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.util.regex.Matcher.find:()Z
ifne 12
27: aload 2
ifnull 28
aload 7
aload 2
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
28: StackMap locals:
StackMap stack:
aload 0
aload 7
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
putfield org.jboss.resteasy.core.registry.Expression.regex:Ljava/lang/String;
29: aload 0
aload 0
invokevirtual org.jboss.resteasy.core.registry.Expression.getRegex:()Ljava/lang/String;
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putfield org.jboss.resteasy.core.registry.Expression.pattern:Ljava/util/regex/Pattern;
30: return
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lorg/jboss/resteasy/core/registry/Expression;
0 31 1 segment Ljava/lang/String;
0 31 2 additionalRegex Ljava/lang/String;
4 31 3 replacedCurlySegment Ljava/lang/CharSequence;
6 31 4 split [Ljava/lang/String;
7 31 5 withPathParam Ljava/util/regex/Matcher;
8 31 6 i I
9 31 7 buffer Ljava/lang/StringBuffer;
11 31 8 groupNumber I
13 26 9 name Ljava/lang/String;
19 24 10 expr Ljava/lang/String;
MethodParameters:
Name Flags
segment
additionalRegex
public int compareTo(org.jboss.resteasy.core.registry.Expression);
descriptor: (Lorg/jboss/resteasy/core/registry/Expression;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jboss.resteasy.core.registry.Expression.literalCharacters:I
aload 1
getfield org.jboss.resteasy.core.registry.Expression.literalCharacters:I
if_icmple 1
iconst_m1
ireturn
1: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.registry.Expression.literalCharacters:I
aload 1
getfield org.jboss.resteasy.core.registry.Expression.literalCharacters:I
if_icmpge 2
iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.registry.Expression.numCapturingGroups:I
aload 1
getfield org.jboss.resteasy.core.registry.Expression.numCapturingGroups:I
if_icmple 3
iconst_m1
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.registry.Expression.numCapturingGroups:I
aload 1
getfield org.jboss.resteasy.core.registry.Expression.numCapturingGroups:I
if_icmpge 4
iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.registry.Expression.numNonDefaultGroups:I
aload 1
getfield org.jboss.resteasy.core.registry.Expression.numNonDefaultGroups:I
if_icmple 5
iconst_m1
ireturn
5: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.registry.Expression.numNonDefaultGroups:I
aload 1
getfield org.jboss.resteasy.core.registry.Expression.numNonDefaultGroups:I
if_icmpge 6
iconst_1
ireturn
6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jboss/resteasy/core/registry/Expression;
0 7 1 expression Lorg/jboss/resteasy/core/registry/Expression;
MethodParameters:
Name Flags
expression
protected static int groupCount(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc " "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 0
1: aload 0
bipush 91
invokevirtual java.lang.String.indexOf:(I)I
istore 1
start local 1 2: iload 1
iconst_m1
if_icmpeq 6
3: aload 0
bipush 93
iload 1
invokevirtual java.lang.String.indexOf:(II)I
istore 2
start local 2 4: iload 2
iconst_m1
if_icmpeq 6
5: new java.lang.StringBuilder
dup
aload 0
iconst_0
iload 1
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
aload 0
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 0
end local 2 6: StackMap locals: int
StackMap stack:
getstatic org.jboss.resteasy.core.registry.Expression.GROUP:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 2
start local 2 7: iconst_0
istore 3
start local 3 8: goto 10
StackMap locals: java.util.regex.Matcher int
StackMap stack:
9: iinc 3 1
StackMap locals:
StackMap stack:
10: aload 2
invokevirtual java.util.regex.Matcher.find:()Z
ifne 9
11: iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 regex Ljava/lang/String;
2 12 1 idxOpen I
4 6 2 idxClose I
7 12 2 matcher Ljava/util/regex/Matcher;
8 12 3 groupCount I
MethodParameters:
Name Flags
regex
public int getNumGroups();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.core.registry.Expression.groups:Ljava/util/List;
invokeinterface java.util.List.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/core/registry/Expression;
public java.lang.String getRegex();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.core.registry.Expression.regex:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/core/registry/Expression;
public java.lang.String getPathExpression();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.core.registry.Expression.pathExpression:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/core/registry/Expression;
public java.util.regex.Pattern getPattern();
descriptor: ()Ljava/util/regex/Pattern;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.core.registry.Expression.pattern:Ljava/util/regex/Pattern;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/core/registry/Expression;
public int compareTo(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast org.jboss.resteasy.core.registry.Expression
invokevirtual org.jboss.resteasy.core.registry.Expression.compareTo:(Lorg/jboss/resteasy/core/registry/Expression;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/lang/Comparable<Lorg/jboss/resteasy/core/registry/Expression;>;
SourceFile: "Expression.java"
NestMembers:
org.jboss.resteasy.core.registry.Expression$Group
InnerClasses:
protected Group = org.jboss.resteasy.core.registry.Expression$Group of org.jboss.resteasy.core.registry.Expression