public class AnnotationUtil extends Object
| Constructor and Description |
|---|
AnnotationUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getAnnotationParameter(org.objectweb.asm.tree.AnnotationNode an,
String key,
T defaultValue,
Class<T> clazz)
Read value of annotation parameter
|
static boolean |
removeAnnotationParameter(org.objectweb.asm.tree.AnnotationNode an,
String key)
Remove specified parameter from annotation
|
public static <T> T getAnnotationParameter(org.objectweb.asm.tree.AnnotationNode an,
String key,
T defaultValue,
Class<T> clazz)
T - template of target parameter typean - annotation nodekey - name of parameter to look fordefaultValue - value if parameter not existclazz - type of target parameterpublic static boolean removeAnnotationParameter(org.objectweb.asm.tree.AnnotationNode an,
String key)
an - annotation nodekey - name of parameter to removeCopyright © 2021. All rights reserved.