APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.reflect.annotation

public final Class AnnotatedTypeFactory

extends Object
Class Inheritance
Imports
java.lang.annotation.*, java.lang.reflect.*, java.util.ArrayList, .Arrays, .List, .Map, .Objects, java.util.stream.Stream, .Collectors

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
pack-priv static final AnnotatedType
pack-priv static final AnnotatedType[]
pack-priv static final TypeAnnotation[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static AnnotatedType
buildAnnotatedType(Type
the type this AnnotatedType corresponds to
type
,
TypeAnnotation.LocationInfo
the location this AnnotatedType corresponds to
currentLoc
,
TypeAnnotation[]
the type annotations this AnnotatedType has
actualTypeAnnos
,
TypeAnnotation[]
all type annotation on the same TypeAnnotationTarget as the AnnotatedType being built
allOnSameTarget
)

Create an AnnotatedType.

private static boolean
public static TypeAnnotation.LocationInfo
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMPTY_ANNOTATED_TYPEback to summary
pack-priv static final AnnotatedType EMPTY_ANNOTATED_TYPE
EMPTY_ANNOTATED_TYPE_ARRAYback to summary
pack-priv static final AnnotatedType[] EMPTY_ANNOTATED_TYPE_ARRAY
EMPTY_TYPE_ANNOTATION_ARRAYback to summary
pack-priv static final TypeAnnotation[] EMPTY_TYPE_ANNOTATION_ARRAY

Constructor Detail

AnnotatedTypeFactoryback to summary
public AnnotatedTypeFactory()

Method Detail

buildAnnotatedTypeback to summary
public static AnnotatedType buildAnnotatedType(Type type, TypeAnnotation.LocationInfo currentLoc, TypeAnnotation[] actualTypeAnnos, TypeAnnotation[] allOnSameTarget)

Create an AnnotatedType.

Parameters
type:Type

the type this AnnotatedType corresponds to

currentLoc:TypeAnnotation.LocationInfo

the location this AnnotatedType corresponds to

actualTypeAnnos:TypeAnnotation[]

the type annotations this AnnotatedType has

allOnSameTarget:TypeAnnotation[]

all type annotation on the same TypeAnnotationTarget as the AnnotatedType being built

isArrayback to summary
private static boolean isArray(Type t)
nestingForTypeback to summary
public static TypeAnnotation.LocationInfo nestingForType(Type type, TypeAnnotation.LocationInfo addTo)
sun.reflect.annotation back to summary

private final Class AnnotatedTypeFactory.AnnotatedArrayTypeImpl

extends AnnotatedTypeBaseImpl
implements AnnotatedArrayType
Class Inheritance
All Implemented Interfaces
java.lang.reflect.AnnotatedArrayType, java.lang.reflect.AnnotatedType, java.lang.reflect.AnnotatedElement

Constructor Summary

AccessConstructor and Description
pack-priv
AnnotatedArrayTypeImpl(Type type, TypeAnnotation.LocationInfo location, TypeAnnotation[] actualTypeAnnotations, TypeAnnotation[] allOnSameTargetTypeAnnotations)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object o)

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.equals.

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

public AnnotatedType
getAnnotatedGenericComponentType()

Implements java.lang.reflect.AnnotatedArrayType.getAnnotatedGenericComponentType.

Returns the potentially annotated generic component type of this array type.

public AnnotatedType
getAnnotatedOwnerType()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.getAnnotatedOwnerType.

Overrides default java.lang.reflect.AnnotatedType.getAnnotatedOwnerType.

Implements java.lang.reflect.AnnotatedArrayType.getAnnotatedOwnerType.

Returns the potentially annotated type that this type is a member of, if this type represents a nested class or interface.

private Type
public int
hashCode()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.hashCode.

Returns a hash code value for this object.

public String
toString()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.toString.

Returns a string representation of the object.

Inherited from sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl:
annotationsToStringbaseHashCodeequalsTypeAndAnnotationsgetAnnotationgetAnnotationsgetAnnotationsByTypegetDeclaredAnnotationgetDeclaredAnnotationsgetDeclaredAnnotationsByTypegetLocationgetTypegetTypeAnnotations

Constructor Detail

