public abstract class JavaClientGroovyTransformer extends AbstractGroovyTransformer<JavaAs3Input,JavaAs3Output,JavaAs3GroovyConfiguration> implements JavaTypeFactory
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,JavaImport> |
javaImports |
protected Map<String,JavaImport> |
javaPropertyImports |
protected Map<Class<?>,JavaType> |
javaTypes |
| Constructor and Description |
|---|
JavaClientGroovyTransformer() |
JavaClientGroovyTransformer(JavaAs3GroovyConfiguration config,
Listener listener) |
getTemplate, getTemplate, getTemplateFactoryequals, generate, getConfig, getListener, hashCode, setConfig, setListener, toStringprotected final Map<String,JavaImport> javaImports
protected final Map<String,JavaImport> javaPropertyImports
public JavaClientGroovyTransformer()
public JavaClientGroovyTransformer(JavaAs3GroovyConfiguration config, Listener listener)
public boolean accept(Input<?> input)
accept in class Transformer<JavaAs3Input,JavaAs3Output,JavaAs3GroovyConfiguration>protected JavaAs3Output[] getOutputs(JavaAs3Input input) throws IOException, TemplateUriException
getOutputs in class Transformer<JavaAs3Input,JavaAs3Output,JavaAs3GroovyConfiguration>IOExceptionTemplateUriExceptionprotected void generate(JavaAs3Input input, JavaAs3Output output) throws IOException, TemplateException
generate in class Transformer<JavaAs3Input,JavaAs3Output,JavaAs3GroovyConfiguration>IOExceptionTemplateExceptionprotected Map<String,Object> getBindings(JavaAs3Input input, JavaAs3Output output)
protected TemplateUri[] getTemplateUris(JavaType javaType)
protected File getOutputDir(JavaAs3Input input, GroovyTemplate template)
protected abstract File getOutputFile(JavaAs3Input input, GroovyTemplate template, File outputDir)
protected String getOutputFileSuffix(JavaAs3Input input, GroovyTemplate template)
protected boolean isOutdated(JavaAs3Input input, GroovyTemplate template, File outputFile, boolean hasBaseTemplate)
protected String getOutputStatus(JavaAs3Input input, GroovyTemplate template, File outputFile, boolean hasBaseTemplate)
public ClientType getClientType(Type type, Class<?> declaringClass, ParameterizedType[] declaringTypes, PropertyType propertyType)
getClientType in interface JavaTypeFactorypublic ClientType getAs3Type(Class<?> clazz)
getAs3Type in interface JavaTypeFactorypublic JavaImport getJavaImport(Class<?> clazz)
getJavaImport in interface JavaTypeFactorypublic Set<JavaImport> getJavaImports(ClientType clientType, boolean property)
getJavaImports in interface JavaTypeFactorypublic JavaType getJavaType(Class<?> clazz)
getJavaType in interface JavaTypeFactorypublic JavaType.Kind getKind(Class<?> clazz)
getKind in interface JavaTypeFactoryprotected JavaAbstractType.GenerationType getGenerationType(Class<?> clazz)
public JavaAbstractType.GenerationType getGenerationType(JavaType.Kind kind, Class<?> clazz)
getGenerationType in interface JavaTypeFactorypublic List<JavaInterface> getJavaTypeInterfaces(Class<?> clazz)
getJavaTypeInterfaces in interface JavaTypeFactorypublic JavaType getJavaTypeSuperclass(Class<?> clazz)
getJavaTypeSuperclass in interface JavaTypeFactorypublic boolean isId(JavaFieldProperty fieldProperty)
isId in interface JavaTypeFactorypublic boolean isUid(JavaProperty property)
isUid in interface JavaTypeFactorypublic boolean isVersion(JavaProperty property)
isVersion in interface JavaTypeFactorypublic boolean isLazy(JavaProperty property)
isLazy in interface JavaTypeFactory