public class AnnotatedTypes
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
compareAnnotatedCallable(AnnotatedCallable<?> m1,
AnnotatedCallable<?> m2) |
static boolean |
compareAnnotatedField(AnnotatedField<?> f1,
AnnotatedField<?> f2) |
static boolean |
compareAnnotatedParameters(AnnotatedParameter<?> p1,
AnnotatedParameter<?> p2)
Compares two annotated parameters and returns true if they are equal
|
static boolean |
compareAnnotatedTypes(AnnotatedType<?> t1,
AnnotatedType<?> t2)
Compares two annotated types and returns true if they are the same
|
protected static java.lang.String |
createAnnotationCollectionId(java.util.Collection<java.lang.annotation.Annotation> annotations) |
static <X> java.lang.String |
createCallableId(AnnotatedCallable<X> method) |
static <X> java.lang.String |
createConstructorId(java.lang.reflect.Constructor<X> constructor,
java.util.Set<java.lang.annotation.Annotation> annotations,
java.util.List<AnnotatedParameter<X>> parameters) |
static <X> java.lang.String |
createFieldId(AnnotatedField<X> field) |
static <X> java.lang.String |
createFieldId(java.lang.reflect.Field field,
java.util.Collection<java.lang.annotation.Annotation> annotations) |
static <X> java.lang.String |
createMethodId(java.lang.reflect.Method method,
java.util.Set<java.lang.annotation.Annotation> annotations,
java.util.List<AnnotatedParameter<X>> parameters) |
static <X> java.lang.String |
createParameterId(AnnotatedParameter<X> annotatedParameter) |
static <X> java.lang.String |
createParameterId(java.lang.reflect.Type type,
java.util.Set<java.lang.annotation.Annotation> annotations) |
static <X> java.lang.String |
createParameterListId(java.util.List<AnnotatedParameter<X>> parameters) |
static <X> java.lang.String |
createTypeId(AnnotatedType<X> annotatedType)
Generates a unique signature for an annotated type.
|
static <X> java.lang.String |
createTypeId(java.lang.Class<X> clazz,
java.util.Collection<java.lang.annotation.Annotation> annotations,
java.util.Collection<AnnotatedMethod<? super X>> methods,
java.util.Collection<AnnotatedField<? super X>> fields,
java.util.Collection<AnnotatedConstructor<X>> constructors)
Generates a unique signature for a concrete class
|
static AnnotatedType<?> |
getDeclaringAnnotatedType(Annotated annotated)
Returns the declaring
AnnotatedType of a given annotated. |
public static <X> java.lang.String createTypeId(AnnotatedType<X> annotatedType)
X - annotatedType - public static <X> java.lang.String createTypeId(java.lang.Class<X> clazz,
java.util.Collection<java.lang.annotation.Annotation> annotations,
java.util.Collection<AnnotatedMethod<? super X>> methods,
java.util.Collection<AnnotatedField<? super X>> fields,
java.util.Collection<AnnotatedConstructor<X>> constructors)
X - annotatedType - protected static java.lang.String createAnnotationCollectionId(java.util.Collection<java.lang.annotation.Annotation> annotations)
public static <X> java.lang.String createFieldId(AnnotatedField<X> field)
public static <X> java.lang.String createFieldId(java.lang.reflect.Field field,
java.util.Collection<java.lang.annotation.Annotation> annotations)
public static <X> java.lang.String createCallableId(AnnotatedCallable<X> method)
public static <X> java.lang.String createMethodId(java.lang.reflect.Method method,
java.util.Set<java.lang.annotation.Annotation> annotations,
java.util.List<AnnotatedParameter<X>> parameters)
public static <X> java.lang.String createConstructorId(java.lang.reflect.Constructor<X> constructor,
java.util.Set<java.lang.annotation.Annotation> annotations,
java.util.List<AnnotatedParameter<X>> parameters)
public static <X> java.lang.String createParameterListId(java.util.List<AnnotatedParameter<X>> parameters)
public static <X> java.lang.String createParameterId(AnnotatedParameter<X> annotatedParameter)
public static <X> java.lang.String createParameterId(java.lang.reflect.Type type,
java.util.Set<java.lang.annotation.Annotation> annotations)
public static boolean compareAnnotatedParameters(AnnotatedParameter<?> p1, AnnotatedParameter<?> p2)
public static boolean compareAnnotatedField(AnnotatedField<?> f1, AnnotatedField<?> f2)
public static boolean compareAnnotatedCallable(AnnotatedCallable<?> m1, AnnotatedCallable<?> m2)
public static boolean compareAnnotatedTypes(AnnotatedType<?> t1, AnnotatedType<?> t2)
public static AnnotatedType<?> getDeclaringAnnotatedType(Annotated annotated)
AnnotatedType of a given annotated.
For an AnnotatedMember, AnnotatedMember.getDeclaringType() is returned.
For an AnnotatedParameter, the declaring annotated type of AnnotatedParameter.getDeclaringCallable() is returned.
If the parameter is an AnnotatedType, it is returned.java.lang.IllegalArgumentException - if the annotated parameter is an unknown non-standard Annotated subclass.Copyright © 2015. All Rights Reserved.