org.codehaus.jackson.map.introspect
Class Annotated

java.lang.Object
  extended by org.codehaus.jackson.map.introspect.Annotated
Direct Known Subclasses:
AnnotatedClass, AnnotatedMember, AnnotatedParameter

public abstract class Annotated
extends Object

Shared base class used for anything on which annotations (included within a AnnotationMap).


Constructor Summary
protected Annotated()
           
 
Method Summary
abstract  AnnotatedElement getAnnotated()
           
abstract
<A extends Annotation>
A
getAnnotation(Class<A> acls)
           
abstract  Type getGenericType()
          Full generic type of the annotated element; definition of what exactly this means depends on sub-class.
protected abstract  int getModifiers()
           
abstract  String getName()
           
abstract  Class<?> getRawType()
          "Raw" type (type-erased class) of the annotated element; definition of what exactly this means depends on sub-class.
 JavaType getType(TypeBindings context)
          Full generic type of the annotated element; definition of what exactly this means depends on sub-class.
<A extends Annotation>
boolean
hasAnnotation(Class<A> acls)
           
 boolean isPublic()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Annotated

protected Annotated()
Method Detail

getAnnotation

public abstract <A extends Annotation> A getAnnotation(Class<A> acls)

hasAnnotation

public final <A extends Annotation> boolean hasAnnotation(Class<A> acls)

getAnnotated

public abstract AnnotatedElement getAnnotated()

getModifiers

protected abstract int getModifiers()

isPublic

public final boolean isPublic()

getName

public abstract String getName()

getType

public JavaType getType(TypeBindings context)
Full generic type of the annotated element; definition of what exactly this means depends on sub-class.


getGenericType

public abstract Type getGenericType()
Full generic type of the annotated element; definition of what exactly this means depends on sub-class.

Since:
1.5

getRawType

public abstract Class<?> getRawType()
"Raw" type (type-erased class) of the annotated element; definition of what exactly this means depends on sub-class.

Since:
1.5