public class org.jboss.resteasy.util.GetRestful
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jboss.resteasy.util.GetRestful
super_class: java.lang.Object
{
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/GetRestful;
public static java.lang.Class getRootResourceClass(java.lang.Class);
descriptor: (Ljava/lang/Class;)Ljava/lang/Class;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc Ljavax/ws/rs/Path;
invokestatic org.jboss.resteasy.util.AnnotationResolver.getClassWithAnnotation:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 clazz Ljava/lang/Class;
MethodParameters:
Name Flags
clazz
public static boolean isSubResourceClass(java.lang.Class);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=6, args_size=1
start local 0 0: aload 0
astore 1
start local 1 1: goto 11
2: StackMap locals: java.lang.Class
StackMap stack:
aload 1
invokestatic org.jboss.resteasy.util.GetRestful.hasJAXRSAnnotations:(Ljava/lang/Class;)Z
ifeq 4
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Class.getInterfaces:()[Ljava/lang/Class;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 9
StackMap locals: java.lang.Class java.lang.Class top int int java.lang.Class[]
StackMap stack:
5: aload 5
iload 3
aaload
astore 2
start local 2 6: aload 2
invokestatic org.jboss.resteasy.util.GetRestful.hasJAXRSAnnotations:(Ljava/lang/Class;)Z
ifeq 8
7: iconst_1
ireturn
end local 2 8: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
iload 4
if_icmplt 5
10: aload 1
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 1
StackMap locals: java.lang.Class java.lang.Class
StackMap stack:
11: aload 1
invokestatic org.jboss.resteasy.util.GetRestful.isTopObject:(Ljava/lang/Class;)Z
ifne 2
end local 1 12: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 clazz Ljava/lang/Class;
1 12 1 actualClass Ljava/lang/Class<*>;
6 8 2 intf Ljava/lang/Class;
MethodParameters:
Name Flags
clazz
public static java.lang.Class getSubResourceClass(java.lang.Class);
descriptor: (Ljava/lang/Class;)Ljava/lang/Class;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
astore 1
start local 1 1: goto 5
2: StackMap locals: java.lang.Class
StackMap stack:
aload 1
invokestatic org.jboss.resteasy.util.GetRestful.hasJAXRSAnnotations:(Ljava/lang/Class;)Z
ifeq 4
3: aload 1
areturn
4: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 1
StackMap locals:
StackMap stack:
5: aload 1
invokestatic org.jboss.resteasy.util.GetRestful.isTopObject:(Ljava/lang/Class;)Z
ifne 2
end local 1 6: aload 0
invokevirtual java.lang.Class.getInterfaces:()[Ljava/lang/Class;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 11
StackMap locals: java.lang.Class top int int java.lang.Class[]
StackMap stack:
7: aload 4
iload 2
aaload
astore 1
start local 1 8: aload 1
invokestatic org.jboss.resteasy.util.GetRestful.hasJAXRSAnnotations:(Ljava/lang/Class;)Z
ifeq 10
9: aload 1
areturn
end local 1 10: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
11: iload 2
iload 3
if_icmplt 7
12: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 clazz Ljava/lang/Class;
1 6 1 actualClass Ljava/lang/Class<*>;
8 10 1 intf Ljava/lang/Class;
MethodParameters:
Name Flags
clazz
public static java.lang.Class<?>[] getSubResourceClasses(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)[Ljava/lang/Class;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 0
astore 2
start local 2 2: goto 6
3: StackMap locals: java.util.List java.lang.Class
StackMap stack:
aload 2
invokestatic org.jboss.resteasy.util.GetRestful.hasJAXRSAnnotations:(Ljava/lang/Class;)Z
ifeq 5
4: iconst_1
anewarray java.lang.Class
dup
iconst_0
aload 2
aastore
areturn
5: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 2
StackMap locals:
StackMap stack:
6: aload 2
invokestatic org.jboss.resteasy.util.GetRestful.isTopObject:(Ljava/lang/Class;)Z
ifne 3
end local 2 7: aload 0
invokevirtual java.lang.Class.getInterfaces:()[Ljava/lang/Class;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 12
StackMap locals: java.lang.Class java.util.List top int int java.lang.Class[]
StackMap stack:
8: aload 5
iload 3
aaload
astore 2
start local 2 9: aload 2
invokestatic org.jboss.resteasy.util.GetRestful.hasJAXRSAnnotations:(Ljava/lang/Class;)Z
ifeq 11
10: aload 1
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 11: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
12: iload 3
iload 4
if_icmplt 8
13: aload 1
aload 1
invokeinterface java.util.List.size:()I
anewarray java.lang.Class
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.Class[]
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 clazz Ljava/lang/Class<*>;
1 14 1 classes Ljava/util/List<Ljava/lang/Class<*>;>;
2 7 2 actualClass Ljava/lang/Class<*>;
9 11 2 intf Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)[Ljava/lang/Class<*>;
MethodParameters:
Name Flags
clazz
private static boolean isTopObject(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
ldc Ljava/lang/Object;
if_acmpeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 actualClass Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
actualClass
private static boolean hasJAXRSAnnotations(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=9, args_size=1
start local 0 0: aload 0
ldc Ljavax/ws/rs/Path;
invokevirtual java.lang.Class.isAnnotationPresent:(Ljava/lang/Class;)Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.isInterface:()Z
ifeq 3
aload 0
invokevirtual java.lang.Class.getMethods:()[Ljava/lang/reflect/Method;
goto 4
StackMap locals:
StackMap stack:
3: aload 0
invokevirtual java.lang.Class.getDeclaredMethods:()[Ljava/lang/reflect/Method;
StackMap locals:
StackMap stack: java.lang.reflect.Method[]
4: dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 15
StackMap locals: java.lang.Class top int int java.lang.reflect.Method[]
StackMap stack:
5: aload 4
iload 2
aaload
astore 1
start local 1 6: aload 1
ldc Ljavax/ws/rs/Path;
invokevirtual java.lang.reflect.Method.isAnnotationPresent:(Ljava/lang/Class;)Z
ifeq 8
7: iconst_1
ireturn
8: StackMap locals: java.lang.Class java.lang.reflect.Method int int java.lang.reflect.Method[]
StackMap stack:
aload 1
invokevirtual java.lang.reflect.Method.getAnnotations:()[Ljava/lang/annotation/Annotation;
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 13
StackMap locals: java.lang.Class java.lang.reflect.Method int int java.lang.reflect.Method[] top int int java.lang.annotation.Annotation[]
StackMap stack:
9: aload 8
iload 6
aaload
astore 5
start local 5 10: aload 5
invokeinterface java.lang.annotation.Annotation.annotationType:()Ljava/lang/Class;
ldc Ljavax/ws/rs/HttpMethod;
invokevirtual java.lang.Class.isAnnotationPresent:(Ljava/lang/Class;)Z
ifeq 12
11: iconst_1
ireturn
end local 5 12: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
13: iload 6
iload 7
if_icmplt 9
end local 1 14: iinc 2 1
StackMap locals: java.lang.Class top int int java.lang.reflect.Method[]
StackMap stack:
15: iload 2
iload 3
if_icmplt 5
16: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 c Ljava/lang/Class<*>;
6 14 1 method Ljava/lang/reflect/Method;
10 12 5 ann Ljava/lang/annotation/Annotation;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
c
public static boolean isRootResource(java.lang.Class);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.jboss.resteasy.util.GetRestful.getRootResourceClass:(Ljava/lang/Class;)Ljava/lang/Class;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 clazz Ljava/lang/Class;
MethodParameters:
Name Flags
clazz
}
SourceFile: "GetRestful.java"