org.freehep.aid
Class JNICodeGenerator

java.lang.Object
  extended by org.freehep.aid.AbstractGenerator
      extended by org.freehep.aid.AbstractCPPGenerator
          extended by org.freehep.aid.JNICodeGenerator
All Implemented Interfaces:
org.freehep.rtti.Generator

public class JNICodeGenerator
extends AbstractCPPGenerator

Version:
$Id: JNICodeGenerator.java 8584 2006-08-10 23:06:37Z duns $
Author:
Mark Donszelmann

Field Summary
protected  JNITypeConverter converter
           
static String cr
           
protected  org.freehep.util.UserProperties importProperties
           
static String indent
           
protected  org.freehep.util.UserProperties jniProperties
           
 
Fields inherited from class org.freehep.aid.AbstractCPPGenerator
includeProperties, language, namesProperties, sysIncludeProperties, typeProperties, valueProperties
 
Fields inherited from class org.freehep.aid.AbstractGenerator
properties
 
Constructor Summary
JNICodeGenerator(String propDir)
           
 
Method Summary
 String filename(org.freehep.rtti.IClass clazz)
           
protected  void includeStatements(org.freehep.util.io.IndentPrintWriter out, org.freehep.rtti.IClass clazz, SortedSet sysIncludes, SortedSet includes, String namespace, SortedSet types)
           
protected  String prefix()
           
 boolean print(File file, org.freehep.rtti.IClass clazz)
           
protected  void printDestructor(org.freehep.util.io.IndentPrintWriter out, org.freehep.rtti.IClass clazz)
           
protected  void printDummyBody(org.freehep.util.io.IndentPrintWriter out, org.freehep.rtti.IClass clazz, org.freehep.rtti.IMethod method)
           
protected  void printJNIConstructor(org.freehep.util.io.IndentPrintWriter out, org.freehep.rtti.IClass clazz)
           
protected  void printMethod(org.freehep.util.io.IndentPrintWriter out, org.freehep.rtti.IClass clazz, org.freehep.rtti.IMethod method)
           
protected  void printMethodBody(org.freehep.util.io.IndentPrintWriter out, org.freehep.rtti.IClass clazz, org.freehep.rtti.IMethod method)
           
 
Methods inherited from class org.freehep.aid.AbstractCPPGenerator
includeFrom, includeFrom, includeStatements, namedType, namespace, printIncludeStatements
 
Methods inherited from class org.freehep.aid.AbstractGenerator
directory, getProperties, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

indent

public static final String indent
See Also:
Constant Field Values

cr

public static final String cr
See Also:
Constant Field Values

jniProperties

protected org.freehep.util.UserProperties jniProperties

importProperties

protected org.freehep.util.UserProperties importProperties

converter

protected JNITypeConverter converter
Constructor Detail

JNICodeGenerator

public JNICodeGenerator(String propDir)
Method Detail

prefix

protected String prefix()
Specified by:
prefix in class AbstractCPPGenerator

filename

public String filename(org.freehep.rtti.IClass clazz)
Specified by:
filename in interface org.freehep.rtti.Generator
Specified by:
filename in class AbstractGenerator

print

public boolean print(File file,
                     org.freehep.rtti.IClass clazz)
              throws IOException
Specified by:
print in interface org.freehep.rtti.Generator
Specified by:
print in class AbstractGenerator
Throws:
IOException

includeStatements

protected void includeStatements(org.freehep.util.io.IndentPrintWriter out,
                                 org.freehep.rtti.IClass clazz,
                                 SortedSet sysIncludes,
                                 SortedSet includes,
                                 String namespace,
                                 SortedSet types)

printJNIConstructor

protected void printJNIConstructor(org.freehep.util.io.IndentPrintWriter out,
                                   org.freehep.rtti.IClass clazz)

printDestructor

protected void printDestructor(org.freehep.util.io.IndentPrintWriter out,
                               org.freehep.rtti.IClass clazz)

printMethod

protected void printMethod(org.freehep.util.io.IndentPrintWriter out,
                           org.freehep.rtti.IClass clazz,
                           org.freehep.rtti.IMethod method)

printDummyBody

protected void printDummyBody(org.freehep.util.io.IndentPrintWriter out,
                              org.freehep.rtti.IClass clazz,
                              org.freehep.rtti.IMethod method)

printMethodBody

protected void printMethodBody(org.freehep.util.io.IndentPrintWriter out,
                               org.freehep.rtti.IClass clazz,
                               org.freehep.rtti.IMethod method)


Copyright © 2000-2007 FreeHEP. All Rights Reserved.