public enum Annotations extends Enum<Annotations>
| Modifier and Type | Method and Description |
|---|---|
static <A extends Annotation> |
findAnnotation(Class<A> annoClass,
Class<?> aClass,
String name,
Class<?>[] parameterTypes) |
static <A extends Annotation> |
getAnnotation(Method method,
Class<A> annotationClass) |
static Annotations |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Annotations[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Annotations[] values()
for (Annotations c : Annotations.values()) System.out.println(c);
public static Annotations valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static <A extends Annotation> A findAnnotation(Class<A> annoClass, Class<?> aClass, String name, Class<?>[] parameterTypes)
@Nullable public static <A extends Annotation> A getAnnotation(Method method, Class<A> annotationClass)
Copyright © 2018. All rights reserved.