public class org.jboss.resteasy.core.registry.ClassNode
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jboss.resteasy.core.registry.ClassNode
super_class: java.lang.Object
{
protected java.lang.String segment;
descriptor: Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
protected java.util.Map<java.lang.String, org.jboss.resteasy.core.registry.ClassNode> children;
descriptor: Ljava/util/Map;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/Map<Ljava/lang/String;Lorg/jboss/resteasy/core/registry/ClassNode;>;
protected java.util.List<org.jboss.resteasy.core.registry.ClassExpression> targets;
descriptor: Ljava/util/List;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/List<Lorg/jboss/resteasy/core/registry/ClassExpression;>;
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)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 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.jboss.resteasy.core.registry.ClassNode.children:Ljava/util/Map;
2: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.jboss.resteasy.core.registry.ClassNode.targets:Ljava/util/List;
3: aload 0
aload 1
putfield org.jboss.resteasy.core.registry.ClassNode.segment:Ljava/lang/String;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jboss/resteasy/core/registry/ClassNode;
0 5 1 segment Ljava/lang/String;
MethodParameters:
Name Flags
segment final
public org.jboss.resteasy.core.registry.RootNode match(org.jboss.resteasy.spi.HttpRequest, int);
descriptor: (Lorg/jboss/resteasy/spi/HttpRequest;I)Lorg/jboss/resteasy/core/registry/RootNode;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=12, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface org.jboss.resteasy.spi.HttpRequest.getUri:()Lorg/jboss/resteasy/spi/ResteasyUriInfo;
invokevirtual org.jboss.resteasy.spi.ResteasyUriInfo.getMatchingPath:()Ljava/lang/String;
astore 3
start local 3 1: iload 2
aload 3
invokevirtual java.lang.String.length:()I
if_icmpge 2
aload 3
iload 2
invokevirtual java.lang.String.charAt:(I)C
bipush 47
if_icmpne 2
iinc 2 1
2: StackMap locals: java.lang.String
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 3: aload 0
aload 3
iload 2
aload 4
invokevirtual org.jboss.resteasy.core.registry.ClassNode.potentials:(Ljava/lang/String;ILjava/util/List;)V
4: aload 4
invokestatic java.util.Collections.sort:(Ljava/util/List;)V
5: aload 4
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 19
StackMap locals: org.jboss.resteasy.core.registry.ClassNode org.jboss.resteasy.spi.HttpRequest int java.lang.String java.util.List top java.util.Iterator
StackMap stack:
6: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.jboss.resteasy.core.registry.ClassExpression
astore 5
start local 5 7: aload 5
invokevirtual org.jboss.resteasy.core.registry.ClassExpression.getPattern:()Ljava/util/regex/Pattern;
astore 7
start local 7 8: aload 7
aload 3
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 8
start local 8 9: aload 8
iload 2
aload 3
invokevirtual java.lang.String.length:()I
invokevirtual java.util.regex.Matcher.region:(II)Ljava/util/regex/Matcher;
pop
10: aload 8
invokevirtual java.util.regex.Matcher.matches:()Z
ifeq 19
11: aload 1
invokeinterface org.jboss.resteasy.spi.HttpRequest.getUri:()Lorg/jboss/resteasy/spi/ResteasyUriInfo;
astore 9
start local 9 12: aload 8
aload 5
invokevirtual org.jboss.resteasy.core.registry.ClassExpression.getNumGroups:()I
iconst_1
iadd
invokevirtual java.util.regex.Matcher.start:(I)I
istore 10
start local 10 13: iload 10
iconst_m1
if_icmpne 16
14: aload 9
aload 3
invokevirtual org.jboss.resteasy.spi.ResteasyUriInfo.pushMatchedURI:(Ljava/lang/String;)V
15: goto 18
16: StackMap locals: org.jboss.resteasy.core.registry.ClassNode org.jboss.resteasy.spi.HttpRequest int java.lang.String java.util.List org.jboss.resteasy.core.registry.ClassExpression java.util.Iterator java.util.regex.Pattern java.util.regex.Matcher org.jboss.resteasy.spi.ResteasyUriInfo int
StackMap stack:
aload 3
iconst_0
iload 10
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 11
start local 11 17: aload 9
aload 11
invokevirtual org.jboss.resteasy.spi.ResteasyUriInfo.pushMatchedURI:(Ljava/lang/String;)V
end local 11 18: StackMap locals:
StackMap stack:
aload 5
invokevirtual org.jboss.resteasy.core.registry.ClassExpression.getRoot:()Lorg/jboss/resteasy/core/registry/RootNode;
areturn
end local 10 end local 9 end local 8 end local 7 end local 5 19: StackMap locals: org.jboss.resteasy.core.registry.ClassNode org.jboss.resteasy.spi.HttpRequest int java.lang.String java.util.List top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
20: new javax.ws.rs.NotFoundException
dup
getstatic org.jboss.resteasy.resteasy_jaxrs.i18n.Messages.MESSAGES:Lorg/jboss/resteasy/resteasy_jaxrs/i18n/Messages;
aload 1
invokeinterface org.jboss.resteasy.spi.HttpRequest.getUri:()Lorg/jboss/resteasy/spi/ResteasyUriInfo;
invokevirtual org.jboss.resteasy.spi.ResteasyUriInfo.getRequestUri:()Ljava/net/URI;
invokeinterface org.jboss.resteasy.resteasy_jaxrs.i18n.Messages.couldNotFindResourceForFullPath:(Ljava/net/URI;)Ljava/lang/String;
invokespecial javax.ws.rs.NotFoundException.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/jboss/resteasy/core/registry/ClassNode;
0 21 1 request Lorg/jboss/resteasy/spi/HttpRequest;
0 21 2 start I
1 21 3 path Ljava/lang/String;
3 21 4 potentials Ljava/util/List<Lorg/jboss/resteasy/core/registry/ClassExpression;>;
7 19 5 expression Lorg/jboss/resteasy/core/registry/ClassExpression;
8 19 7 pattern Ljava/util/regex/Pattern;
9 19 8 matcher Ljava/util/regex/Matcher;
12 19 9 uriInfo Lorg/jboss/resteasy/spi/ResteasyUriInfo;
13 19 10 length I
17 18 11 substring Ljava/lang/String;
MethodParameters:
Name Flags
request
start
public void potentials(java.lang.String, int, java.util.List<org.jboss.resteasy.core.registry.ClassExpression>);
descriptor: (Ljava/lang/String;ILjava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
aload 1
invokevirtual java.lang.String.length:()I
if_icmpne 3
1: aload 3
aload 0
getfield org.jboss.resteasy.core.registry.ClassNode.targets:Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
2: return
3: StackMap locals:
StackMap stack:
iload 2
aload 1
invokevirtual java.lang.String.length:()I
if_icmpge 13
4: aconst_null
astore 4
start local 4 5: aload 1
bipush 47
iload 2
invokevirtual java.lang.String.indexOf:(II)I
istore 5
start local 5 6: iload 5
iconst_m1
if_icmple 7
aload 1
iload 2
iload 5
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 4
goto 8
7: StackMap locals: java.lang.String int
StackMap stack:
aload 1
iload 2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 4
8: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.registry.ClassNode.children:Ljava/util/Map;
aload 4
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jboss.resteasy.core.registry.ClassNode
astore 6
start local 6 9: aload 6
ifnull 13
10: iload 2
aload 4
invokevirtual java.lang.String.length:()I
iadd
istore 7
start local 7 11: iload 5
iconst_m1
if_icmple 12
iinc 7 1
12: StackMap locals: org.jboss.resteasy.core.registry.ClassNode int
StackMap stack:
aload 6
aload 1
iload 7
aload 3
invokevirtual org.jboss.resteasy.core.registry.ClassNode.potentials:(Ljava/lang/String;ILjava/util/List;)V
end local 7 end local 6 end local 5 end local 4 13: StackMap locals: org.jboss.resteasy.core.registry.ClassNode java.lang.String int java.util.List
StackMap stack:
aload 0
getfield org.jboss.resteasy.core.registry.ClassNode.targets:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 16
StackMap locals: org.jboss.resteasy.core.registry.ClassNode java.lang.String int java.util.List top java.util.Iterator
StackMap stack:
14: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.jboss.resteasy.core.registry.ClassExpression
astore 4
start local 4 15: aload 3
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 16: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
17: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/jboss/resteasy/core/registry/ClassNode;
0 18 1 path Ljava/lang/String;
0 18 2 start I
0 18 3 matches Ljava/util/List<Lorg/jboss/resteasy/core/registry/ClassExpression;>;
5 13 4 simpleSegment Ljava/lang/String;
6 13 5 endOfSegmentIndex I
9 13 6 child Lorg/jboss/resteasy/core/registry/ClassNode;
11 13 7 next I
15 16 4 exp Lorg/jboss/resteasy/core/registry/ClassExpression;
Signature: (Ljava/lang/String;ILjava/util/List<Lorg/jboss/resteasy/core/registry/ClassExpression;>;)V
MethodParameters:
Name Flags
path
start
matches
}
SourceFile: "ClassNode.java"