AnnotatedArrayTypeImplback to summary
pack-priv AnnotatedArrayTypeImpl(Type type, TypeAnnotation.LocationInfo location, TypeAnnotation[] actualTypeAnnotations, TypeAnnotation[] allOnSameTargetTypeAnnotations)

Method Detail

equalsback to summary
public boolean equals(Object o)

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.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.

Annotations
@Override
getAnnotatedGenericComponentTypeback to summary
public AnnotatedType getAnnotatedGenericComponentType()

Implements java.lang.reflect.AnnotatedArrayType.getAnnotatedGenericComponentType.

Doc from java.lang.reflect.AnnotatedArrayType.getAnnotatedGenericComponentType.

Returns the potentially annotated generic component type of this array type.

Annotations
@Override
getAnnotatedOwnerTypeback to summary
public AnnotatedType getAnnotatedOwnerType()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.getAnnotatedOwnerType.

Overrides default java.lang.reflect.AnnotatedType.getAnnotatedOwnerType.

Implements java.lang.reflect.AnnotatedArrayType.getAnnotatedOwnerType.

Doc from java.lang.reflect.AnnotatedArrayType.getAnnotatedOwnerType.

Returns the potentially annotated type that this type is a member of, if this type represents a nested class or interface. For example, if this type is @TA O<T>.I<S>, return a representation of @TA O<T>.

Returns null for an AnnotatedType that is an instance of AnnotatedArrayType.

Annotations
@Override
getComponentTypeback to summary
private Type getComponentType()
hashCodeback to summary
public int hashCode()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.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.
Annotations
@Override
toStringback to summary
public String toString()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.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.

Annotations
@Override
sun.reflect.annotation back to summary

private final Class AnnotatedTypeFactory.AnnotatedParameterizedTypeImpl

extends AnnotatedTypeBaseImpl
implements AnnotatedParameterizedType
Class Inheritance
All Implemented Interfaces
java.lang.reflect.AnnotatedParameterizedType, java.lang.reflect.AnnotatedType, java.lang.reflect.AnnotatedElement

Constructor Summary

AccessConstructor and Description
pack-priv
AnnotatedParameterizedTypeImpl(ParameterizedType type, TypeAnnotation.LocationInfo location, TypeAnnotation[] actualTypeAnnotations, TypeAnnotation[] allOnSameTargetTypeAnnotations)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object o)

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.equals.

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

public AnnotatedType[]
getAnnotatedActualTypeArguments()

Implements java.lang.reflect.AnnotatedParameterizedType.getAnnotatedActualTypeArguments.

Returns the potentially annotated actual type arguments of this parameterized type.

public AnnotatedType
getAnnotatedOwnerType()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.getAnnotatedOwnerType.

Overrides default java.lang.reflect.AnnotatedType.getAnnotatedOwnerType.

Implements java.lang.reflect.AnnotatedParameterizedType.getAnnotatedOwnerType.

Returns the potentially annotated type that this type is a member of, if this type represents a nested type.

private ParameterizedType
public int
hashCode()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.hashCode.

Returns a hash code value for this object.

public String
toString()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.toString.

Returns a string representation of the object.

Inherited from sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl:
annotationsToStringbaseHashCodeequalsTypeAndAnnotationsgetAnnotationgetAnnotationsgetAnnotationsByTypegetDeclaredAnnotationgetDeclaredAnnotationsgetDeclaredAnnotationsByTypegetLocationgetTypegetTypeAnnotations

Constructor Detail

AnnotatedParameterizedTypeImplback to summary
pack-priv AnnotatedParameterizedTypeImpl(ParameterizedType type, TypeAnnotation.LocationInfo location, TypeAnnotation[] actualTypeAnnotations, TypeAnnotation[] allOnSameTargetTypeAnnotations)

Method Detail

equalsback to summary
public boolean equals(Object o)

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.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.

Annotations
@Override
getAnnotatedActualTypeArgumentsback to summary
public AnnotatedType[] getAnnotatedActualTypeArguments()

Implements java.lang.reflect.AnnotatedParameterizedType.getAnnotatedActualTypeArguments.

Doc from java.lang.reflect.AnnotatedParameterizedType.getAnnotatedActualTypeArguments.

Returns the potentially annotated actual type arguments of this parameterized type.

Note that in some cases, the returned array can be empty. This can occur if this annotated type represents a non-parameterized type nested within a parameterized type.

