|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for objects that can generate C source code and header files that conform to the JC C source file standard.
| Method Summary | |
void |
generateC(String className,
ClassfileFinder finder,
OutputStream output)
Generate the C source file for the given class. |
void |
generateH(String className,
ClassfileFinder finder,
OutputStream output)
Generate the C header file for the given class. |
void |
reset()
Reset state. |
| Method Detail |
public void generateH(String className,
ClassfileFinder finder,
OutputStream output)
throws Exception
className - name of the class who's header file we're generatingfinder - a way to acquire Java class filesoutput - where to write the generated header file to
Exception
public void generateC(String className,
ClassfileFinder finder,
OutputStream output)
throws Exception
className - name of the class who's C file we're generatingfinder - a way to acquire Java class filesoutput - where to write the generated C file to
Exceptionpublic void reset()
Currently only one CodeGenerator instance will be in use at a time. Before and after each use, this method is invoked. A good oportunity to free objects that are no longer needed, (re)initialize state, etc.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||