public abstract class AbstractAnnotated extends Object implements javax.enterprise.inject.spi.Annotated
Annotated contract.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAnnotated(WebBeansContext webBeansContext,
javax.enterprise.inject.spi.Annotated annotated)
Copy consturctor
|
protected |
AbstractAnnotated(WebBeansContext webBeansContext,
Type baseType)
Creates a new annotated element.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotation(Annotation annotation)
Adds new annotation to set.
|
protected void |
buildRepeatableAnnotations(Set<Annotation> annotations) |
void |
clearAnnotations() |
protected Set<Type> |
extractTypeClojure(Type baseType) |
<T extends Annotation> |
getAnnotation(Class<T> annotationType) |
Set<Annotation> |
getAnnotations() |
Type |
getBaseType() |
protected abstract Class<?> |
getDeclaringClass() |
protected abstract Class<?> |
getOwningClass() |
Set<Class<?>> |
getRepeatables() |
Set<Type> |
getTypeClosure() |
protected WebBeansContext |
getWebBeansContext() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType) |
protected void |
setAnnotations(Annotation[] annotations)
Adds new annotation to set.
|
String |
toString() |
protected AbstractAnnotated(WebBeansContext webBeansContext, Type baseType)
webBeansContext - our WebBeansContextbaseType - annotated element typeprotected AbstractAnnotated(WebBeansContext webBeansContext, javax.enterprise.inject.spi.Annotated annotated)
webBeansContext - current WebBeansContextannotated - to copyprotected void buildRepeatableAnnotations(Set<Annotation> annotations)
public void addAnnotation(Annotation annotation)
annotation - new annotationprotected WebBeansContext getWebBeansContext()
protected void setAnnotations(Annotation[] annotations)
annotations - new annotationspublic void clearAnnotations()
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
getAnnotation in interface javax.enterprise.inject.spi.Annotatedpublic Set<Annotation> getAnnotations()
getAnnotations in interface javax.enterprise.inject.spi.Annotatedpublic Type getBaseType()
getBaseType in interface javax.enterprise.inject.spi.Annotatedpublic Set<Type> getTypeClosure()
getTypeClosure in interface javax.enterprise.inject.spi.Annotatedprotected abstract Class<?> getOwningClass()
protected abstract Class<?> getDeclaringClass()
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
isAnnotationPresent in interface javax.enterprise.inject.spi.AnnotatedCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.