Annotations
@Override
getAnnotatedOwnerTypeback to summary
public AnnotatedType getAnnotatedOwnerType()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.getAnnotatedOwnerType.

Overrides default java.lang.reflect.AnnotatedType.getAnnotatedOwnerType.

Implements java.lang.reflect.AnnotatedParameterizedType.getAnnotatedOwnerType.

Doc from java.lang.reflect.AnnotatedParameterizedType.getAnnotatedOwnerType.

Returns the potentially annotated type that this type is a member of, if this type represents a nested type. For example, if this type is @TA O<T>.I<S>, return a representation of @TA O<T>.

Returns null if this AnnotatedType represents a top-level class or interface, or a local or anonymous class, or a primitive type, or void.

Annotations
@Override
getParameterizedTypeback to summary
private ParameterizedType getParameterizedType()
hashCodeback to summary
public int hashCode()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.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.
Annotations
@Override
toStringback to summary
public String toString()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.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.

Annotations
@Override
sun.reflect.annotation back to summary

private Class AnnotatedTypeFactory.AnnotatedTypeBaseImpl

extends Object
implements AnnotatedType
Class Inheritance
  • java.lang.Object
  • sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl
All Implemented Interfaces
java.lang.reflect.AnnotatedType, java.lang.reflect.AnnotatedElement
Known Direct Subclasses
sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedArrayTypeImpl, sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeVariableImpl, sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedParameterizedTypeImpl, sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedWildcardTypeImpl

Field Summary

Modifier and TypeField and Description
private final TypeAnnotation[]
private final Map<Class<? extends Annotation>, Annotation>
private final TypeAnnotation.LocationInfo
private final Type

Constructor Summary

AccessConstructor and Description
pack-priv
AnnotatedTypeBaseImpl(Type type, TypeAnnotation.LocationInfo location, TypeAnnotation[] actualTypeAnnotations, TypeAnnotation[] allOnSameTargetTypeAnnotations)

Method Summary

Modifier and TypeMethod and Description
protected String
annotationsToString(Annotation[] annotations, boolean leadingSpace)

pack-priv int
public boolean
equals(Object o)

Overrides java.lang.Object.equals.

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

protected boolean
public AnnotatedType
getAnnotatedOwnerType()

Overrides default java.lang.reflect.AnnotatedType.getAnnotatedOwnerType.

Returns the potentially annotated type that this type is a member of, if this type represents a nested type.

public final <T extends Annotation> T
getAnnotation(Class<T> annotation)

Implements java.lang.reflect.AnnotatedType.getAnnotation.

Returns this element's annotation for the specified type if such an annotation is present, else null.

public final Annotation[]
getAnnotations()

Implements java.lang.reflect.AnnotatedType.getAnnotations.

Returns annotations that are present on this element.

public final <T extends Annotation> T[]
getAnnotationsByType(Class<T> annotation)

Overrides default java.lang.reflect.AnnotatedElement.getAnnotationsByType.

Returns annotations that are associated with this element.

public final <T extends Annotation> T
getDeclaredAnnotation(Class<T> annotation)

Overrides default java.lang.reflect.AnnotatedElement.getDeclaredAnnotation.

Returns this element's annotation for the specified type if such an annotation is directly present, else null.

public final Annotation[]
getDeclaredAnnotations()

Implements java.lang.reflect.AnnotatedType.getDeclaredAnnotations.

Returns annotations that are directly present on this element.

public final <T extends Annotation> T[]
getDeclaredAnnotationsByType(Class<T> annotation)

Overrides default java.lang.reflect.AnnotatedElement.getDeclaredAnnotationsByType.

Returns this element's annotation(s) for the specified type if such annotations are either directly present or indirectly present.

pack-priv final TypeAnnotation.LocationInfo
public final Type
getType()

Implements java.lang.reflect.AnnotatedType.getType.

Returns the underlying type that this annotated type represents.

pack-priv final TypeAnnotation[]
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

allOnSameTargetTypeAnnotationsback to summary
private final TypeAnnotation[] allOnSameTargetTypeAnnotations
annotationsback to summary
private final Map<Class<? extends Annotation>, Annotation> annotations
locationback to summary
private final TypeAnnotation.LocationInfo location
typeback to summary
private final Type type

Constructor Detail

