T
- public class EnhancedAnnotationImpl<T extends Annotation> extends EnhancedAnnotatedTypeImpl<T> implements EnhancedAnnotation<T>
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS
Modifier | Constructor and Description |
---|---|
protected |
EnhancedAnnotationImpl(SlimAnnotatedType<T> annotatedType,
Map<Class<? extends Annotation>,Annotation> annotationMap,
Map<Class<? extends Annotation>,Annotation> declaredAnnotationMap,
ClassTransformer classTransformer)
Constructor
Initializes the superclass with the built annotation map
|
Modifier and Type | Method and Description |
---|---|
static <A extends Annotation> |
create(SlimAnnotatedType<A> annotatedType,
ClassTransformer classTransformer) |
boolean |
equals(Object obj) |
Class<T> |
getDelegate()
Gets the delegate (class)
|
Set<EnhancedAnnotatedMethod<?,?>> |
getMembers()
Gets all members of the annotation
Initializes the members first if they are null
|
Set<EnhancedAnnotatedMethod<?,?>> |
getMembers(Class<? extends Annotation> annotationType)
Returns the annotated members with a given annotation type
If the annotated members are null, they are initialized first.
|
protected Set<EnhancedAnnotatedMethod<?,? super T>> |
getOverriddenMethods(EnhancedAnnotatedType<T> annotatedType,
Set<EnhancedAnnotatedMethod<?,? super T>> methods,
boolean skipOverridingBridgeMethods) |
int |
hashCode() |
String |
toString()
Gets a string representation of the annotation
|
asEnhancedSubclass, buildAnnotatedMethodMultimap, buildAnnotatedParameterMethodMultimap, cast, getAnnotatedClass, getConstructors, getDeclaredEnhancedConstructor, getDeclaredEnhancedField, getDeclaredEnhancedFields, getDeclaredEnhancedFields, getDeclaredEnhancedMethod, getDeclaredEnhancedMethod, getDeclaredEnhancedMethods, getDeclaredEnhancedMethods, getDeclaredEnhancedMethodsWithAnnotatedParameters, getDeclaredMetaAnnotations, getEnhancedConstructors, getEnhancedConstructors, getEnhancedFields, getEnhancedFields, getEnhancedMethod, getEnhancedMethod, getEnhancedMethods, getEnhancedMethods, getEnhancedMethodsWithAnnotatedParameters, getEnhancedSuperclass, getFields, getMethods, getName, getNoArgsEnhancedConstructor, getOverriddenMethods, getPackage, getSimpleName, isAbstract, isAnonymousClass, isDiscovered, isEnum, isEquivalent, isFinal, isGeneric, isLocalClass, isMemberClass, isPackagePrivate, isPrivate, isPublic, isSerializable, isStatic, of, slim
addMetaAnnotations, addMetaAnnotations, buildAnnotationMap, buildAnnotationMap, getActualTypeArguments, getAnnotation, getAnnotations, getBaseType, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, getTypeClosure, isAnnotationPresent, isParameterizedType, isPrimitive
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asEnhancedSubclass, cast, getDeclaredEnhancedConstructor, getDeclaredEnhancedField, getDeclaredEnhancedFields, getDeclaredEnhancedFields, getDeclaredEnhancedMethod, getDeclaredEnhancedMethod, getDeclaredEnhancedMethods, getDeclaredEnhancedMethods, getDeclaredEnhancedMethodsWithAnnotatedParameters, getDeclaredMetaAnnotations, getEnhancedConstructors, getEnhancedConstructors, getEnhancedFields, getEnhancedFields, getEnhancedMethod, getEnhancedMethod, getEnhancedMethods, getEnhancedMethods, getEnhancedMethodsWithAnnotatedParameters, getEnhancedSuperclass, getNoArgsEnhancedConstructor, getSimpleName, isAbstract, isAnonymousClass, isDiscovered, isEnum, isEquivalent, isLocalClass, isMemberClass, isParameterizedType, isSerializable, slim
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isGeneric, isPackagePrivate, isPrimitive, isPrivate, isPublic, isStatic
protected EnhancedAnnotationImpl(SlimAnnotatedType<T> annotatedType, Map<Class<? extends Annotation>,Annotation> annotationMap, Map<Class<? extends Annotation>,Annotation> declaredAnnotationMap, ClassTransformer classTransformer)
annotationType
- The annotation typepublic static <A extends Annotation> EnhancedAnnotation<A> create(SlimAnnotatedType<A> annotatedType, ClassTransformer classTransformer)
protected Set<EnhancedAnnotatedMethod<?,? super T>> getOverriddenMethods(EnhancedAnnotatedType<T> annotatedType, Set<EnhancedAnnotatedMethod<?,? super T>> methods, boolean skipOverridingBridgeMethods)
getOverriddenMethods
in class EnhancedAnnotatedTypeImpl<T extends Annotation>
skipOverridingBridgeMethods
- If set to true
the returning set will not contain methods overriden by a bridge methodpublic Set<EnhancedAnnotatedMethod<?,?>> getMembers()
getMembers
in interface EnhancedAnnotation<T extends Annotation>
EnhancedAnnotation.getMembers()
public Set<EnhancedAnnotatedMethod<?,?>> getMembers(Class<? extends Annotation> annotationType)
getMembers
in interface EnhancedAnnotation<T extends Annotation>
annotationType
- The annotation type to matchEnhancedAnnotation.getMembers(Class)
public String toString()
toString
in class EnhancedAnnotatedTypeImpl<T extends Annotation>
public Class<T> getDelegate()
EnhancedAnnotatedTypeImpl
getDelegate
in class EnhancedAnnotatedTypeImpl<T extends Annotation>
public int hashCode()
hashCode
in class EnhancedAnnotatedTypeImpl<T extends Annotation>
public boolean equals(Object obj)
equals
in class EnhancedAnnotatedTypeImpl<T extends Annotation>
Copyright © 2016. All rights reserved.