|
||||||||||
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
Method Summary | ||
---|---|---|
protected void |
_addClassMixIns(AnnotationMap annotations,
Class<?> toMask)
Helper method for adding any mix-in annotations specified class might have. |
|
protected void |
_addClassMixIns(AnnotationMap annotations,
Class<?> toMask,
Class<?> mixin)
|
|
protected void |
_addConstructorMixIns(Class<?> mixin)
|
|
protected void |
_addFactoryMixIns(Class<?> mixin)
|
|
protected void |
_addFieldMixIns(Class<?> mixin,
List<AnnotatedField> fields)
|
|
protected void |
_addFields(List<AnnotatedField> fields,
Class<?> c)
|
|
protected void |
_addMemberMethods(Class<?> cls,
MethodFilter methodFilter,
AnnotatedMethodMap methods,
Class<?> mixInCls,
AnnotatedMethodMap mixIns)
|
|
protected void |
_addMethodMixIns(MethodFilter methodFilter,
AnnotatedMethodMap methods,
Class<?> mixInCls,
AnnotatedMethodMap mixIns)
|
|
protected void |
_addMixOvers(Constructor<?> mixin,
AnnotatedConstructor target,
boolean addParamAnnotations)
|
|
protected void |
_addMixOvers(Method mixin,
AnnotatedMethod target,
boolean addParamAnnotations)
|
|
protected void |
_addMixUnders(Method mixin,
AnnotatedMethod target)
|
|
protected AnnotationMap |
_collectRelevantAnnotations(Annotation[] anns)
|
|
protected AnnotationMap[] |
_collectRelevantAnnotations(Annotation[][] anns)
|
|
protected AnnotatedConstructor |
_constructConstructor(Constructor<?> ctor,
boolean defaultCtor)
|
|
protected AnnotatedMethod |
_constructCreatorMethod(Method m)
|
|
protected AnnotatedField |
_constructField(Field f)
|
|
protected AnnotatedMethod |
_constructMethod(Method m)
|
|
protected boolean |
_isIncludableMethod(Method m,
MethodFilter filter)
|
|
static AnnotatedClass |
construct(Class<?> cls,
AnnotationIntrospector aintr,
ClassIntrospector.MixInResolver mir)
Factory method that instantiates an instance. |
|
Iterable<AnnotatedField> |
fields()
|
|
AnnotatedMethod |
findMethod(String name,
Class<?>[] paramTypes)
|
|
Class<?> |
getAnnotated()
|
|
|
getAnnotation(Class<A> acls)
|
|
List<AnnotatedConstructor> |
getConstructors()
|
|
AnnotatedConstructor |
getDefaultConstructor()
|
|
int |
getFieldCount()
|
|
int |
getMemberMethodCount()
|
|
int |
getModifiers()
|
|
String |
getName()
|
|
List<AnnotatedMethod> |
getStaticMethods()
|
|
Class<?> |
getType()
Method used with annotated things that have class type. |
|
boolean |
hasAnnotations()
|
|
Iterable<AnnotatedField> |
ignoredFields()
|
|
Iterable<AnnotatedMethod> |
ignoredMemberMethods()
|
|
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(boolean collectIgnored)
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,
boolean collectIgnored)
|
|
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, ClassIntrospector.MixInResolver mir)
public Class<?> getAnnotated()
getAnnotated
in class Annotated
public int getModifiers()
getModifiers
in class Annotated
public String getName()
getName
in class Annotated
public <A extends Annotation> A getAnnotation(Class<A> acls)
getAnnotation
in class Annotated
public Class<?> getType()
Annotated
getType
in class Annotated
public boolean hasAnnotations()
public AnnotatedConstructor getDefaultConstructor()
public List<AnnotatedConstructor> getConstructors()
public List<AnnotatedMethod> getStaticMethods()
public Iterable<AnnotatedMethod> memberMethods()
public Iterable<AnnotatedMethod> ignoredMemberMethods()
public int getMemberMethodCount()
public AnnotatedMethod findMethod(String name, Class<?>[] paramTypes)
public int getFieldCount()
public Iterable<AnnotatedField> fields()
public Iterable<AnnotatedField> ignoredFields()
protected void resolveClassAnnotations()
Starting with 1.2, it will also apply mix-in annotations, as per [JACKSON-76]
protected void _addClassMixIns(AnnotationMap annotations, Class<?> toMask)
protected void _addClassMixIns(AnnotationMap annotations, Class<?> toMask, Class<?> mixin)
public void resolveCreators(boolean includeAll)
Starting with 1.2, it will also apply mix-in annotations, as per [JACKSON-76]
includeAll
- If true, includes all creator methods; if false,
will only include the no-arguments "default" constructorprotected void _addConstructorMixIns(Class<?> mixin)
protected void _addFactoryMixIns(Class<?> mixin)
public void resolveMemberMethods(MethodFilter methodFilter, boolean collectIgnored)
collectIgnored
- Whether to collect list of ignored methods for later retrievalprotected void _addMemberMethods(Class<?> cls, MethodFilter methodFilter, AnnotatedMethodMap methods, Class<?> mixInCls, AnnotatedMethodMap mixIns)
protected void _addMethodMixIns(MethodFilter methodFilter, AnnotatedMethodMap methods, Class<?> mixInCls, AnnotatedMethodMap mixIns)
public void resolveFields(boolean collectIgnored)
collectIgnored
- Whether to collect list of ignored methods for later retrievalprotected void _addFields(List<AnnotatedField> fields, Class<?> c)
protected void _addFieldMixIns(Class<?> mixin, List<AnnotatedField> fields)
protected AnnotatedMethod _constructMethod(Method m)
protected AnnotatedConstructor _constructConstructor(Constructor<?> ctor, boolean defaultCtor)
protected AnnotatedMethod _constructCreatorMethod(Method m)
protected AnnotatedField _constructField(Field f)
protected AnnotationMap[] _collectRelevantAnnotations(Annotation[][] anns)
protected AnnotationMap _collectRelevantAnnotations(Annotation[] anns)
protected boolean _isIncludableMethod(Method m, MethodFilter filter)
protected void _addMixOvers(Constructor<?> mixin, AnnotatedConstructor target, boolean addParamAnnotations)
addParamAnnotations
- Whether parameter annotations are to be
added as wellprotected void _addMixOvers(Method mixin, AnnotatedMethod target, boolean addParamAnnotations)
addParamAnnotations
- Whether parameter annotations are to be
added as wellprotected void _addMixUnders(Method mixin, AnnotatedMethod target)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |