com.caucho.config.reflect
Class ReflectionAnnotated

java.lang.Object
  extended by com.caucho.config.reflect.ReflectionAnnotated
All Implemented Interfaces:
BaseTypeAnnotated, Annotated
Direct Known Subclasses:
ReflectionAnnotatedType, ReflectionSimpleAnnotatedType

public class ReflectionAnnotated
extends java.lang.Object
implements Annotated, BaseTypeAnnotated

Annotated object based only on reflection.


Constructor Summary
protected ReflectionAnnotated(BaseType type, java.util.Set<java.lang.reflect.Type> typeClosure, java.lang.annotation.Annotation[] annList)
           
 
Method Summary
protected  void addAnnotation(java.lang.annotation.Annotation ann)
           
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 introspected annotations
 java.lang.reflect.Type getBaseType()
          Returns the base type of the annotated member.
 BaseType getBaseTypeImpl()
           
 java.util.HashMap<java.lang.String,BaseType> getBaseTypeParamMap()
           
 java.util.Set<java.lang.reflect.Type> getTypeClosure()
          Returns all the types implemented by the member.
 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)
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReflectionAnnotated

protected ReflectionAnnotated(BaseType type,
                              java.util.Set<java.lang.reflect.Type> typeClosure,
                              java.lang.annotation.Annotation[] annList)
Method Detail

getBaseType

public java.lang.reflect.Type getBaseType()
Returns the base type of the annotated member.

Specified by:
getBaseType in interface Annotated

getBaseTypeImpl

public BaseType getBaseTypeImpl()
Specified by:
getBaseTypeImpl 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)

getBaseTypeParamMap

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

getTypeClosure

public java.util.Set<java.lang.reflect.Type> getTypeClosure()
Returns all the types implemented by the member.

Specified by:
getTypeClosure in interface Annotated

getAnnotations

public java.util.Set<java.lang.annotation.Annotation> getAnnotations()
Returns the introspected 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

addAnnotation

protected void addAnnotation(java.lang.annotation.Annotation ann)

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