public final class GeneratorUtils extends Object
Modifier and Type | Method and Description |
---|---|
static AnnotationSpec |
annotation(ClassName className) |
static String |
capitalize(String str) |
static MethodSpec.Builder |
getter(FieldSpec field) |
static ParameterSpec |
parameter(MethodParamModel param,
AnnotationSpec... extraAnnotations) |
static ParameterSpec |
parameter(MethodParamModel param,
TypeName type,
String name,
AnnotationSpec... extraAnnotations) |
static ParameterSpec |
parameter(TypeName type,
String name,
List<AnnotationSpec> externalAnnotations,
AnnotationSpec... extraAnnotations) |
public static ParameterSpec parameter(MethodParamModel param, AnnotationSpec... extraAnnotations)
public static ParameterSpec parameter(MethodParamModel param, TypeName type, String name, AnnotationSpec... extraAnnotations)
public static ParameterSpec parameter(TypeName type, String name, List<AnnotationSpec> externalAnnotations, AnnotationSpec... extraAnnotations)
public static AnnotationSpec annotation(ClassName className)
public static MethodSpec.Builder getter(FieldSpec field)