|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.jackson.map.introspect.Annotated
org.codehaus.jackson.map.introspect.AnnotatedClass
public final class AnnotatedClass
| Nested Class Summary | |
|---|---|
static class |
AnnotatedClass.FactoryMethodFilter
Filter used to only include methods that have signature that is compatible with "factory" methods: are static, take a single argument, and returns something. |
| Method Summary | ||
|---|---|---|
protected AnnotationMap |
_collectRelevantAnnotations(Annotation[] anns)
|
|
protected AnnotatedConstructor |
_constructConstructor(Constructor<?> ctor)
|
|
protected AnnotatedField |
_constructField(Field f)
|
|
protected AnnotatedMethod |
_constructMethod(Method m)
|
|
protected boolean |
_isIncludableMethod(Method m)
|
|
static AnnotatedClass |
construct(Class<?> cls,
AnnotationIntrospector aintr)
Factory method that instantiates an instance. |
|
Iterable<AnnotatedField> |
fields()
|
|
AnnotatedMethod |
findMethod(String name,
Class<?>[] paramTypes)
|
|
Class<?> |
getAnnotated()
|
|
|
getAnnotation(Class<A> acls)
|
|
AnnotatedConstructor |
getDefaultConstructor()
|
|
int |
getFieldCount()
|
|
int |
getMemberMethodCount()
|
|
int |
getModifiers()
|
|
String |
getName()
|
|
List<AnnotatedConstructor> |
getSingleArgConstructors()
|
|
List<AnnotatedMethod> |
getSingleArgStaticMethods()
|
|
Class<?> |
getType()
Method used with annotated things that have class type. |
|
Iterable<AnnotatedMethod> |
memberMethods()
|
|
protected void |
resolveClassAnnotations()
Initialization method that will recursively collect Jackson annotations for this class and all super classes and interfaces. |
|
void |
resolveCreators(boolean includeAll)
Initialization method that will find out all constructors and potential static factory methods the class has. |
|
void |
resolveFields()
Method that will collect all member (non-static) fields that are either public, or have at least a single annotation associated with them. |
|
void |
resolveMemberMethods(MethodFilter methodFilter)
|
|
String |
toString()
|
|
| Methods inherited from class org.codehaus.jackson.map.introspect.Annotated |
|---|
hasAnnotation, isPublic |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static AnnotatedClass construct(Class<?> cls,
AnnotationIntrospector aintr)
protected void resolveClassAnnotations()
public void resolveCreators(boolean includeAll)
includeAll - If true, includes all creator methods; if false,
will only include the no-arguments "default" constructorpublic void resolveMemberMethods(MethodFilter methodFilter)
public void resolveFields()
protected AnnotatedMethod _constructMethod(Method m)
protected AnnotatedConstructor _constructConstructor(Constructor<?> ctor)
protected AnnotatedField _constructField(Field f)
protected AnnotationMap _collectRelevantAnnotations(Annotation[] anns)
protected boolean _isIncludableMethod(Method m)
public Class<?> getAnnotated()
getAnnotated in class Annotatedpublic int getModifiers()
getModifiers in class Annotatedpublic String getName()
getName in class Annotatedpublic <A extends Annotation> A getAnnotation(Class<A> acls)
getAnnotation in class Annotatedpublic Class<?> getType()
Annotated
getType in class Annotatedpublic AnnotatedConstructor getDefaultConstructor()
public List<AnnotatedConstructor> getSingleArgConstructors()
public List<AnnotatedMethod> getSingleArgStaticMethods()
public Iterable<AnnotatedMethod> memberMethods()
public int getMemberMethodCount()
public AnnotatedMethod findMethod(String name,
Class<?>[] paramTypes)
public int getFieldCount()
public Iterable<AnnotatedField> fields()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||