public class AnnotatedTypes extends 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 paramerets 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 String |
createAnnotationCollectionId(Collection<Annotation> annotations) |
static <X> String |
createCallableId(AnnotatedCallable<X> method) |
static <X> String |
createConstructorId(Constructor<X> constructor,
Set<Annotation> annotations,
List<AnnotatedParameter<X>> parameters) |
static <X> String |
createFieldId(AnnotatedField<X> field) |
static <X> String |
createFieldId(Field field,
Collection<Annotation> annotations) |
static <X> String |
createMethodId(Method method,
Set<Annotation> annotations,
List<AnnotatedParameter<X>> parameters) |
static <X> String |
createParameterId(AnnotatedParameter<X> annotatedParameter) |
static <X> String |
createParameterId(Type type,
Set<Annotation> annotations) |
static <X> String |
createParameterListId(List<AnnotatedParameter<X>> parameters) |
static <X> String |
createTypeId(AnnotatedType<X> annotatedType)
Generates a unique signature for an annotated type.
|
static <X> String |
createTypeId(Class<X> clazz,
Collection<Annotation> annotations,
Collection<AnnotatedMethod<? super X>> methods,
Collection<AnnotatedField<? super X>> fields,
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> String createTypeId(AnnotatedType<X> annotatedType)
X
- annotatedType
- public static <X> String createTypeId(Class<X> clazz, Collection<Annotation> annotations, Collection<AnnotatedMethod<? super X>> methods, Collection<AnnotatedField<? super X>> fields, Collection<AnnotatedConstructor<X>> constructors)
X
- annotatedType
- protected static String createAnnotationCollectionId(Collection<Annotation> annotations)
public static <X> String createFieldId(AnnotatedField<X> field)
public static <X> String createFieldId(Field field, Collection<Annotation> annotations)
public static <X> String createCallableId(AnnotatedCallable<X> method)
public static <X> String createMethodId(Method method, Set<Annotation> annotations, List<AnnotatedParameter<X>> parameters)
public static <X> String createConstructorId(Constructor<X> constructor, Set<Annotation> annotations, List<AnnotatedParameter<X>> parameters)
public static <X> String createParameterListId(List<AnnotatedParameter<X>> parameters)
public static <X> String createParameterId(AnnotatedParameter<X> annotatedParameter)
public static <X> String createParameterId(Type type, Set<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.IllegalArgumentException
- if the annotated parameter is an unknown non-standard Annotated
subclass.Copyright © 2013 Seam Framework. All Rights Reserved.