Top Description Constructors Methods
com.fasterxml.jackson.databind.introspect

public abstract Class Annotated

extends Object
Class Inheritance
Known Direct Subclasses
com.fasterxml.jackson.databind.introspect.AnnotatedClass, com.fasterxml.jackson.databind.introspect.AnnotatedMember
Imports
java.lang.annotation.Annotation, java.lang.reflect.AnnotatedElement, .Modifier, com.fasterxml.jackson.databind.JavaType

Shared base class used for anything on which annotations (included within a AnnotationMap).

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public abstract Iterable<Annotation>
annotations()
Deprecated Since 2.9 should instead use getAnnotated()

Accessor that can be used to iterate over all the annotations associated with annotated component.

public abstract boolean
equals(Object
the reference object with which to compare.
o
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

public abstract AnnotatedElement
getAnnotated()

Method that can be used to find actual JDK element that this instance represents.

public abstract <A extends Annotation> A
protected abstract int
public abstract String
public abstract Class<?>
getRawType()

"Raw" type (type-erased class) of the annotated element; definition of what exactly this means depends on sub-class.

public abstract JavaType
getType()

Full generic type of the annotated element; definition of what exactly this means depends on sub-class.

public abstract boolean
public abstract int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public abstract boolean
hasOneOf(Class<? extends Annotation>[] annoClasses)

public boolean
public boolean
public abstract String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Constructor Detail

Annotatedback to summary
protected Annotated()

Method Detail

annotationsback to summary
public abstract Iterable<Annotation> annotations()

Deprecated

Since 2.9 should instead use getAnnotated()

Accessor that can be used to iterate over all the annotations associated with annotated component.

Annotations
@Deprecated
Since
2.3
equalsback to summary
public abstract boolean equals(Object o)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
o:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
getAnnotatedback to summary
public abstract AnnotatedElement getAnnotated()

Method that can be used to find actual JDK element that this instance represents. It is non-null, except for method/constructor parameters which do not have a JDK counterpart.

getAnnotationback to summary
public abstract <A extends Annotation> A getAnnotation(Class<A> acls)
getModifiersback to summary
protected abstract int getModifiers()
getNameback to summary
public abstract String getName()
getRawTypeback to summary
public abstract Class<?> getRawType()

"Raw" type (type-erased class) of the annotated element; definition of what exactly this means depends on sub-class.

getTypeback to summary
public abstract JavaType getType()

Full generic type of the annotated element; definition of what exactly this means depends on sub-class.

Since
2.7
hasAnnotationback to summary
public abstract boolean hasAnnotation(Class<?> acls)
hashCodeback to summary
public abstract int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object

Annotations
@Override
hasOneOfback to summary
public abstract boolean hasOneOf(Class<? extends Annotation>[] annoClasses)
Since
2.7
isPublicback to summary
public boolean isPublic()
isStaticback to summary
public boolean isStatic()
Since
2.16.2
toStringback to summary
public abstract String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override