@ParametersAreNonnullByDefault
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> |
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 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 |
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. |
public 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> 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> 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> 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 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 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 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 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 for