public class AnnotationUtils
extends java.lang.Object
| Constructor and Description |
|---|
AnnotationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.Class<?> annotationClass)
Find a visible or invisible annotation in a
ClassNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.String annotationDescriptor)
Find a visible or invisible annotation in a
ClassNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.Class<?> annotationClass)
Find a visible or invisible annotation in a
FieldNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.String annotationDescriptor)
Find a visible or invisible annotation in a
FieldNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findAnnotation(java.util.List<org.objectweb.asm.tree.AnnotationNode> annotations,
java.lang.Class<?> annotationClass)
Find an annotation in a list of annotations.
|
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findAnnotation(java.util.List<org.objectweb.asm.tree.AnnotationNode> annotations,
java.lang.String annotationDescriptor)
Find an annotation in a list of annotations.
|
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
Find a visible or invisible annotation in a
MethodNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
Find a visible or invisible annotation in a
MethodNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findInvisibleAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.Class<?> annotationClass)
Find an invisible annotation in a
ClassNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findInvisibleAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.String annotationDescriptor)
Find an invisible annotation in a
ClassNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findInvisibleAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.Class<?> annotationClass)
Find an invisible annotation in a
FieldNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findInvisibleAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.String annotationDescriptor)
Find an invisible annotation in a
FieldNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findInvisibleAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
Find an invisible annotation in a
MethodNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findInvisibleAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
Find an invisible annotation in a
MethodNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode[]> |
findInvisibleParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
Find invisible parameter annotations in a
MethodNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode[]> |
findInvisibleParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
Find invisible parameter annotations in a
MethodNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode[]> |
findParameterAnnotations(java.util.List<org.objectweb.asm.tree.AnnotationNode>[] annotations,
java.lang.Class<?> annotationClass)
Find parameter annotations in a list of annotations.
|
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode[]> |
findParameterAnnotations(java.util.List<org.objectweb.asm.tree.AnnotationNode>[] annotations,
java.lang.String annotationDescriptor)
Find parameter annotations in a list of annotations.
|
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode[]> |
findParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
Find visible or invisible parameter annotations in a
MethodNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode[]> |
findParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
Find visible or invisible parameter annotations in a
MethodNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findVisibleAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.Class<?> annotationClass)
Find a visible annotation in a
ClassNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findVisibleAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.String annotationDescriptor)
Find a visible annotation in a
ClassNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findVisibleAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.Class<?> annotationClass)
Find a visible annotation in a
FieldNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findVisibleAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.String annotationDescriptor)
Find a visible annotation in a
FieldNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findVisibleAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
Find a visible annotation in a
MethodNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> |
findVisibleAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
Find a visible annotation in a
MethodNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode[]> |
findVisibleParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
Find visible parameter annotations in a
MethodNode. |
static java.util.Optional<org.objectweb.asm.tree.AnnotationNode[]> |
findVisibleParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
Find visible parameter annotations in a
MethodNode. |
static void |
forEach(org.objectweb.asm.tree.ClassNode classNode,
java.util.function.Consumer<org.objectweb.asm.tree.AnnotationNode> annotationConsumer)
Iterate through all annotations in a
ClassNode. |
static void |
forEach(org.objectweb.asm.tree.FieldNode fieldNode,
java.util.function.Consumer<org.objectweb.asm.tree.AnnotationNode> annotationConsumer)
Iterate through all annotations in a
FieldNode. |
static void |
forEach(org.objectweb.asm.tree.MethodNode methodNode,
java.util.function.Consumer<org.objectweb.asm.tree.AnnotationNode> annotationConsumer)
Iterate through all annotations in a
MethodNode. |
static void |
forEachInvisible(org.objectweb.asm.tree.ClassNode classNode,
java.util.function.Consumer<org.objectweb.asm.tree.AnnotationNode> annotationConsumer)
Iterate through all invisible annotations in a
ClassNode. |
static void |
forEachInvisible(org.objectweb.asm.tree.FieldNode fieldNode,
java.util.function.Consumer<org.objectweb.asm.tree.AnnotationNode> annotationConsumer)
Iterate through all invisible annotations in a
FieldNode. |
static void |
forEachInvisible(org.objectweb.asm.tree.MethodNode methodNode,
java.util.function.Consumer<org.objectweb.asm.tree.AnnotationNode> annotationConsumer)
Iterate through all invisible annotations in a
MethodNode. |
static void |
forEachVisible(org.objectweb.asm.tree.ClassNode classNode,
java.util.function.Consumer<org.objectweb.asm.tree.AnnotationNode> annotationConsumer)
Iterate through all visible annotations in a
ClassNode. |
static void |
forEachVisible(org.objectweb.asm.tree.FieldNode fieldNode,
java.util.function.Consumer<org.objectweb.asm.tree.AnnotationNode> annotationConsumer)
Iterate through all visible annotations in a
FieldNode. |
static void |
forEachVisible(org.objectweb.asm.tree.MethodNode methodNode,
java.util.function.Consumer<org.objectweb.asm.tree.AnnotationNode> annotationConsumer)
Iterate through all visible annotations in a
MethodNode. |
static boolean |
hasAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.Class<?> annotationClass)
Check if a
ClassNode has a visible or invisible annotation. |
static boolean |
hasAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.String annotationDescriptor)
Check if a
ClassNode has a visible or invisible annotation. |
static boolean |
hasAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.Class<?> annotationClass)
Check if a
FieldNode has a visible or invisible annotation. |
static boolean |
hasAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.String annotationDescriptor)
Check if a
FieldNode has a visible or invisible annotation. |
static boolean |
hasAnnotation(java.util.List<org.objectweb.asm.tree.AnnotationNode> annotations,
java.lang.Class<?> annotationClass)
Check if a list of annotations has an annotation.
|
static boolean |
hasAnnotation(java.util.List<org.objectweb.asm.tree.AnnotationNode> annotations,
java.lang.String annotationDescriptor)
Check if a list of annotations has an annotation.
|
static boolean |
hasAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
Check if a
MethodNode has a visible or invisible annotation. |
static boolean |
hasAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
Check if a
MethodNode has a visible or invisible annotation. |
static boolean |
hasInvisibleAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.Class<?> annotationClass)
Check if a
ClassNode has an invisible annotation. |
static boolean |
hasInvisibleAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.String annotationDescriptor)
Check if a
ClassNode has an invisible annotation. |
static boolean |
hasInvisibleAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.Class<?> annotationClass)
Check if a
FieldNode has an invisible annotation. |
static boolean |
hasInvisibleAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.String annotationDescriptor)
Check if a
FieldNode has an invisible annotation. |
static boolean |
hasInvisibleAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
Check if a
MethodNode has an invisible annotation. |
static boolean |
hasInvisibleAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
Check if a
MethodNode has an invisible annotation. |
static boolean |
hasInvisibleParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
Check if a
MethodNode has invisible parameter annotations. |
static boolean |
hasInvisibleParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
Check if a
MethodNode has invisible parameter annotations. |
static boolean |
hasParameterAnnotations(java.util.List<org.objectweb.asm.tree.AnnotationNode>[] annotations,
java.lang.Class<?> annotationClass)
Check if an array of parameter annotations has an annotation.
|
static boolean |
hasParameterAnnotations(java.util.List<org.objectweb.asm.tree.AnnotationNode>[] annotations,
java.lang.String annotationDescriptor)
Check if an array of parameter annotations has an annotation.
|
static boolean |
hasParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
Check if a
MethodNode has visible or invisible parameter annotations. |
static boolean |
hasParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
Check if a
MethodNode has visible or invisible parameter annotations. |
static boolean |
hasVisibleAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.Class<?> annotationClass)
Check if a
ClassNode has a visible annotation. |
static boolean |
hasVisibleAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.String annotationDescriptor)
Check if a
ClassNode has a visible annotation. |
static boolean |
hasVisibleAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.Class<?> annotationClass)
Check if a
FieldNode has a visible annotation. |
static boolean |
hasVisibleAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.String annotationDescriptor)
Check if a
FieldNode has a visible annotation. |
static boolean |
hasVisibleAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
Check if a
MethodNode has a visible annotation. |
static boolean |
hasVisibleAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
Check if a
MethodNode has a visible annotation. |
static boolean |
hasVisibleParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
Check if a
MethodNode has visible parameter annotations. |
static boolean |
hasVisibleParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
Check if a
MethodNode has visible parameter annotations. |
static java.util.Map<java.lang.String,java.lang.Object> |
listToMap(java.util.List<java.lang.Object> list)
Convert a list of key-value pairs to a map.
|
static java.util.List<java.lang.Object> |
mapToList(java.util.Map<java.lang.String,java.lang.Object> map)
Convert a map to a list of key-value pairs.
|
public static java.util.Map<java.lang.String,java.lang.Object> listToMap(@Nullable
java.util.List<java.lang.Object> list)
[key, value, key, value, ...].list - The list to convertjava.lang.IndexOutOfBoundsException - If the size of the list is not evenjava.lang.ClassCastException - If the key is not a stringpublic static java.util.List<java.lang.Object> mapToList(@Nullable
java.util.Map<java.lang.String,java.lang.Object> map)
[key, value, key, value, ...].map - The map to convertpublic static void forEachVisible(org.objectweb.asm.tree.ClassNode classNode,
java.util.function.Consumer<org.objectweb.asm.tree.AnnotationNode> annotationConsumer)
ClassNode.classNode - The class node to iterate throughannotationConsumer - The consumer to consume the annotationspublic static void forEachVisible(org.objectweb.asm.tree.FieldNode fieldNode,
java.util.function.Consumer<org.objectweb.asm.tree.AnnotationNode> annotationConsumer)
FieldNode.fieldNode - The field node to iterate throughannotationConsumer - The consumer to consume the annotationspublic static void forEachVisible(org.objectweb.asm.tree.MethodNode methodNode,
java.util.function.Consumer<org.objectweb.asm.tree.AnnotationNode> annotationConsumer)
MethodNode.methodNode - The method node to iterate throughannotationConsumer - The consumer to consume the annotationspublic static void forEachInvisible(org.objectweb.asm.tree.ClassNode classNode,
java.util.function.Consumer<org.objectweb.asm.tree.AnnotationNode> annotationConsumer)
ClassNode.classNode - The class node to iterate throughannotationConsumer - The consumer to consume the annotationspublic static void forEachInvisible(org.objectweb.asm.tree.FieldNode fieldNode,
java.util.function.Consumer<org.objectweb.asm.tree.AnnotationNode> annotationConsumer)
FieldNode.fieldNode - The field node to iterate throughannotationConsumer - The consumer to consume the annotationspublic static void forEachInvisible(org.objectweb.asm.tree.MethodNode methodNode,
java.util.function.Consumer<org.objectweb.asm.tree.AnnotationNode> annotationConsumer)
MethodNode.methodNode - The method node to iterate throughannotationConsumer - The consumer to consume the annotationspublic static void forEach(org.objectweb.asm.tree.ClassNode classNode,
java.util.function.Consumer<org.objectweb.asm.tree.AnnotationNode> annotationConsumer)
ClassNode.classNode - The class node to iterate throughannotationConsumer - The consumer to consume the annotationspublic static void forEach(org.objectweb.asm.tree.FieldNode fieldNode,
java.util.function.Consumer<org.objectweb.asm.tree.AnnotationNode> annotationConsumer)
FieldNode.fieldNode - The field node to iterate throughannotationConsumer - The consumer to consume the annotationspublic static void forEach(org.objectweb.asm.tree.MethodNode methodNode,
java.util.function.Consumer<org.objectweb.asm.tree.AnnotationNode> annotationConsumer)
MethodNode.methodNode - The method node to iterate throughannotationConsumer - The consumer to consume the annotationspublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findVisibleAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.Class<?> annotationClass)
ClassNode.classNode - The class node to search inannotationClass - The annotation class to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findVisibleAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.String annotationDescriptor)
ClassNode.classNode - The class node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findVisibleAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.Class<?> annotationClass)
FieldNode.fieldNode - The field node to search inannotationClass - The annotation class to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findVisibleAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.String annotationDescriptor)
FieldNode.fieldNode - The field node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findVisibleAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
MethodNode.methodNode - The method node to search inannotationClass - The annotation class to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findVisibleAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
MethodNode.methodNode - The method node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode[]> findVisibleParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
MethodNode.methodNode - The method node to search inannotationClass - The annotation class to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode[]> findVisibleParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
MethodNode.methodNode - The method node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findInvisibleAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.Class<?> annotationClass)
ClassNode.classNode - The class node to search inannotationClass - The annotation class to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findInvisibleAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.String annotationDescriptor)
ClassNode.classNode - The class node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findInvisibleAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.Class<?> annotationClass)
FieldNode.fieldNode - The field node to search inannotationClass - The annotation class to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findInvisibleAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.String annotationDescriptor)
FieldNode.fieldNode - The field node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findInvisibleAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
MethodNode.methodNode - The method node to search inannotationClass - The annotation class to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findInvisibleAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
MethodNode.methodNode - The method node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode[]> findInvisibleParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
MethodNode.methodNode - The method node to search inannotationClass - The annotation class to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode[]> findInvisibleParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
MethodNode.methodNode - The method node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.Class<?> annotationClass)
ClassNode.classNode - The class node to search inannotationClass - The annotation class to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.String annotationDescriptor)
ClassNode.classNode - The class node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.Class<?> annotationClass)
FieldNode.fieldNode - The field node to search inannotationClass - The annotation class to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.String annotationDescriptor)
FieldNode.fieldNode - The field node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
MethodNode.methodNode - The method node to search inannotationClass - The annotation class to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
MethodNode.methodNode - The method node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode[]> findParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
MethodNode.methodNode - The method node to search inannotationClass - The annotation class to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode[]> findParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
MethodNode.methodNode - The method node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findAnnotation(@Nullable
java.util.List<org.objectweb.asm.tree.AnnotationNode> annotations,
java.lang.Class<?> annotationClass)
annotations - The list of annotations to search inannotationClass - The annotation class to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode> findAnnotation(@Nullable
java.util.List<org.objectweb.asm.tree.AnnotationNode> annotations,
java.lang.String annotationDescriptor)
annotations - The list of annotations to search inannotationDescriptor - The descriptor of the annotation to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode[]> findParameterAnnotations(@Nullable
java.util.List<org.objectweb.asm.tree.AnnotationNode>[] annotations,
java.lang.Class<?> annotationClass)
annotations - The list of annotations to search inannotationClass - The annotation class to search forpublic static java.util.Optional<org.objectweb.asm.tree.AnnotationNode[]> findParameterAnnotations(@Nullable
java.util.List<org.objectweb.asm.tree.AnnotationNode>[] annotations,
java.lang.String annotationDescriptor)
annotations - The list of annotations to search inannotationDescriptor - The descriptor of the annotation to search forpublic static boolean hasVisibleAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.Class<?> annotationClass)
ClassNode has a visible annotation.classNode - The class node to search inannotationClass - The annotation class to search forpublic static boolean hasVisibleAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.String annotationDescriptor)
ClassNode has a visible annotation.classNode - The class node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static boolean hasVisibleAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.Class<?> annotationClass)
FieldNode has a visible annotation.fieldNode - The field node to search inannotationClass - The annotation class to search forpublic static boolean hasVisibleAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.String annotationDescriptor)
FieldNode has a visible annotation.fieldNode - The field node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static boolean hasVisibleAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
MethodNode has a visible annotation.methodNode - The method node to search inannotationClass - The annotation class to search forpublic static boolean hasVisibleAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
MethodNode has a visible annotation.methodNode - The method node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static boolean hasVisibleParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
MethodNode has visible parameter annotations.methodNode - The method node to search inannotationClass - The annotation class to search forpublic static boolean hasVisibleParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
MethodNode has visible parameter annotations.methodNode - The method node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static boolean hasInvisibleAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.Class<?> annotationClass)
ClassNode has an invisible annotation.classNode - The class node to search inannotationClass - The annotation class to search forpublic static boolean hasInvisibleAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.String annotationDescriptor)
ClassNode has an invisible annotation.classNode - The class node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static boolean hasInvisibleAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.Class<?> annotationClass)
FieldNode has an invisible annotation.fieldNode - The field node to search inannotationClass - The annotation class to search forpublic static boolean hasInvisibleAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.String annotationDescriptor)
FieldNode has an invisible annotation.fieldNode - The field node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static boolean hasInvisibleAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
MethodNode has an invisible annotation.methodNode - The method node to search inannotationClass - The annotation class to search forpublic static boolean hasInvisibleAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
MethodNode has an invisible annotation.methodNode - The method node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static boolean hasInvisibleParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
MethodNode has invisible parameter annotations.methodNode - The method node to search inannotationClass - The annotation class to search forpublic static boolean hasInvisibleParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
MethodNode has invisible parameter annotations.methodNode - The method node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static boolean hasAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.Class<?> annotationClass)
ClassNode has a visible or invisible annotation.classNode - The class node to search inannotationClass - The annotation class to search forpublic static boolean hasAnnotation(org.objectweb.asm.tree.ClassNode classNode,
java.lang.String annotationDescriptor)
ClassNode has a visible or invisible annotation.classNode - The class node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static boolean hasAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.Class<?> annotationClass)
FieldNode has a visible or invisible annotation.fieldNode - The field node to search inannotationClass - The annotation class to search forpublic static boolean hasAnnotation(org.objectweb.asm.tree.FieldNode fieldNode,
java.lang.String annotationDescriptor)
FieldNode has a visible or invisible annotation.fieldNode - The field node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static boolean hasAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
MethodNode has a visible or invisible annotation.methodNode - The method node to search inannotationClass - The annotation class to search forpublic static boolean hasAnnotation(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
MethodNode has a visible or invisible annotation.methodNode - The method node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static boolean hasParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.Class<?> annotationClass)
MethodNode has visible or invisible parameter annotations.methodNode - The method node to search inannotationClass - The annotation class to search forpublic static boolean hasParameterAnnotations(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String annotationDescriptor)
MethodNode has visible or invisible parameter annotations.methodNode - The method node to search inannotationDescriptor - The descriptor of the annotation to search forpublic static boolean hasAnnotation(@Nullable
java.util.List<org.objectweb.asm.tree.AnnotationNode> annotations,
java.lang.Class<?> annotationClass)
annotations - The list of annotations to search inannotationClass - The annotation class to search forpublic static boolean hasAnnotation(@Nullable
java.util.List<org.objectweb.asm.tree.AnnotationNode> annotations,
java.lang.String annotationDescriptor)
annotations - The list of annotations to search inannotationDescriptor - The descriptor of the annotation to search forpublic static boolean hasParameterAnnotations(@Nullable
java.util.List<org.objectweb.asm.tree.AnnotationNode>[] annotations,
java.lang.Class<?> annotationClass)
annotations - The array of parameter annotations to search inannotationClass - The annotation class to search forpublic static boolean hasParameterAnnotations(@Nullable
java.util.List<org.objectweb.asm.tree.AnnotationNode>[] annotations,
java.lang.String annotationDescriptor)
annotations - The array of parameter annotations to search inannotationDescriptor - The descriptor of the annotation to search for