|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.moesol.generator.ClassGeneratorVisitor com.moesol.generator.JavaClassGeneratorVisitor
public class JavaClassGeneratorVisitor
Field Summary |
---|
Fields inherited from class com.moesol.generator.ClassGeneratorVisitor |
---|
current_callable |
Constructor Summary | |
---|---|
JavaClassGeneratorVisitor(Writer out,
TranslationContext ctx)
|
Method Summary | |
---|---|
protected void |
addFieldValueProperty(Field field,
Properties p)
|
void |
arguments(Writer out)
callback from method.tmpl |
void |
cni_parameters(Writer out)
callback from method.tmpl |
protected void |
extendConstructorProperties(Constructor ctor,
Properties p)
Template method |
protected void |
extendFieldProperties(Field field,
Properties p)
Template method |
protected void |
extendMethodProperties(Method method,
Properties p)
Template method |
void |
final_parameters(Writer out)
callback from method.tmpl |
protected String |
getFieldTemplateName(Field field)
Template method |
protected String |
getPropertyInit(Callable callable)
|
protected String |
getTemplateName(Constructor ctor)
Template method |
protected String |
getTemplateName(Method method)
Template method |
void |
jni_arguments(Writer out)
callback from method.tmpl |
void |
jni_parameters(Writer out)
callback from method.tmpl |
protected boolean |
optShouldGenerateCallable(Callable callable)
|
protected boolean |
optShouldGenerateField(Field field)
|
protected boolean |
origShouldGenerateConstructor(Constructor ctor)
|
protected boolean |
origShouldGenerateMethod(Method method)
|
void |
parameters(Writer out)
callback from method.tmpl TODO refactor into base class and just get TypePrinter...! |
protected boolean |
shouldGenerateConstructor(Constructor ctor)
Template method |
protected boolean |
shouldGenerateField(Field field)
Template method |
protected boolean |
shouldGenerateMethod(Method method)
Template method |
void |
throws_clause(Writer out)
callback from method.tmpl |
void |
visit(Class a_class)
override to change visit strategy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaClassGeneratorVisitor(Writer out, TranslationContext ctx)
Method Detail |
---|
public void visit(Class a_class) throws ApplyException
ClassGeneratorVisitor
visit
in class ClassGeneratorVisitor
ApplyException
protected boolean shouldGenerateField(Field field)
ClassGeneratorVisitor
shouldGenerateField
in class ClassGeneratorVisitor
protected boolean optShouldGenerateField(Field field)
protected void extendFieldProperties(Field field, Properties p) throws ApplyException
ClassGeneratorVisitor
extendFieldProperties
in class ClassGeneratorVisitor
ApplyException
protected void addFieldValueProperty(Field field, Properties p)
protected String getFieldTemplateName(Field field) throws ApplyException
ClassGeneratorVisitor
getFieldTemplateName
in class ClassGeneratorVisitor
ApplyException
protected boolean shouldGenerateMethod(Method method) throws ApplyException
ClassGeneratorVisitor
shouldGenerateMethod
in class ClassGeneratorVisitor
ApplyException
protected boolean origShouldGenerateMethod(Method method) throws ApplyException
ApplyException
protected boolean optShouldGenerateCallable(Callable callable) throws ApplyException
ApplyException
protected void extendMethodProperties(Method method, Properties p) throws ApplyException
ClassGeneratorVisitor
extendMethodProperties
in class ClassGeneratorVisitor
ApplyException
protected boolean shouldGenerateConstructor(Constructor ctor) throws ApplyException
ClassGeneratorVisitor
shouldGenerateConstructor
in class ClassGeneratorVisitor
ApplyException
protected boolean origShouldGenerateConstructor(Constructor ctor) throws ApplyException
ApplyException
protected void extendConstructorProperties(Constructor ctor, Properties p) throws ApplyException
ClassGeneratorVisitor
extendConstructorProperties
in class ClassGeneratorVisitor
ApplyException
protected String getPropertyInit(Callable callable) throws ApplyException
ApplyException
protected String getTemplateName(Method method) throws ApplyException
ClassGeneratorVisitor
getTemplateName
in class ClassGeneratorVisitor
ApplyException
protected String getTemplateName(Constructor ctor) throws ApplyException
ClassGeneratorVisitor
getTemplateName
in class ClassGeneratorVisitor
ApplyException
public void parameters(Writer out) throws IOException, ApplyException
IOException
ApplyException
public void arguments(Writer out) throws IOException
IOException
public void throws_clause(Writer out) throws IOException
IOException
public void jni_parameters(Writer out) throws IOException, ApplyException
IOException
ApplyException
public void cni_parameters(Writer out) throws IOException, ApplyException
IOException
ApplyException
public void jni_arguments(Writer out) throws IOException
IOException
public void final_parameters(Writer out) throws ApplyException
ApplyException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |