| java.lang.Object com.sun.tools.javah.Gen
All known Subclasses: com.sun.tools.javah.LLNI, com.sun.tools.javah.JNI,
Gen | abstract public class Gen (Code) | | An abstraction for generating support files required by native methods.
Subclasses are for specific native interfaces. At the time of its
original writing, this interface is rich enough to support JNI and the
old 1.0-style native method interface.
author: Sucheta Dambalkar(Revised) |
Constructor Summary | |
public | Gen(RootDoc root) |
classes | protected ClassDoc[] classes(Code) | | |
force | protected boolean force(Code) | | |
Gen | public Gen(RootDoc root)(Code) | | |
defineForStatic | protected String defineForStatic(ClassDoc c, FieldDoc f)(Code) | | |
getIncludes | abstract protected String getIncludes()(Code) | | Override this method to provide a list of #include statements
required by the native interface.
|
run | public void run() throws IOException, ClassNotFoundException(Code) | | After initializing state of an instance, use this method to start
processing.
Buffer size chosen as an approximation from a single sampling of:
expr `du -sk` / `ls *.h | wc -l`
|
setClasses | public void setClasses(ClassDoc[] classes)(Code) | | |
setForce | public void setForce(boolean state)(Code) | | |
wrapWriter | protected PrintWriter wrapWriter(OutputStream o)(Code) | | We explicitly need to write ASCII files because that is what C
compilers understand.
|
|
|