AnnotatedTypeBaseImplback to summary
pack-priv AnnotatedTypeBaseImpl(Type type, TypeAnnotation.LocationInfo location, TypeAnnotation[] actualTypeAnnotations, TypeAnnotation[] allOnSameTargetTypeAnnotations)

Method Detail

annotationsToStringback to summary
protected String annotationsToString(Annotation[] annotations, boolean leadingSpace)
baseHashCodeback to summary
pack-priv int baseHashCode()
equalsback to summary
public 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.

Annotations
@Override
equalsTypeAndAnnotationsback to summary
protected boolean equalsTypeAndAnnotations(AnnotatedType that)
getAnnotatedOwnerTypeback to summary
public AnnotatedType getAnnotatedOwnerType()

Overrides default java.lang.reflect.AnnotatedType.getAnnotatedOwnerType.

Doc from java.lang.reflect.AnnotatedType.getAnnotatedOwnerType.

Returns the potentially annotated type that this type is a member of, if this type represents a nested type. For example, if this type is @TA O<T>.I<S>, return a representation of @TA O<T>.

Returns null if this AnnotatedType represents a top-level class or interface, or a local or anonymous class, or a primitive type, or void.

Returns null if this AnnotatedType is an instance of AnnotatedArrayType, AnnotatedTypeVariable, or AnnotatedWildcardType.

Annotations
@Override
getAnnotationback to summary
public final <T extends Annotation> T getAnnotation(Class<T> annotation)

Implements java.lang.reflect.AnnotatedType.getAnnotation.

Doc from java.lang.reflect.AnnotatedType.getAnnotation.

Returns this element's annotation for the specified type if such an annotation is present, else null.

Note that any annotation returned by this method is a type annotation.

Annotations
@Override
getAnnotationsback to summary
public final Annotation[] getAnnotations()

Implements java.lang.reflect.AnnotatedType.getAnnotations.

Doc from java.lang.reflect.AnnotatedType.getAnnotations.

Returns annotations that are present on this element. If there are no annotations present on this element, the return value is an array of length 0. The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.

Note that any annotations returned by this method are type annotations.

Annotations
@Override
getAnnotationsByTypeback to summary
public final <T extends Annotation> T[] getAnnotationsByType(Class<T> annotation)

Overrides default java.lang.reflect.AnnotatedElement.getAnnotationsByType.

Doc from java.lang.reflect.AnnotatedElement.getAnnotationsByType.

Returns annotations that are associated with this element. If there are no annotations associated with this element, the return value is an array of length 0. The difference between this method and getAnnotation(Class) is that this method detects if its argument is a repeatable annotation type (JLS 9.6), and if so, attempts to find one or more annotations of that type by "looking through" a container annotation. The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.

Annotations
@Override
getDeclaredAnnotationback to summary
public final <T extends Annotation> T getDeclaredAnnotation(Class<T> annotation)

Overrides default java.lang.reflect.AnnotatedElement.getDeclaredAnnotation.

Doc from java.lang.reflect.AnnotatedElement.getDeclaredAnnotation.

Returns this element's annotation for the specified type if such an annotation is directly present, else null. This method ignores inherited annotations. (Returns null if no annotations are directly present on this element.)

Annotations
@Override
@SuppressWarnings:unchecked
getDeclaredAnnotationsback to summary
public final Annotation[] getDeclaredAnnotations()

Implements java.lang.reflect.AnnotatedType.getDeclaredAnnotations.

Doc from java.lang.reflect.AnnotatedType.getDeclaredAnnotations.

Returns annotations that are directly present on this element. This method ignores inherited annotations. If there are no annotations directly present on this element, the return value is an array of length 0. The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.

Note that any annotations returned by this method are type annotations.

Annotations
@Override
getDeclaredAnnotationsByTypeback to summary
public final <T extends Annotation> T[] getDeclaredAnnotationsByType(Class<T> annotation)

Overrides default java.lang.reflect.AnnotatedElement.getDeclaredAnnotationsByType.

Doc from java.lang.reflect.AnnotatedElement.getDeclaredAnnotationsByType.

Returns this element's annotation(s) for the specified type if such annotations are either directly present or indirectly present. This method ignores inherited annotations. If there are no specified annotations directly or indirectly present on this element, the return value is an array of length 0. The difference between this method and getDeclaredAnnotation(Class) is that this method detects if its argument is a repeatable annotation type (JLS 9.6), and if so, attempts to find one or more annotations of that type by "looking through" a container annotation if one is present. The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.

