public class TypeQualifierValue<A extends Annotation> extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
static boolean |
DEBUG_CLASSLOADING |
A |
proxy |
ClassDescriptor |
typeQualifier |
Class<A> |
typeQualifierClass |
Object |
value |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canValidate(Object constantValue) |
static void |
clearInstance() |
boolean |
equals(Object o) |
static Collection<TypeQualifierValue<?>> |
getAllKnownTypeQualifiers()
Get Collection of all known TypeQualifierValues.
|
static 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 Annotation> |
getValue(Class<A> clazz,
Object value) |
static TypeQualifierValue<?> |
getValue(ClassDescriptor desc,
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.
|
String |
toString() |
javax.annotation.meta.When |
validate(Object constantValue) |
public static final boolean DEBUG
public static final boolean DEBUG_CLASSLOADING
public final ClassDescriptor typeQualifier
public final Class<A extends Annotation> typeQualifierClass
public final A extends Annotation proxy
@CheckForNull public final Object value
public static void clearInstance()
public boolean canValidate(@CheckForNull Object constantValue)
public javax.annotation.meta.When validate(@CheckForNull Object constantValue)
@Nonnull public static TypeQualifierValue<?> getValue(ClassDescriptor desc, @CheckForNull Object value)
desc - a ClassDescriptor denoting a type qualifier annotationvalue - a value@Nonnull public static <A extends Annotation> TypeQualifierValue<A> getValue(Class<A> clazz, @CheckForNull Object value)
public static Collection<TypeQualifierValue<?>> getAllKnownTypeQualifiers()
public static 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()
Copyright © 2003–2015. All rights reserved.