public class TypeQualifierValue<A extends java.lang.annotation.Annotation>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
static boolean |
DEBUG_CLASSLOADING |
A |
proxy |
ClassDescriptor |
typeQualifier |
java.lang.Class<A> |
typeQualifierClass |
java.lang.Object |
value |
Modifier and Type | Method and Description |
---|---|
boolean |
canValidate(java.lang.Object constantValue) |
static void |
clearInstance() |
boolean |
equals(java.lang.Object o) |
static java.util.Collection<TypeQualifierValue<?>> |
getAllKnownTypeQualifiers()
Get Collection of all known TypeQualifierValues.
|
static java.util.Collection<TypeQualifierValue<?>> |
getComplementaryExclusiveTypeQualifierValue(TypeQualifierValue<?> tqv)
Get the "complementary" TypeQualifierValues for given exclusive type
qualifier.
|
ClassDescriptor |
getTypeQualifierClassDescriptor()
Get the ClassDescriptor which specifies the type qualifier annotation.
|
static <A extends java.lang.annotation.Annotation> |
getValue(java.lang.Class<A> clazz,
java.lang.Object value) |
static TypeQualifierValue<?> |
getValue(ClassDescriptor desc,
java.lang.Object value)
Given a ClassDescriptor/value pair, return the interned
TypeQualifierValue representing that pair.
|
int |
hashCode() |
static boolean |
hasMultipleVariants(TypeQualifierValue<?> tqv)
Determine whether or not given TypeQualifierValue has multiple variants.
|
boolean |
isExclusiveQualifier()
Return whether or not this TypeQualifierValue denotes an exclusive
qualifier.
|
boolean |
isExhaustiveQualifier()
Return whether or not this TypeQualifierValue denotes an exhaustive
qualifier.
|
boolean |
isStrictQualifier()
Return whether or not this TypeQualifierValue denotes a strict qualifier.
|
java.lang.String |
toString() |
javax.annotation.meta.When |
validate(java.lang.Object constantValue) |
public static final boolean DEBUG
public static final boolean DEBUG_CLASSLOADING
public final ClassDescriptor typeQualifier
public final java.lang.Class<A extends java.lang.annotation.Annotation> typeQualifierClass
public final A extends java.lang.annotation.Annotation proxy
@CheckForNull public final java.lang.Object value
public static void clearInstance()
public boolean canValidate(@CheckForNull java.lang.Object constantValue)
public javax.annotation.meta.When validate(@CheckForNull java.lang.Object constantValue)
@Nonnull public static TypeQualifierValue<?> getValue(ClassDescriptor desc, @CheckForNull java.lang.Object value)
desc
- a ClassDescriptor denoting a type qualifier annotationvalue
- a value@Nonnull public static <A extends java.lang.annotation.Annotation> TypeQualifierValue<A> getValue(java.lang.Class<A> clazz, @CheckForNull java.lang.Object value)
public static java.util.Collection<TypeQualifierValue<?>> getAllKnownTypeQualifiers()
public static java.util.Collection<TypeQualifierValue<?>> getComplementaryExclusiveTypeQualifierValue(TypeQualifierValue<?> tqv)
tqv
- a type qualifier (which must be exclusive)public static boolean hasMultipleVariants(TypeQualifierValue<?> tqv)
tqv
- a TypeQualifierValuepublic ClassDescriptor getTypeQualifierClassDescriptor()
public boolean isStrictQualifier()
public boolean isExclusiveQualifier()
public boolean isExhaustiveQualifier()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.