public class org.jboss.resteasy.util.PathHelper
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jboss.resteasy.util.PathHelper
super_class: java.lang.Object
{
public static final java.lang.String URI_PARAM_NAME_REGEX;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "\\w[\\w\\.-]*"
public static final java.lang.String URI_PARAM_REGEX_REGEX;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "[^{}][^{}]*"
public static final java.lang.String URI_PARAM_REGEX;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "\\{\\s*(\\w[\\w\\.-]*)\\s*(:\\s*([^{}][^{}]*))?\\}"
public static final java.lang.String URI_PARAM_WITH_REGEX;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "\\{\\s*(\\w[\\w\\.-]*)\\s*(:\\s*([^{}][^{}]*))\\}"
public static final java.lang.String URI_PARAM_WITHOUT_REGEX;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "\\{(\\w[\\w\\.-]*)\\}"
public static final java.util.regex.Pattern URI_PARAM_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.util.regex.Pattern URI_PARAM_WITH_REGEX_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.util.regex.Pattern URI_PARAM_WITHOUT_REGEX_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.util.regex.Pattern URI_TEMPLATE_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.lang.String URI_TEMPLATE_REPLACE_PATTERN;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "(.*?)"
public static final char openCurlyReplacement;
descriptor: C
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 6
public static final char closeCurlyReplacement;
descriptor: C
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 7
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "\\{\\s*(\\w[\\w\\.-]*)\\s*(:\\s*([^{}][^{}]*))?\\}"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic org.jboss.resteasy.util.PathHelper.URI_PARAM_PATTERN:Ljava/util/regex/Pattern;
1: ldc "\\{\\s*(\\w[\\w\\.-]*)\\s*(:\\s*([^{}][^{}]*))\\}"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic org.jboss.resteasy.util.PathHelper.URI_PARAM_WITH_REGEX_PATTERN:Ljava/util/regex/Pattern;
2: ldc "\\{(\\w[\\w\\.-]*)\\}"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic org.jboss.resteasy.util.PathHelper.URI_PARAM_WITHOUT_REGEX_PATTERN:Ljava/util/regex/Pattern;
3: ldc "(\\{([^}]+)\\})"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic org.jboss.resteasy.util.PathHelper.URI_TEMPLATE_PATTERN:Ljava/util/regex/Pattern;
4: 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 Lorg/jboss/resteasy/util/PathHelper;
public static java.lang.String getEncodedPathInfo(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 2
ldc ""
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 2
aload 0
aload 1
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 2
1: aload 0
aload 1
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 0
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 path Ljava/lang/String;
0 3 1 contextPath Ljava/lang/String;
MethodParameters:
Name Flags
path
contextPath
public static java.lang.String replaceEnclosedCurlyBraces(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.toCharArray:()[C
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 13
4: StackMap locals: char[] int int
StackMap stack:
aload 1
iload 3
caload
bipush 123
if_icmpne 8
5: iload 2
ifeq 6
aload 1
iload 3
bipush 6
castore
6: StackMap locals:
StackMap stack:
iinc 2 1
7: goto 12
8: StackMap locals:
StackMap stack:
aload 1
iload 3
caload
bipush 125
if_icmpne 12
9: iinc 2 -1
10: iload 2
ifeq 12
11: aload 1
iload 3
bipush 7
castore
12: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
13: iload 3
aload 1
arraylength
if_icmplt 4
end local 3 14: new java.lang.String
dup
aload 1
invokespecial java.lang.String.<init>:([C)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 str Ljava/lang/String;
1 15 1 chars [C
2 15 2 open I
3 14 3 i I
MethodParameters:
Name Flags
str
public static java.lang.CharSequence replaceEnclosedCurlyBracesCS(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/CharSequence;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
astore 2
start local 2 2: aconst_null
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 21
5: StackMap locals: java.lang.String int java.lang.CharSequence char[] int
StackMap stack:
aload 2
iload 4
invokeinterface java.lang.CharSequence.charAt:(I)C
bipush 123
if_icmpne 13
6: iload 1
ifeq 11
7: aload 2
aload 0
if_acmpne 10
8: aload 0
invokevirtual java.lang.String.toCharArray:()[C
astore 3
9: new org.jboss.resteasy.util.ArrayCharSequence
dup
aload 3
invokespecial org.jboss.resteasy.util.ArrayCharSequence.<init>:([C)V
astore 2
10: StackMap locals:
StackMap stack:
aload 3
iload 4
bipush 6
castore
11: StackMap locals:
StackMap stack:
iinc 1 1
12: goto 20
13: StackMap locals:
StackMap stack:
aload 2
iload 4
invokeinterface java.lang.CharSequence.charAt:(I)C
bipush 125
if_icmpne 20
14: iinc 1 -1
15: iload 1
ifeq 20
16: aload 2
aload 0
if_acmpne 19
17: aload 0
invokevirtual java.lang.String.toCharArray:()[C
astore 3
18: new org.jboss.resteasy.util.ArrayCharSequence
dup
aload 3
invokespecial org.jboss.resteasy.util.ArrayCharSequence.<init>:([C)V
astore 2
19: StackMap locals:
StackMap stack:
aload 3
iload 4
bipush 7
castore
20: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
21: iload 4
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 5
end local 4 22: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 str Ljava/lang/String;
1 23 1 open I
2 23 2 cs Ljava/lang/CharSequence;
3 23 3 chars [C
4 22 4 i I
MethodParameters:
Name Flags
str
public static java.lang.String recoverEnclosedCurlyBraces(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
bipush 6
bipush 123
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
bipush 7
bipush 125
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 str Ljava/lang/String;
MethodParameters:
Name Flags
str
}
SourceFile: "PathHelper.java"