FreeHEP API
Version v1.1

org.freehep.aid
Class JNICodeGenerator

java.lang.Object
  |
  +--org.freehep.aid.AbstractGenerator
        |
        +--org.freehep.aid.AbstractCPPGenerator
              |
              +--org.freehep.aid.JNICodeGenerator
All Implemented Interfaces:
Generator

public class JNICodeGenerator
extends AbstractCPPGenerator

Version:
$Id: JNICodeGenerator.java,v 1.14 2002/11/04 05:59:45 duns Exp $
Author:
Mark Donszelmann

Field Summary
protected  JNITypeConverter converter
           
static String cr
           
protected  Properties importProperties
           
static String indent
           
protected  Properties jniProperties
           
 
Fields inherited from class org.freehep.aid.AbstractCPPGenerator
includeProperties, language, sysIncludeProperties, typeProperties, valueProperties
 
Fields inherited from class org.freehep.aid.AbstractGenerator
out, properties
 
Constructor Summary
JNICodeGenerator(String propDir)
           
 
Method Summary
 String filename(IClass clazz)
           
protected  void includeStatements(IClass clazz, SortedSet sysIncludes, SortedSet includes, String namespace, SortedSet types)
           
protected  String prefix()
           
 boolean print(PrintWriter out, IClass clazz)
           
protected  void printDestructor(IClass clazz)
           
protected  void printDummyBody(IClass clazz, IMethod method)
           
protected  void printJNIConstructor(IClass clazz)
           
protected  void printMethod(IClass clazz, IMethod method)
           
protected  void printMethodBody(IClass clazz, IMethod method)
           
 
Methods inherited from class org.freehep.aid.AbstractCPPGenerator
includeFrom, includeFrom, 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 Properties jniProperties

importProperties

protected Properties 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(PrintWriter out,
                     IClass clazz)
Specified by:
print in interface Generator
Specified by:
print in class AbstractGenerator
Returns:
true to stop generating more file

includeStatements

protected void includeStatements(IClass clazz,
                                 SortedSet sysIncludes,
                                 SortedSet includes,
                                 String namespace,
                                 SortedSet types)
Overrides:
includeStatements in class AbstractCPPGenerator

printJNIConstructor

protected void printJNIConstructor(IClass clazz)

printDestructor

protected void printDestructor(IClass clazz)

printMethod

protected void printMethod(IClass clazz,
                           IMethod method)

printDummyBody

protected void printDummyBody(IClass clazz,
                              IMethod method)

printMethodBody

protected void printMethodBody(IClass clazz,
                               IMethod method)

FreeHEP API
Version v1.1

Copyright © 2000-2002 FreeHEP, All Rights Reserved.