public abstract class Annotated extends Object
AnnotationMap
).Modifier | Constructor and Description |
---|---|
protected |
Annotated() |
Modifier and Type | Method and Description |
---|---|
abstract Iterable<Annotation> |
annotations()
Deprecated.
Since 2.9 should instead use
getAnnotated() |
abstract boolean |
equals(Object o) |
abstract AnnotatedElement |
getAnnotated()
Method that can be used to find actual JDK element that this instance
represents.
|
abstract <A extends Annotation> |
getAnnotation(Class<A> acls) |
Type |
getGenericType()
Deprecated.
Since 2.7 should instead use
getType() . To be removed from 2.9 |
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.
|
abstract JavaType |
getType()
Full generic type of the annotated element; definition
of what exactly this means depends on sub-class.
|
JavaType |
getType(TypeBindings bogus)
Deprecated.
Since 2.7 Use
getType() instead. To be removed from 2.9 |
abstract boolean |
hasAnnotation(Class<?> acls) |
abstract int |
hashCode() |
abstract boolean |
hasOneOf(Class<? extends Annotation>[] annoClasses) |
boolean |
isPublic() |
abstract String |
toString() |
public abstract <A extends Annotation> A getAnnotation(Class<A> acls)
public abstract boolean hasAnnotation(Class<?> acls)
public abstract boolean hasOneOf(Class<? extends Annotation>[] annoClasses)
public abstract AnnotatedElement getAnnotated()
protected abstract int getModifiers()
public boolean isPublic()
public abstract String getName()
public abstract JavaType getType()
@Deprecated public final JavaType getType(TypeBindings bogus)
getType()
instead. To be removed from 2.9@Deprecated public Type getGenericType()
getType()
. To be removed from 2.9TypeResolutionContext
, and
as a result use of this method was deprecated in Jackson 2.7: see
getType()
for replacement.public abstract Class<?> getRawType()
@Deprecated public abstract Iterable<Annotation> annotations()
getAnnotated()
Copyright © 2008–2018 FasterXML. All rights reserved.