|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.copernicus.c.JavaToC
public class JavaToC
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.
| Red (ssb) |
| 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 |
|---|
public static void convert(java.lang.String classPath,
java.lang.String className)
throws java.io.IOException
classPath - The classpath to use during the conversion.className - The name of the class to translate.
java.io.IOException - If there is a problem writing a file.
public static void main(java.lang.String[] args)
throws java.io.IOException
JavaToC for
instructions on usage.
args - Application arguments.
java.io.IOException - If there is a problem writing a file.public static void showHelp()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||