public class MethodParamModelUtils extends Object
MethodParamModel
s.Constructor and Description |
---|
MethodParamModelUtils() |
Modifier and Type | Method and Description |
---|---|
static Annotation |
getAnnotation(MethodParamModel methodParamModel,
Class<? extends Annotation> annotationClass) |
static List<TypeVariableName> |
getTypeVariables(MethodParamModel methodParam) |
static List<TypeVariableName> |
getTypeVariables(TypeName typeName) |
static boolean |
isAnnotatedWith(MethodParamModel methodParamModel,
Class<? extends Annotation> annotationClass) |
static boolean |
isAnnotatedWithExternalAnnotation(MethodParamModel methodParamModel,
TypeName annotationType) |
static boolean |
isComponentContextParam(MethodParamModel methodParamModel) |
static boolean |
isLazyStateParam(MethodParamModel methodParamModel) |
static Comparator<MethodParamModel> |
shallowParamComparator()
Compares two
MethodParamModel s based on name and annotations only. |
public static boolean isAnnotatedWith(MethodParamModel methodParamModel, Class<? extends Annotation> annotationClass)
public static boolean isAnnotatedWithExternalAnnotation(MethodParamModel methodParamModel, TypeName annotationType)
public static Annotation getAnnotation(MethodParamModel methodParamModel, Class<? extends Annotation> annotationClass)
public static boolean isLazyStateParam(MethodParamModel methodParamModel)
public static boolean isComponentContextParam(MethodParamModel methodParamModel)
public static List<TypeVariableName> getTypeVariables(MethodParamModel methodParam)
public static List<TypeVariableName> getTypeVariables(TypeName typeName)
public static Comparator<MethodParamModel> shallowParamComparator()
MethodParamModel
s based on name and annotations only.