<class name="xxx">
elements within the task.
When this task executes, it will generate C header and source files that are needed to implement native methods.
Modifier and Type | Class and Description |
---|---|
public class | Javah.ClassArgument
A class corresponding the the nested "class" element. |
private static enum |
Modifier and Type | Field and Description |
---|---|
private Path | |
private List | |
private Path | |
private String | |
private File | |
private FacadeTaskHelper | |
private Vector | |
private boolean | |
private JavahAdapter | |
private boolean | |
private File | |
private boolean | |
private boolean |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | |
public void | |
public ImplementationSpecificArgument | Returns: a ImplementationSpecificArgument to be configured.Adds an implementation specific command-line argument. |
public Path | |
public Javah. | |
public Path | |
public Path | Returns: PathThe classpath to use when loading the javah implementation if it is not a built-in one. |
public void | |
public Path | |
public String[] | |
public Path | |
public String[] | Returns: the arguments.Returns the (implementation specific) settings given as nested arg elements. |
public File | |
public boolean | |
public boolean | |
public File | |
public boolean | Returns: the stubs attribute.Whether C declarations from the Java object file should be generated. |
public boolean | |
public void | logAndAddFiles(Commandline
the command line. cmd)Logs the compilation parameters, adds the files to compile and logs the "niceSourceList" |
protected void | logAndAddFilesToCompile(Commandline
the command line to add parameters to. cmd)Logs the compilation parameters, adds the files to compile and logs the "niceSourceList" |
public void | |
public void | setBootClasspathRef(Reference
a reference to a classpath r)To the bootstrap path, this adds a reference to a classpath defined elsewhere. |
public void | |
public void | |
public void | setClasspathRef(Reference
a reference to a classpath. r)Adds a reference to a classpath defined elsewhere. |
public void | setDestdir(File
the destination directory. destDir)Set the destination directory into which the Java source files should be compiled. |
public void | setForce(boolean
the value to use. force)If true, output files should always be written (JDK1.2 only). |
public void | setImplementation(String
the name of the implementation. impl)Choose the implementation for this particular task. |
public void | setOld(boolean
if true use old 1.0 style header files. old)If true, specifies that old JDK1.0-style header files should be generated. |
public void | setOutputFile(File
the output file. outputFile)Concatenates the resulting header or source files for all the classes listed into this file. |
public void | setStubs(boolean
if true, generated C declarations. stubs)If true, generate C declarations from the Java object file (used with old). |
public void | setVerbose(boolean
if true, do verbose printing. verbose)If true, causes Javah to print a message concerning the status of the generated files. |
bootclasspath | back to summary |
---|---|
private Path bootclasspath |
classes | back to summary |
---|---|
private List<Javah. |
classpath | back to summary |
---|---|
private Path classpath |
cls | back to summary |
---|---|
private String cls |
destDir | back to summary |
---|---|
private File destDir |
facade | back to summary |
---|---|
private FacadeTaskHelper facade |
files | back to summary |
---|---|
private Vector<FileSet> files |
force | back to summary |
---|---|
private boolean force |
nestedAdapter | back to summary |
---|---|
private JavahAdapter nestedAdapter |
old | back to summary |
---|---|
private boolean old |
outputFile | back to summary |
---|---|
private File outputFile |
stubs | back to summary |
---|---|
private boolean stubs |
verbose | back to summary |
---|---|
private boolean verbose |
Javah | back to summary |
---|---|
public Javah() No arg constructor. |
add | back to summary |
---|---|
public void add(JavahAdapter adapter) Set the adapter explicitly.
|
addFileSet | back to summary |
---|---|
public void addFileSet(FileSet fs) Add a fileset.
|
createArg | back to summary |
---|---|
public ImplementationSpecificArgument createArg() Adds an implementation specific command-line argument.
|
createBootclasspath | back to summary |
---|---|
public Path createBootclasspath() Adds path to bootstrap class files.
|
createClass | back to summary |
---|---|
public Javah. Adds class to process.
|
createClasspath | back to summary |
---|---|
public Path createClasspath() Path to use for classpath.
|
createImplementationClasspath | back to summary |
---|---|
public Path createImplementationClasspath() The classpath to use when loading the javah implementation if it is not a built-in one.
|
execute | back to summary |
---|---|
public void execute() throws BuildException Overrides org. Execute the task
|
getBootclasspath | back to summary |
---|---|
public Path getBootclasspath() The bootclasspath to use.
|
getClasses | back to summary |
---|---|
public String[] getClasses() Names of the classes to process.
|
getClasspath | back to summary |
---|---|
public Path getClasspath() The classpath to use.
|
getCurrentArgs | back to summary |
---|---|
public String[] getCurrentArgs() Returns the (implementation specific) settings given as nested arg elements.
|
getDestdir | back to summary |
---|---|
public File getDestdir() The destination directory, if any.
|
getForce | back to summary |
---|---|
public boolean getForce() Whether output files should always be written.
|
getOld | back to summary |
---|---|
public boolean getOld() Whether old JDK1.0-style header files should be generated.
|
getOutputfile | back to summary |
---|---|
public File getOutputfile() The destination file, if any.
|
getStubs | back to summary |
---|---|
public boolean getStubs() Whether C declarations from the Java object file should be generated.
|
getVerbose | back to summary |
---|---|
public boolean getVerbose() Whether verbose output should get generated.
|
logAndAddFiles | back to summary |
---|---|
public void logAndAddFiles(Commandline cmd) Logs the compilation parameters, adds the files to compile and logs the "niceSourceList"
|
logAndAddFilesToCompile | back to summary |
---|---|
protected void logAndAddFilesToCompile(Commandline cmd) Logs the compilation parameters, adds the files to compile and logs the "niceSourceList"
|
setBootclasspath | back to summary |
---|---|
public void setBootclasspath(Path src) location of bootstrap class files.
|
setBootClasspathRef | back to summary |
---|---|
public void setBootClasspathRef(Reference r) To the bootstrap path, this adds a reference to a classpath defined elsewhere.
|
setClass | back to summary |
---|---|
public void setClass(String cls) the fully-qualified name of the class (or classes, separated by commas).
|
setClasspath | back to summary |
---|---|
public void setClasspath(Path src) the classpath to use.
|
setClasspathRef | back to summary |
---|---|
public void setClasspathRef(Reference r) Adds a reference to a classpath defined elsewhere.
|
setDestdir | back to summary |
---|---|
public void setDestdir(File destDir) Set the destination directory into which the Java source files should be compiled.
|
setForce | back to summary |
---|---|
public void setForce(boolean force) If true, output files should always be written (JDK1.2 only).
|
setImplementation | back to summary |
---|---|
public void setImplementation(String impl) Choose the implementation for this particular task.
|
setOld | back to summary |
---|---|
public void setOld(boolean old) If true, specifies that old JDK1.0-style header files should be generated. (otherwise output file contain JNI-style native method function prototypes) (JDK1.2 only).
|
setOutputFile | back to summary |
---|---|
public void setOutputFile(File outputFile) Concatenates the resulting header or source files for all the classes listed into this file.
|
setStubs | back to summary |
---|---|
public void setStubs(boolean stubs) If true, generate C declarations from the Java object file (used with old).
|
setVerbose | back to summary |
---|---|
public void setVerbose(boolean verbose) If true, causes Javah to print a message concerning the status of the generated files.
|
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public String | |
public void |
name | back to summary |
---|---|
private String name |
ClassArgument | back to summary |
---|---|
public ClassArgument() |
getName | back to summary |
---|---|
public String getName() Get the name attribute.
|
setName | back to summary |
---|---|
public void setName(String name) Set the name attribute.
|
Modifier and Type | Field and Description |
---|---|
public static final Javah. | |
public static final Javah. | |
public static final Javah. |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public static Javah. | |
public static Javah. |
classes | back to summary |
---|---|
public static final Javah. |
cls | back to summary |
---|---|
public static final Javah. |
files | back to summary |
---|---|
public static final Javah. |
Settings | back to summary |
---|---|
private Settings() |
valueOf | back to summary |
---|---|
public static Javah. |
values | back to summary |
---|---|
public static Javah. |