FreeHEP API
Version current

org.freehep.aid
Class JNICodeGenerator

java.lang.Object
  extended byorg.freehep.aid.AbstractGenerator
      extended byorg.freehep.aid.AbstractCPPGenerator
          extended byorg.freehep.aid.JNICodeGenerator
All Implemented Interfaces:
Generator

public class JNICodeGenerator
extends AbstractCPPGenerator

Version:
$Id: JNICodeGenerator.java,v 1.18 2005/04/26 18:17:48 duns Exp $
Author:
Mark Donszelmann
Source Code:
JNICodeGenerator.java

Field Summary
protected  JNITypeConverter converter
           
static String cr
           
protected  UserProperties importProperties
           
static String indent
           
protected  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(IClass clazz)
           
protected  void includeStatements(IndentPrintWriter out, IClass clazz, SortedSet sysIncludes, SortedSet includes, String namespace, SortedSet types)
           
protected  String prefix()
           
 boolean print(File file, IClass clazz)
           
protected  void printDestructor(IndentPrintWriter out, IClass clazz)
           
protected  void printDummyBody(IndentPrintWriter out, IClass clazz, IMethod method)
           
protected  void printJNIConstructor(IndentPrintWriter out, IClass clazz)
           
protected  void printMethod(IndentPrintWriter out, IClass clazz, IMethod method)
           
protected  void printMethodBody(IndentPrintWriter out, IClass clazz, 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 UserProperties jniProperties

importProperties

protected 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(IClass clazz)
Specified by:
filename in interface Generator
Specified by:
filename in class AbstractGenerator

print

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

includeStatements

protected void includeStatements(IndentPrintWriter out,
                                 IClass clazz,
                                 SortedSet sysIncludes,
                                 SortedSet includes,
                                 String namespace,
                                 SortedSet types)

printJNIConstructor

protected void printJNIConstructor(IndentPrintWriter out,
                                   IClass clazz)

printDestructor

protected void printDestructor(IndentPrintWriter out,
                               IClass clazz)

printMethod

protected void printMethod(IndentPrintWriter out,
                           IClass clazz,
                           IMethod method)

printDummyBody

protected void printDummyBody(IndentPrintWriter out,
                              IClass clazz,
                              IMethod method)

printMethodBody

protected void printMethodBody(IndentPrintWriter out,
                               IClass clazz,
                               IMethod method)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.