Method Summary |
|
public boolean | equals(Object o) |
static Key<T> | get(Class<T> type, AnnotationStrategy annotationStrategy) Gets a key for an injection type and an annotation strategy. |
public static Key<T> | get(Class<T> type) Gets a key for an injection type. |
public static Key<T> | get(Class<T> type, Class<? extends Annotation> annotationType) Gets a key for an injection type and an annotation type. |
public static Key<T> | get(Class<T> type, Annotation annotation) Gets a key for an injection type and an annotation. |
public static Key> | get(Type type) Gets a key for an injection type. |
public static Key> | get(Type type, Class<? extends Annotation> annotationType) Gets a key for an injection type and an annotation type. |
public static Key> | get(Type type, Annotation annotation) Gets a key for an injection type and an annotation. |
public static Key<T> | get(TypeLiteral<T> typeLiteral) Gets a key for an injection type. |
public static Key<T> | get(TypeLiteral<T> typeLiteral, Class<? extends Annotation> annotationType) Gets a key for an injection type and an annotation type. |
public static Key<T> | get(TypeLiteral<T> typeLiteral, Annotation annotation) Gets a key for an injection type and an annotation. |
static Key> | get(Type type, Member member, Annotation[] annotations, ErrorHandler errorHandler) Gets a key for the given type, member and annotations. |
public Annotation | getAnnotation() Gets the annotation. |
String | getAnnotationName() |
public Class<? extends Annotation> | getAnnotationType() Gets the annotation type. |
Class<? super T> | getRawType() |
public TypeLiteral<T> | getTypeLiteral() Gets the key type. |
boolean | hasAnnotationType() |
boolean | hasAttributes() Returns true if this key has annotation attributes. |
public int | hashCode() |
static boolean | isBindingAnnotation(Annotation annotation) |
static boolean | isBindingAnnotation(Class<? extends Annotation> annotationType) |
static boolean | isMarker(Class<? extends Annotation> annotationType) Returns
true if the given annotation type has no attributes. |
Key<T> | ofType(Class<T> type) Returns a new key of the specified type with the same annotation as this
key. |
Key> | ofType(Type type) Returns a new key of the specified type with the same annotation as this
key. |
static AnnotationStrategy | strategyFor(Annotation annotation) Gets the strategy for an annotation. |
static AnnotationStrategy | strategyFor(Class<? extends Annotation> annotationType) Gets the strategy for an annotation type. |
public String | toString() |
Key<T> | withoutAttributes() Returns this key without annotation attributes, i.e. |