com.moesol.generator
Class JniClassGeneratorVisitor

java.lang.Object
  extended by com.moesol.generator.ClassGeneratorVisitor
      extended by com.moesol.generator.JniClassGeneratorVisitor
All Implemented Interfaces:
ReflectVisitor

public class JniClassGeneratorVisitor
extends ClassGeneratorVisitor


Field Summary
 
Fields inherited from class com.moesol.generator.ClassGeneratorVisitor
current_callable
 
Method Summary
 void arguments(Writer out)
          callback from *.tmpl
protected  Callable createCallable(Class a_class, Method method)
          Template method
 void do_parameters(Writer out)
          callback from *.tmpl
protected  void extendFieldProperties(Field field, Properties p)
          Template method
protected  void extendMethodProperties(Method method, Properties p)
          Template method
protected  String getC2pcCoclass(Class cls)
           
protected  String getFieldTemplateName(Field field)
          Template method
protected  String getTemplateName(Constructor ctor)
          Template method
protected  String getTemplateName(Method method)
          Template method
 void parameters(Writer out)
          callback from *.tmpl
protected  boolean shouldGenerateConstructor(Constructor ctor)
          Template method
protected  boolean shouldGenerateMethod(Method method)
          Template method
 
Methods inherited from class com.moesol.generator.ClassGeneratorVisitor
extendConstructorProperties, findConstructorTranslation, findFieldTranslation, findMethodTranslation, findMeTranslation, findParameterTranslation, findPropInitTranslation, getJniName, getJniOverload, getJniReturnError, getJniSelf, getPassAppend, getPropertyName, getSeparator, getTranslationContext, getTransProperty, queryMethodTranslation, queryTranslation, setPassAppend, setPassNumber, shouldGenerateField, visit, visitConstructor, visitField, visitMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

extendFieldProperties

protected void extendFieldProperties(Field field,
                                     Properties p)
Description copied from class: ClassGeneratorVisitor
Template method

Overrides:
extendFieldProperties in class ClassGeneratorVisitor

getFieldTemplateName

protected String getFieldTemplateName(Field field)
Description copied from class: ClassGeneratorVisitor
Template method

Specified by:
getFieldTemplateName in class ClassGeneratorVisitor

shouldGenerateMethod

protected boolean shouldGenerateMethod(Method method)
Description copied from class: ClassGeneratorVisitor
Template method

Overrides:
shouldGenerateMethod in class ClassGeneratorVisitor

createCallable

protected Callable createCallable(Class a_class,
                                  Method method)
                           throws ApplyException
Description copied from class: ClassGeneratorVisitor
Template method

Overrides:
createCallable in class ClassGeneratorVisitor
Throws:
ApplyException

extendMethodProperties

protected void extendMethodProperties(Method method,
                                      Properties p)
                               throws ApplyException
Description copied from class: ClassGeneratorVisitor
Template method

Overrides:
extendMethodProperties in class ClassGeneratorVisitor
Throws:
ApplyException

getTemplateName

protected String getTemplateName(Method method)
                          throws ApplyException
Description copied from class: ClassGeneratorVisitor
Template method

Specified by:
getTemplateName in class ClassGeneratorVisitor
Throws:
ApplyException

shouldGenerateConstructor

protected boolean shouldGenerateConstructor(Constructor ctor)
Description copied from class: ClassGeneratorVisitor
Template method

Overrides:
shouldGenerateConstructor in class ClassGeneratorVisitor

getTemplateName

protected String getTemplateName(Constructor ctor)
                          throws ApplyException
Description copied from class: ClassGeneratorVisitor
Template method

Specified by:
getTemplateName in class ClassGeneratorVisitor
Throws:
ApplyException

parameters

public void parameters(Writer out)
                throws IOException,
                       ApplyException
callback from *.tmpl

Throws:
IOException
ApplyException

do_parameters

public void do_parameters(Writer out)
                   throws IOException,
                          ApplyException
callback from *.tmpl

Throws:
IOException
ApplyException

arguments

public void arguments(Writer out)
               throws IOException,
                      ApplyException
callback from *.tmpl

Throws:
IOException
ApplyException

getC2pcCoclass

protected String getC2pcCoclass(Class cls)
                         throws ApplyException
Throws:
ApplyException


Copyright © 2004 Moebius Solutions, Inc. All Rights Reserved.