public class ServiceProxyHandlerGen extends Generator<ProxyModel>
| Modifier and Type | Field and Description |
|---|---|
static Map<String,String> |
numericMapping |
GeneratorUtils |
utils |
env, incremental, kinds, name| Constructor and Description |
|---|
ServiceProxyHandlerGen(GeneratorUtils utils) |
| Modifier and Type | Method and Description |
|---|---|
Stream<String> |
additionalImports(ProxyModel model) |
Collection<Class<? extends Annotation>> |
annotations() |
String |
className(ProxyModel model) |
String |
filename(ProxyModel model)
Generate the file name for the
model. |
void |
generateActionSwitchEntry(ProxyMethodInfo m,
CodeWriter writer) |
String |
generateHandler(ParamInfo param) |
String |
generateJsonParamExtract(ParamInfo param) |
String |
render(ProxyModel model,
int index,
int size,
Map<String,Object> session)
Render the model
|
public final GeneratorUtils utils
public ServiceProxyHandlerGen(GeneratorUtils utils)
public Collection<Class<? extends Annotation>> annotations()
annotations in class Generator<ProxyModel>public String filename(ProxyModel model)
Generatormodel.
When the returned value
null, no file is created/ and ends with .java, the file is created as a source file by the annotation processor
and the class will be compiled by the current compilation processresources/ prefix, the file is created as a resource file by the annotation processor using the
remaining suffix value and the file will likely end in the classes directory/ is created relative to the codegen.output directoryfilename in class Generator<ProxyModel>model - the modelnull if no generation should happenpublic String className(ProxyModel model)
public Stream<String> additionalImports(ProxyModel model)
public String render(ProxyModel model, int index, int size, Map<String,Object> session)
Generatorrender in class Generator<ProxyModel>model - the modelindex - the index for an incremental generatorsize - the number of models for an incremental generatorsession - the sessionnullpublic void generateActionSwitchEntry(ProxyMethodInfo m, CodeWriter writer)
Copyright © 2020. All rights reserved.