public class JavaWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<AbstractType,com.sun.codemodel.JType> |
defined |
protected INameGenerator |
nameGenerator |
IPropertyNameGenerator |
propNameGenerator |
| Constructor and Description |
|---|
JavaWriter() |
JavaWriter(JavaGenerationConfig cfg) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addParam(com.sun.codemodel.JAnnotationUse annotate,
Object value,
String name) |
void |
annotate(com.sun.codemodel.JAnnotatable annotable,
AbstractType tp) |
com.sun.codemodel.JDefinedClass |
defineClass(AbstractType t,
com.sun.codemodel.ClassType type) |
static String |
escape(String x) |
JavaGenerationConfig |
getConfig() |
Object |
getDefault(AbstractType range) |
com.sun.codemodel.JCodeModel |
getModel() |
com.sun.codemodel.JType |
getType(AbstractType range) |
com.sun.codemodel.JType |
getType(AbstractType range,
boolean allowNotJava,
boolean convertComplexToAnnotation,
IProperty member) |
void |
runCustomizers(ClassCustomizerParameters cp) |
void |
runCustomizers(PropertyCustomizerParameters propCustomizer) |
void |
setDefaultPackageName(String string) |
protected com.sun.codemodel.JInvocation |
toArrayInit(AbstractType range2,
IProperty member) |
com.sun.codemodel.JExpression |
toExpr(Object value) |
void |
write(ITypeLibrary types) |
String |
writeToString(ITypeLibrary lib) |
protected HashMap<AbstractType,com.sun.codemodel.JType> defined
protected INameGenerator nameGenerator
public IPropertyNameGenerator propNameGenerator
public JavaWriter(JavaGenerationConfig cfg)
public JavaWriter()
public JavaGenerationConfig getConfig()
public com.sun.codemodel.JCodeModel getModel()
public com.sun.codemodel.JDefinedClass defineClass(AbstractType t, com.sun.codemodel.ClassType type)
public Object getDefault(AbstractType range)
public void annotate(com.sun.codemodel.JAnnotatable annotable,
AbstractType tp)
protected void addParam(com.sun.codemodel.JAnnotationUse annotate,
Object value,
String name)
public com.sun.codemodel.JExpression toExpr(Object value)
public com.sun.codemodel.JType getType(AbstractType range)
public com.sun.codemodel.JType getType(AbstractType range, boolean allowNotJava, boolean convertComplexToAnnotation, IProperty member)
protected com.sun.codemodel.JInvocation toArrayInit(AbstractType range2, IProperty member)
public void write(ITypeLibrary types)
public String writeToString(ITypeLibrary lib)
public void setDefaultPackageName(String string)
public void runCustomizers(PropertyCustomizerParameters propCustomizer)
public void runCustomizers(ClassCustomizerParameters cp)
Copyright © 2016 OnPositive. All rights reserved.