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) |
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.
|
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()
public abstract Class<?> getRawType()
@Deprecated public abstract Iterable<Annotation> annotations()
getAnnotated()
Copyright © 2008–2020 FasterXML. All rights reserved.