@Beta
public interface AnnotationReferenceProvider
AnnotationReference
instances.Modifier and Type | Method and Description |
---|---|
AnnotationReference |
newAnnotationReference(AnnotationReference annotationReference)
Create a new annotation reference base on the given annotation reference.
|
AnnotationReference |
newAnnotationReference(AnnotationReference annotationReference,
Procedures.Procedure1<AnnotationReferenceBuildContext> initializer)
Create a new annotation reference base on the given annotation reference.
|
AnnotationReference |
newAnnotationReference(java.lang.Class<?> annotationClass)
Creates a new annotation reference for the given
Class . |
AnnotationReference |
newAnnotationReference(java.lang.Class<?> annotationClass,
Procedures.Procedure1<AnnotationReferenceBuildContext> initializer)
Creates a new annotation reference for the given
Class . |
AnnotationReference |
newAnnotationReference(java.lang.String annotationTypeName)
Creates a new annotation reference for the given name.
|
AnnotationReference |
newAnnotationReference(java.lang.String annotationTypeName,
Procedures.Procedure1<AnnotationReferenceBuildContext> initializer)
Creates a new annotation reference for the given name.
|
AnnotationReference |
newAnnotationReference(Type annotationTypeDelcaration)
Creates a new annotation reference for the given type declaration.
|
AnnotationReference |
newAnnotationReference(Type annotationTypeDelcaration,
Procedures.Procedure1<AnnotationReferenceBuildContext> initializer)
Creates a new annotation reference for the given type declaration.
|
AnnotationReference newAnnotationReference(java.lang.String annotationTypeName)
annotationTypeName
- the name of the annotation type to point to, must be a valid java identifierAnnotationReference
pointing to the type with the give name, or null
if no such annotation type could be found.java.lang.IllegalArgumentException
- if the name
is not a valid java identifierAnnotationReference newAnnotationReference(Type annotationTypeDelcaration)
annotationTypeDelcaration
- the annotation type to point to, must not be null
.AnnotationReference
pointing to the given type, or null
if the given type is not an annotation type.java.lang.IllegalArgumentException
- if the given type declaration is nullAnnotationReference newAnnotationReference(java.lang.Class<?> annotationClass)
Class
.annotationClass
- the Class
to point to, must not be null
.AnnotationReference
pointing to the given type, or null
if the given type is not on the class path of the compiled project or an annotation type.java.lang.IllegalArgumentException
- if the given Class
is nullAnnotationReference newAnnotationReference(AnnotationReference annotationReference)
annotationReference
- an annotation reference which is used as a base for a new annotation reference, must not be null
or detached.AnnotationReference
constructed based on the given annotation reference, can be null
java.lang.IllegalArgumentException
- if the given annotation reference is null
or detachedAnnotationReference newAnnotationReference(java.lang.String annotationTypeName, Procedures.Procedure1<AnnotationReferenceBuildContext> initializer)
annotationTypeName
- the name of the annotation type to point toinitializer
- a callback for further initialization of the create annotation reference, must not be null
.AnnotationReference
pointing to the type with the give name, or null
if no such annotation type could be found.java.lang.IllegalArgumentException
- if the name
is not a valid java identifier or the initializer
is null
AnnotationReference newAnnotationReference(Type annotationTypeDelcaration, Procedures.Procedure1<AnnotationReferenceBuildContext> initializer)
annotationTypeDelcaration
- the annotation type to point to, must not be null
.initializer
- a callback for further initialization of the create annotation reference, must not be null
.AnnotationReference
pointing to the given type, or null
if the given type is not an annotation type.java.lang.IllegalArgumentException
- if the given type declaration is null
or the initializer
is null
AnnotationReference newAnnotationReference(java.lang.Class<?> annotationClass, Procedures.Procedure1<AnnotationReferenceBuildContext> initializer)
Class
.annotationClass
- the Class
to point to, must not be null
.initializer
- a callback for further initialization of the create annotation reference, must not be null
.AnnotationReference
pointing to the given type, or null
if the given type is not on the class path of the compiled project or an annotation type.java.lang.IllegalArgumentException
- if the given Class
is null
or the initializer
is null
AnnotationReference newAnnotationReference(AnnotationReference annotationReference, Procedures.Procedure1<AnnotationReferenceBuildContext> initializer)
annotationReference
- an annotation reference which is used as a base for a new annotation reference, must not be null
or detached.initializer
- a callback for further initialization of the create annotation reference, must not be null
.AnnotationReference
constructed based on the given annotation reference, can be null
java.lang.IllegalArgumentException
- if the given annotation reference is null
or detached; or the initializer
is null