Constructor and Description |
---|
SpecModelUtils() |
Modifier and Type | Method and Description |
---|---|
static TypeSpec |
generateTypeSpec(javax.lang.model.type.TypeMirror type)
This method will "expand" the typeArguments of the given type, only if the type is a
ClassNames.DIFF or a Collection . |
static List<SpecMethodModel<DelegateMethod,Void>> |
getMethodModelsWithAnnotation(SpecModel specModel,
Class<? extends Annotation> annotationClass) |
static SpecMethodModel<DelegateMethod,Void> |
getMethodModelWithAnnotation(SpecModel specModel,
Class<? extends Annotation> annotationClass) |
static PropModel |
getPropWithName(SpecModel specModel,
String name) |
static MethodParamModel |
getReferencedParamModelForDiff(SpecModel specModel,
RenderDataDiffModel diffModel) |
static String |
getSpecAccessor(SpecModel specModel) |
static StateParamModel |
getStateValueWithName(SpecModel specModel,
String name) |
static boolean |
hasAnnotation(MethodParamModel methodParam,
Class<?> annotationClass) |
static boolean |
isPropOutput(SpecModel specModel,
MethodParamModel methodParamModel) |
static boolean |
isStateOutput(SpecModel specModel,
MethodParamModel methodParamModel) |
static boolean |
isStateValue(SpecModel specModel,
MethodParamModel methodParamModel) |
@Nullable public static StateParamModel getStateValueWithName(SpecModel specModel, String name)
@Nullable public static SpecMethodModel<DelegateMethod,Void> getMethodModelWithAnnotation(SpecModel specModel, Class<? extends Annotation> annotationClass)
public static List<SpecMethodModel<DelegateMethod,Void>> getMethodModelsWithAnnotation(SpecModel specModel, Class<? extends Annotation> annotationClass)
public static boolean isPropOutput(SpecModel specModel, MethodParamModel methodParamModel)
public static boolean isStateOutput(SpecModel specModel, MethodParamModel methodParamModel)
public static boolean isStateValue(SpecModel specModel, MethodParamModel methodParamModel)
public static MethodParamModel getReferencedParamModelForDiff(SpecModel specModel, RenderDataDiffModel diffModel)
public static boolean hasAnnotation(MethodParamModel methodParam, Class<?> annotationClass)
public static TypeSpec generateTypeSpec(javax.lang.model.type.TypeMirror type)
ClassNames.DIFF
or a Collection
. Otherwise the typeArguments won't be
traversed and recorded.