public final class org.jboss.resteasy.util.FindAnnotation
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.jboss.resteasy.util.FindAnnotation
super_class: java.lang.Object
{
private static final java.lang.Class<? extends java.lang.annotation.Annotation>[] JAXRS_ANNOTATIONS;
descriptor: [Ljava/lang/Class;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: [Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;
private static final java.lang.Class[] findJaxRSAnnotations_TYPE;
descriptor: [Ljava/lang/Class;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: bipush 13
anewarray java.lang.Class
dup
iconst_0
1: ldc Ljavax/ws/rs/QueryParam;
aastore
dup
iconst_1
2: ldc Ljavax/ws/rs/HeaderParam;
aastore
dup
iconst_2
3: ldc Ljavax/ws/rs/CookieParam;
aastore
dup
iconst_3
4: ldc Ljavax/ws/rs/PathParam;
aastore
dup
iconst_4
5: ldc Ljavax/ws/rs/MatrixParam;
aastore
dup
iconst_5
6: ldc Ljavax/ws/rs/FormParam;
aastore
dup
bipush 6
7: ldc Ljavax/ws/rs/core/Context;
aastore
dup
bipush 7
8: ldc Lorg/jboss/resteasy/annotations/jaxrs/QueryParam;
aastore
dup
bipush 8
9: ldc Lorg/jboss/resteasy/annotations/jaxrs/HeaderParam;
aastore
dup
bipush 9
10: ldc Lorg/jboss/resteasy/annotations/jaxrs/CookieParam;
aastore
dup
bipush 10
11: ldc Lorg/jboss/resteasy/annotations/jaxrs/PathParam;
aastore
dup
bipush 11
12: ldc Lorg/jboss/resteasy/annotations/jaxrs/MatrixParam;
aastore
dup
bipush 12
13: ldc Lorg/jboss/resteasy/annotations/jaxrs/FormParam;
aastore
14: putstatic org.jboss.resteasy.util.FindAnnotation.JAXRS_ANNOTATIONS:[Ljava/lang/Class;
15: iconst_0
anewarray java.lang.Class
putstatic org.jboss.resteasy.util.FindAnnotation.findJaxRSAnnotations_TYPE:[Ljava/lang/Class;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/util/FindAnnotation;
public static <T> T findAnnotation(java.lang.annotation.Annotation[], java.lang.Class<T>);
descriptor: ([Ljava/lang/annotation/Annotation;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
aload 0
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 6
StackMap locals: java.lang.annotation.Annotation[] java.lang.Class top int int java.lang.annotation.Annotation[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 2
invokeinterface java.lang.annotation.Annotation.annotationType:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 5
4: aload 2
areturn
end local 2 5: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 4
if_icmplt 2
7: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 searchList [Ljava/lang/annotation/Annotation;
0 8 1 annotation Ljava/lang/Class<TT;>;
3 5 2 ann Ljava/lang/annotation/Annotation;
Signature: <T:Ljava/lang/Object;>([Ljava/lang/annotation/Annotation;Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
searchList
annotation
public static java.lang.Class<? extends java.lang.annotation.Annotation>[] findJaxRSAnnotations(java.lang.annotation.Annotation[]);
descriptor: ([Ljava/lang/annotation/Annotation;)[Ljava/lang/Class;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=6, args_size=1
start local 0 0: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 1
start local 1 1: getstatic org.jboss.resteasy.util.FindAnnotation.JAXRS_ANNOTATIONS:[Ljava/lang/Class;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 6
StackMap locals: java.lang.annotation.Annotation[] java.util.LinkedList top int int java.lang.Class[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 0
aload 2
invokestatic org.jboss.resteasy.util.FindAnnotation.findAnnotation:([Ljava/lang/annotation/Annotation;Ljava/lang/Class;)Ljava/lang/Object;
ifnull 5
4: aload 1
aload 2
invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
end local 2 5: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 4
if_icmplt 2
7: aload 1
getstatic org.jboss.resteasy.util.FindAnnotation.findJaxRSAnnotations_TYPE:[Ljava/lang/Class;
invokevirtual java.util.LinkedList.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 8 0 searchList [Ljava/lang/annotation/Annotation;
1 8 1 result Ljava/util/LinkedList<Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;>;
3 5 2 clazz Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;
Signature: ([Ljava/lang/annotation/Annotation;)[Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;
MethodParameters:
Name Flags
searchList
public static java.lang.annotation.Annotation[] getResourcesAnnotations(java.lang.reflect.Method);
descriptor: (Ljava/lang/reflect/Method;)[Ljava/lang/annotation/Annotation;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 1
start local 1 1: aload 0
invokevirtual java.lang.reflect.Method.getDeclaringClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getAnnotations:()[Ljava/lang/annotation/Annotation;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 5
StackMap locals: java.lang.reflect.Method java.util.Map top int int java.lang.annotation.Annotation[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 1
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 4
if_icmplt 2
6: aload 0
invokevirtual java.lang.reflect.Method.getAnnotations:()[Ljava/lang/annotation/Annotation;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 10
StackMap locals:
StackMap stack:
7: aload 5
iload 3
aaload
astore 2
start local 2 8: aload 1
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 9: iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
iload 4
if_icmplt 7
11: aload 1
invokeinterface java.util.Map.values:()Ljava/util/Collection;
aload 1
invokeinterface java.util.Map.size:()I
anewarray java.lang.annotation.Annotation
invokeinterface java.util.Collection.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.annotation.Annotation[]
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 method Ljava/lang/reflect/Method;
1 12 1 annotations Ljava/util/Map<Ljava/lang/Class<*>;Ljava/lang/annotation/Annotation;>;
3 4 2 annotation Ljava/lang/annotation/Annotation;
8 9 2 annotation Ljava/lang/annotation/Annotation;
MethodParameters:
Name Flags
method
public static <T extends java.lang.annotation.Annotation> T findAnnotation(java.lang.Class<?>, java.lang.annotation.Annotation[], java.lang.Class<T>);
descriptor: (Ljava/lang/Class;[Ljava/lang/annotation/Annotation;Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokestatic org.jboss.resteasy.util.FindAnnotation.findAnnotation:([Ljava/lang/annotation/Annotation;Ljava/lang/Class;)Ljava/lang/Object;
checkcast java.lang.annotation.Annotation
astore 3
start local 3 1: aload 3
ifnonnull 3
2: aload 0
aload 2
invokevirtual java.lang.Class.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
astore 3
3: StackMap locals: java.lang.annotation.Annotation
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 type Ljava/lang/Class<*>;
0 4 1 annotations [Ljava/lang/annotation/Annotation;
0 4 2 annotation Ljava/lang/Class<TT;>;
1 4 3 config TT;
Signature: <T::Ljava/lang/annotation/Annotation;>(Ljava/lang/Class<*>;[Ljava/lang/annotation/Annotation;Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
type
annotations
annotation
}
SourceFile: "FindAnnotation.java"