Annotations
@Override
getLocationback to summary
pack-priv final TypeAnnotation.LocationInfo getLocation()
getTypeback to summary
public final Type getType()

Implements java.lang.reflect.AnnotatedType.getType.

Doc from java.lang.reflect.AnnotatedType.getType.

Returns the underlying type that this annotated type represents.

Annotations
@Override
getTypeAnnotationsback to summary
pack-priv final TypeAnnotation[] getTypeAnnotations()
hashCodeback to summary
public 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.
Annotations
@Override
toStringback to summary
public 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.

Annotations
@Override
sun.reflect.annotation back to summary

private final Class AnnotatedTypeFactory.AnnotatedTypeVariableImpl

extends AnnotatedTypeBaseImpl
implements AnnotatedTypeVariable
Class Inheritance
All Implemented Interfaces
java.lang.reflect.AnnotatedTypeVariable, java.lang.reflect.AnnotatedType, java.lang.reflect.AnnotatedElement

Constructor Summary

AccessConstructor and Description
pack-priv
AnnotatedTypeVariableImpl(TypeVariable<?> type, TypeAnnotation.LocationInfo location, TypeAnnotation[] actualTypeAnnotations, TypeAnnotation[] allOnSameTargetTypeAnnotations)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object o)

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.equals.

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

public AnnotatedType[]
getAnnotatedBounds()

Implements java.lang.reflect.AnnotatedTypeVariable.getAnnotatedBounds.

Returns the potentially annotated bounds of this type variable.

public AnnotatedType
getAnnotatedOwnerType()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.getAnnotatedOwnerType.

Overrides default java.lang.reflect.AnnotatedType.getAnnotatedOwnerType.

Implements java.lang.reflect.AnnotatedTypeVariable.getAnnotatedOwnerType.

Returns the potentially annotated type that this type is a member of, if this type represents a nested type.

private TypeVariable<?>
Inherited from sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl:
annotationsToStringbaseHashCodeequalsTypeAndAnnotationsgetAnnotationgetAnnotationsgetAnnotationsByTypegetDeclaredAnnotationgetDeclaredAnnotationsgetDeclaredAnnotationsByTypegetLocationgetTypegetTypeAnnotationshashCodetoString

Constructor Detail

AnnotatedTypeVariableImplback to summary
pack-priv AnnotatedTypeVariableImpl(TypeVariable<?> type, TypeAnnotation.LocationInfo location, TypeAnnotation[] actualTypeAnnotations, TypeAnnotation[] allOnSameTargetTypeAnnotations)

Method Detail

equalsback to summary
public boolean equals(Object o)

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.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.

Annotations
@Override
getAnnotatedBoundsback to summary
public AnnotatedType[] getAnnotatedBounds()

Implements java.lang.reflect.AnnotatedTypeVariable.getAnnotatedBounds.

Doc from java.lang.reflect.AnnotatedTypeVariable.getAnnotatedBounds.

Returns the potentially annotated bounds of this type variable. If no bound is explicitly declared, the bound is unannotated Object.

Annotations
@Override
getAnnotatedOwnerTypeback to summary
public AnnotatedType getAnnotatedOwnerType()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.getAnnotatedOwnerType.

Overrides default java.lang.reflect.AnnotatedType.getAnnotatedOwnerType.

Implements java.lang.reflect.AnnotatedTypeVariable.getAnnotatedOwnerType.

Doc from java.lang.reflect.AnnotatedTypeVariable.getAnnotatedOwnerType.

Returns the potentially annotated type that this type is a member of, if this type represents a nested type. For example, if this type is @TA O<T>.I<S>, return a representation of @TA O<T>.

Returns null for an AnnotatedType that is an instance of AnnotatedTypeVariable.

Annotations
@Override
getTypeVariableback to summary
private TypeVariable<?> getTypeVariable()
sun.reflect.annotation back to summary

private final Class AnnotatedTypeFactory.AnnotatedWildcardTypeImpl

extends AnnotatedTypeBaseImpl
implements AnnotatedWildcardType
Class Inheritance
All Implemented Interfaces
java.lang.reflect.AnnotatedWildcardType, java.lang.reflect.AnnotatedType, java.lang.reflect.AnnotatedElement

