Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

ptolemy.copernicus.c
Class JavaToC

java.lang.Object
 extended byptolemy.copernicus.c.JavaToC

public class JavaToC
extends java.lang.Object

An application that converts a Java class (from a class file) into C source files (a .h file and a .c file) that implement the class. The C conversion capability is highly experimental and rudimentary at this point, with only a limited set of Java language features supported. We are actively extending the set of supported features.

Since:
Ptolemy II 2.0
Version:
$Id: JavaToC.java,v 1.54 2006年03月28日 23:58:33 cxh Exp $
Author:
Shuvra S. Bhattacharyya, Ankush Varma
Accepted Rating:
Red (ssb)
Proposed Rating:
Red (ssb)

Method Summary
static void convert(java.lang.String classPath, java.lang.String className)
Given a class name, convert the specified class to C (.c and .h files).
static void main(java.lang.String[] args)
Entry point for the JavaToC application.
static void showHelp()
Prints out the help message on usage of this class and command-line arguments.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

convert

public static void convert(java.lang.String classPath,
 java.lang.String className)
 throws java.io.IOException
Given a class name, convert the specified class to C (.c and .h files).

Parameters:
classPath - The classpath to use during the conversion.
className - The name of the class to translate.
Throws:
java.io.IOException - If there is a problem writing a file.

main

public static void main(java.lang.String[] args)
 throws java.io.IOException
Entry point for the JavaToC application. See JavaToC for instructions on usage.

Parameters:
args - Application arguments.
Throws:
java.io.IOException - If there is a problem writing a file.

showHelp

public static void showHelp()
Prints out the help message on usage of this class and command-line arguments.


Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

AltStyle によって変換されたページ (->オリジナル) /