public class DslModelFactory extends Object
| Constructor and Description |
|---|
DslModelFactory(TypeModelFactoryVisitor visitor) |
| Modifier and Type | Method and Description |
|---|---|
AnnotationModel |
annotation(String type) |
DslModel |
dsl(MethodModel factory,
String delegate) |
MethodModel |
method(ExecutableElement element) |
static MethodModel |
method(List<AnnotationModel> annotations,
boolean isStatic,
boolean isPublic,
List<TypeModel> typeParameters,
TypeModel returnType,
String name,
List<VarModel> parameters,
StatementModel... body) |
VarModel |
parameter(List<AnnotationModel> emptyList,
TypeModel type,
String name) |
VarModel |
parameter(VariableElement element) |
StatementModel |
statementModel(VarModel target,
MethodModel method) |
TypeModel |
type(Element element) |
static TypeModel |
type(List<AnnotationModel> annotations,
List<TypeModel> typeParameters,
String packageName,
String simpleName,
Supplier<List<MethodModel>> methodSupplier) |
TypeModel |
type(List<AnnotationModel> annotations,
String packageName,
String simpleName) |
public DslModelFactory(TypeModelFactoryVisitor visitor)
public VarModel parameter(List<AnnotationModel> emptyList, TypeModel type, String name)
public static MethodModel method(List<AnnotationModel> annotations, boolean isStatic, boolean isPublic, List<TypeModel> typeParameters, TypeModel returnType, String name, List<VarModel> parameters, StatementModel... body)
public AnnotationModel annotation(String type)
public TypeModel type(List<AnnotationModel> annotations, String packageName, String simpleName)
public VarModel parameter(VariableElement element)
public MethodModel method(ExecutableElement element)
public static TypeModel type(List<AnnotationModel> annotations, List<TypeModel> typeParameters, String packageName, String simpleName, Supplier<List<MethodModel>> methodSupplier)
public DslModel dsl(MethodModel factory, String delegate)
public StatementModel statementModel(VarModel target, MethodModel method)
Copyright © 2019. All rights reserved.