Field Summary

Modifier and TypeField and Description
private final boolean

Constructor Summary

AccessConstructor and Description
pack-priv
AnnotatedWildcardTypeImpl(WildcardType type, TypeAnnotation.LocationInfo location, TypeAnnotation[] actualTypeAnnotations, TypeAnnotation[] allOnSameTargetTypeAnnotations)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object o)

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.equals.

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

private AnnotatedType[]
public AnnotatedType[]
getAnnotatedLowerBounds()

Implements java.lang.reflect.AnnotatedWildcardType.getAnnotatedLowerBounds.

Returns the potentially annotated lower bounds of this wildcard type.

public AnnotatedType
getAnnotatedOwnerType()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.getAnnotatedOwnerType.

Overrides default java.lang.reflect.AnnotatedType.getAnnotatedOwnerType.

Implements java.lang.reflect.AnnotatedWildcardType.getAnnotatedOwnerType.

Returns the potentially annotated type that this type is a member of, if this type represents a nested type.

public AnnotatedType[]
getAnnotatedUpperBounds()

Implements java.lang.reflect.AnnotatedWildcardType.getAnnotatedUpperBounds.

Returns the potentially annotated upper bounds of this wildcard type.

private WildcardType
public int
hashCode()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.hashCode.

Returns a hash code value for this object.

private boolean
public String
toString()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.toString.

Returns a string representation of the object.

Inherited from sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl:
annotationsToStringbaseHashCodeequalsTypeAndAnnotationsgetAnnotationgetAnnotationsgetAnnotationsByTypegetDeclaredAnnotationgetDeclaredAnnotationsgetDeclaredAnnotationsByTypegetLocationgetTypegetTypeAnnotations

Field Detail

hasUpperBoundsback to summary
private final boolean hasUpperBounds

Constructor Detail

AnnotatedWildcardTypeImplback to summary
pack-priv AnnotatedWildcardTypeImpl(WildcardType type, TypeAnnotation.LocationInfo location, TypeAnnotation[] actualTypeAnnotations, TypeAnnotation[] allOnSameTargetTypeAnnotations)

Method Detail

equalsback to summary
public boolean equals(Object o)

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.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.

Annotations
@Override
getAnnotatedBoundsback to summary
private AnnotatedType[] getAnnotatedBounds(Type[] bounds)
getAnnotatedLowerBoundsback to summary
public AnnotatedType[] getAnnotatedLowerBounds()

Implements java.lang.reflect.AnnotatedWildcardType.getAnnotatedLowerBounds.

Doc from java.lang.reflect.AnnotatedWildcardType.getAnnotatedLowerBounds.

Returns the potentially annotated lower bounds of this wildcard type. If no lower bound is explicitly declared, the lower bound is the type of null. In this case, a zero length array is returned.

Annotations
@Override
getAnnotatedOwnerTypeback to summary
public AnnotatedType getAnnotatedOwnerType()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.getAnnotatedOwnerType.

Overrides default java.lang.reflect.AnnotatedType.getAnnotatedOwnerType.

Implements java.lang.reflect.AnnotatedWildcardType.getAnnotatedOwnerType.

Doc from java.lang.reflect.AnnotatedWildcardType.getAnnotatedOwnerType.

Returns the potentially annotated type that this type is a member of, if this type represents a nested type. For example, if this type is @TA O<T>.I<S>, return a representation of @TA O<T>.

Returns null for an AnnotatedType that is an instance of AnnotatedWildcardType.

Annotations
@Override
getAnnotatedUpperBoundsback to summary
public AnnotatedType[] getAnnotatedUpperBounds()

Implements java.lang.reflect.AnnotatedWildcardType.getAnnotatedUpperBounds.

Doc from java.lang.reflect.AnnotatedWildcardType.getAnnotatedUpperBounds.

Returns the potentially annotated upper bounds of this wildcard type. If no upper bound is explicitly declared, the upper bound is unannotated Object

Annotations
@Override
getWildcardTypeback to summary
private WildcardType getWildcardType()
hashCodeback to summary
public int hashCode()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.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.
Annotations
@Override
hasUpperBoundsback to summary
private boolean hasUpperBounds()
toStringback to summary
public String toString()

Overrides sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl.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.

Annotations
@Override