org.codehaus.jackson.map.introspect
Class Annotated

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

public abstract class Annotated
extends Object

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


Constructor Summary
Annotated()
           
 
Method Summary
abstract  AnnotatedElement getAnnotated()
           
abstract
<A extends Annotation>
A
getAnnotation(Class<A> acls)
           
protected abstract  int getModifiers()
           
abstract  String getName()
           
abstract  Class<?> getType()
          Method used with annotated things that have class type.
<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

public 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 abstract Class<?> getType()
Method used with annotated things that have class type.