com.caucho.config.reflect
Class AnnotatedElementImpl

java.lang.Object
  extended by com.caucho.config.reflect.AnnotatedElementImpl
All Implemented Interfaces:
BaseTypeAnnotated, Annotated
Direct Known Subclasses:
AnnotatedConstructorImpl, AnnotatedFieldImpl, AnnotatedMethodImpl, AnnotatedParameterImpl, AnnotatedTypeImpl, ExtAnnotatedType

@Module
public class AnnotatedElementImpl
extends java.lang.Object
implements Annotated, BaseTypeAnnotated

Abstract introspected view of a Bean


Constructor Summary
AnnotatedElementImpl(Annotated annotated)
           
AnnotatedElementImpl(BaseType type, Annotated annotated, java.lang.annotation.Annotation[] annList)
           
AnnotatedElementImpl(java.lang.Class<?> cl, Annotated annotated, java.lang.annotation.Annotation[] annotationList)
           
 
Method Summary
 void addAnnotation(java.lang.annotation.Annotation newAnn)
           
 void addAnnotationIfAbsent(java.lang.annotation.Annotation newAnn)
           
 void addAnnotations(java.lang.annotation.Annotation[] annSet)
           
 void addAnnotations(java.util.Collection<java.lang.annotation.Annotation> annSet)
           
 void clearAnnotations()
           
protected static BaseType createBaseType(Annotated ann)
           
protected static BaseType createBaseType(AnnotatedType<?> declaringType)
           
protected static BaseType createBaseType(AnnotatedType<?> declaringType, java.lang.reflect.Type type)
           
protected static BaseType createBaseType(AnnotatedType<?> declaringType, java.lang.reflect.Type type, java.util.HashMap<java.lang.String,BaseType> paramMap, java.lang.String paramDeclName)
           
protected static BaseType createBaseType(AnnotatedType<?> declaringType, java.lang.reflect.Type type, java.util.HashMap<java.lang.String,BaseType> paramMap, java.lang.String paramDeclName, BaseType.ClassFill classFill)
           
protected static BaseType createBaseType(AnnotatedType<?> declaringType, java.lang.reflect.Type type, java.lang.String paramDeclName)
           
protected static BaseType createBaseType(java.lang.reflect.Type type)
           
protected  void fillTypeVariables(java.util.Set<VarType<?>> typeVariables)
           
<T extends java.lang.annotation.Annotation>
T
getAnnotation(java.lang.Class<T> annType)
          Returns the matching annotation
 java.util.Set<java.lang.annotation.Annotation> getAnnotations()
          Returns the declared annotations
 java.lang.reflect.Type getBaseType()
          Returns the declared Type
 BaseType getBaseTypeImpl()
           
 java.util.HashMap<java.lang.String,BaseType> getBaseTypeParamMap()
           
 java.util.Set<java.lang.reflect.Type> getTypeClosure()
          Returns all exposed types
 java.util.Set<VarType<?>> getTypeVariables()
          Returns the type variables local to the type.
 boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annType)
          Returns true if the annotation is present)
 void removeAnnotation(java.lang.annotation.Annotation ann)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotatedElementImpl

public AnnotatedElementImpl(BaseType type,
                            Annotated annotated,
                            java.lang.annotation.Annotation[] annList)

AnnotatedElementImpl

public AnnotatedElementImpl(Annotated annotated)

AnnotatedElementImpl

public AnnotatedElementImpl(java.lang.Class<?> cl,
                            Annotated annotated,
                            java.lang.annotation.Annotation[] annotationList)
Method Detail

createBaseType

protected static BaseType createBaseType(Annotated ann)

createBaseType

protected static BaseType createBaseType(AnnotatedType<?> declaringType)

createBaseType

protected static BaseType createBaseType(AnnotatedType<?> declaringType,
                                         java.lang.reflect.Type type)

createBaseType

protected static BaseType createBaseType(AnnotatedType<?> declaringType,
                                         java.lang.reflect.Type type,
                                         java.lang.String paramDeclName)

createBaseType

protected static BaseType createBaseType(AnnotatedType<?> declaringType,
                                         java.lang.reflect.Type type,
                                         java.util.HashMap<java.lang.String,BaseType> paramMap,
                                         java.lang.String paramDeclName)

createBaseType

protected static BaseType createBaseType(AnnotatedType<?> declaringType,
                                         java.lang.reflect.Type type,
                                         java.util.HashMap<java.lang.String,BaseType> paramMap,
                                         java.lang.String paramDeclName,
                                         BaseType.ClassFill classFill)

createBaseType

protected static BaseType createBaseType(java.lang.reflect.Type type)

getBaseType

public java.lang.reflect.Type getBaseType()
Description copied from interface: Annotated
Returns the declared Type

Specified by:
getBaseType in interface Annotated

getBaseTypeImpl

public BaseType getBaseTypeImpl()
Specified by:
getBaseTypeImpl in interface BaseTypeAnnotated

getBaseTypeParamMap

public java.util.HashMap<java.lang.String,BaseType> getBaseTypeParamMap()
Specified by:
getBaseTypeParamMap in interface BaseTypeAnnotated

getTypeVariables

public java.util.Set<VarType<?>> getTypeVariables()
Description copied from interface: BaseTypeAnnotated
Returns the type variables local to the type.

Specified by:
getTypeVariables in interface BaseTypeAnnotated

fillTypeVariables

protected void fillTypeVariables(java.util.Set<VarType<?>> typeVariables)

getTypeClosure

public java.util.Set<java.lang.reflect.Type> getTypeClosure()
Description copied from interface: Annotated
Returns all exposed types

Specified by:
getTypeClosure in interface Annotated

addAnnotations

public void addAnnotations(java.util.Collection<java.lang.annotation.Annotation> annSet)

addAnnotations

public void addAnnotations(java.lang.annotation.Annotation[] annSet)

addAnnotation

public void addAnnotation(java.lang.annotation.Annotation newAnn)

addAnnotationIfAbsent

public void addAnnotationIfAbsent(java.lang.annotation.Annotation newAnn)

removeAnnotation

public void removeAnnotation(java.lang.annotation.Annotation ann)

clearAnnotations

public void clearAnnotations()

getAnnotations

public java.util.Set<java.lang.annotation.Annotation> getAnnotations()
Returns the declared annotations

Specified by:
getAnnotations in interface Annotated

getAnnotation

public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annType)
Returns the matching annotation

Specified by:
getAnnotation in interface Annotated

isAnnotationPresent

public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annType)
Returns true if the annotation is present)

Specified by:
isAnnotationPresent in interface Annotated

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object