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