org.codehaus.jackson.map.introspect
Class AnnotatedClass
java.lang.Object
org.codehaus.jackson.map.introspect.Annotated
org.codehaus.jackson.map.introspect.AnnotatedClass
public final class AnnotatedClass
- extends Annotated
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
constructFull
public static AnnotatedClass constructFull(java.lang.Class<?> cls,
AnnotationFilter annotationFilter,
boolean includeCreators,
MethodFilter memberFilter)
- Parameters:
annotationFilter - Filter used to define which annotations to
include (for class and member annotations). Can not be null.includeCreators - Whether to include information about
potential creators (constructors and static factory methods)memberFilter - Optional filter that defines which member methods
to include; if null, no member method information is to be included.
getAnnotated
public java.lang.Class<?> getAnnotated()
- Specified by:
getAnnotated in class Annotated
getModifiers
public int getModifiers()
- Specified by:
getModifiers in class Annotated
getName
public java.lang.String getName()
- Specified by:
getName in class Annotated
getAnnotation
public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> acls)
- Specified by:
getAnnotation in class Annotated
getDefaultConstructor
public AnnotatedConstructor getDefaultConstructor()
getSingleArgConstructors
public java.util.Collection<AnnotatedConstructor> getSingleArgConstructors()
getSingleArgStaticMethods
public java.util.Collection<AnnotatedMethod> getSingleArgStaticMethods()
getMemberMethods
public java.util.Collection<AnnotatedMethod> getMemberMethods()
findMethod
public AnnotatedMethod findMethod(java.lang.String name,
java.lang.Class<?>[] paramTypes)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object