public final class Qualifiers extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isQualifier(Class<? extends Annotation> type)
Return true or false whether or not the annotation type represents a
Qualifier |
static QualifierMatcher |
match(Annotation annot) |
static QualifierMatcher |
match(Class<? extends Annotation> annotType) |
static QualifierMatcher |
matchAny() |
static QualifierMatcher |
matchDefault()
The default qualifier matcher.
|
static QualifierMatcher |
matchNone() |
static Class<? extends Annotation> |
resolveAliases(Class<? extends Annotation> type)
Resolve qualifier aliases, returning the target qualifier.
|
public static boolean isQualifier(Class<? extends Annotation> type)
Qualifiertype - The annotation typeQualifier or parameterNullPointerException - if the type is null@Nonnull public static Class<? extends Annotation> resolveAliases(@Nonnull Class<? extends Annotation> type)
type - The annotation type.type if it is not an
alias.IllegalArgumentException - if there is a problem with the type, such as a
circular alias reference.public static QualifierMatcher matchDefault()
public static QualifierMatcher matchAny()
public static QualifierMatcher matchNone()
public static QualifierMatcher match(Class<? extends Annotation> annotType)
annotType - Annotation type class to match; null to match only the lack of a
qualifier.public static QualifierMatcher match(Annotation annot)
annot - Annotation instance to match, or null to match only the lack of a qualifier.Copyright © 2016 GroupLens Research. All rights reserved.