public class ReflectionAnnotated extends java.lang.Object implements Annotated, BaseTypeAnnotated
Modifier | Constructor and Description |
---|---|
protected |
ReflectionAnnotated(BaseType type,
java.util.Set<java.lang.reflect.Type> typeClosure,
java.lang.annotation.Annotation[] annList) |
Modifier and Type | Method and Description |
---|---|
void |
addAnalysisAnnotation(java.lang.annotation.Annotation ann)
Analysis annotations
|
protected void |
addAnnotation(java.lang.annotation.Annotation ann) |
void |
addOverrideAnnotation(java.lang.annotation.Annotation ann)
Overrides, e.g.
|
protected void |
fillTypeVariables(java.util.Set<VarType<?>> typeVariables) |
<T extends java.lang.annotation.Annotation> |
getAnalysisAnnotation(java.lang.Class<T> annType) |
<T extends java.lang.annotation.Annotation> |
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() |
protected ReflectionAnnotated(BaseType type, java.util.Set<java.lang.reflect.Type> typeClosure, java.lang.annotation.Annotation[] annList)
public java.lang.reflect.Type getBaseType()
getBaseType
in interface Annotated
public BaseType getBaseTypeImpl()
getBaseTypeImpl
in interface BaseTypeAnnotated
public java.util.Set<VarType<?>> getTypeVariables()
BaseTypeAnnotated
getTypeVariables
in interface BaseTypeAnnotated
protected void fillTypeVariables(java.util.Set<VarType<?>> typeVariables)
public java.util.HashMap<java.lang.String,BaseType> getBaseTypeParamMap()
getBaseTypeParamMap
in interface BaseTypeAnnotated
public java.util.Set<java.lang.reflect.Type> getTypeClosure()
getTypeClosure
in interface Annotated
public java.util.Set<java.lang.annotation.Annotation> getAnnotations()
getAnnotations
in interface Annotated
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annType)
getAnnotation
in interface Annotated
protected void addAnnotation(java.lang.annotation.Annotation ann)
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annType)
isAnnotationPresent
in interface Annotated
public void addOverrideAnnotation(java.lang.annotation.Annotation ann)
BaseTypeAnnotated
addOverrideAnnotation
in interface BaseTypeAnnotated
public void addAnalysisAnnotation(java.lang.annotation.Annotation ann)
BaseTypeAnnotated
addAnalysisAnnotation
in interface BaseTypeAnnotated
public <T extends java.lang.annotation.Annotation> T getAnalysisAnnotation(java.lang.Class<T> annType)
getAnalysisAnnotation
in interface BaseTypeAnnotated
public java.lang.String toString()
toString
in class java.lang.Object