Package org.fusesource.hawtjni.generator
Class HawtJNI
java.lang.Object
org.fusesource.hawtjni.generator.HawtJNI
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate Stringstatic final Stringprivate Stringprivate Fileprivate ProgressMonitor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate <T> T[]private voidcollectMatchingClasses(org.apache.xbean.finder.ClassFinder finder, Class annotation, LinkedHashSet<Class<?>> collector) private static org.apache.commons.cli.Optionsprivate voidintprivate voidfindClasses(ArrayList<JNIClass> jni, ArrayList<JNIClass> structs) voidgenerate()private voidgenerate(JNIGenerator gen, ArrayList<JNIClass> classes, File target) private voidgenerateFromResource(String resource, File target) getName()booleanstatic voidprivate FilenativeFile(String suffix) private voidp()private voidprivate voidprivate voidvoidsetCallbacks(boolean enableCallbacks) voidsetClasspaths(List<String> classpaths) voidsetCopyright(String copyright) voidvoidsetNativeOutput(File nativeOutput) voidsetPackages(List<String> packages) voidsetProgress(ProgressMonitor progress) private String
-
Field Details
-
END_YEAR_TAG
- See Also:
-
progress
-
nativeOutput
-
classpaths
-
packages
-
name
-
copyright
-
callbacks
private boolean callbacks
-
-
Constructor Details
-
HawtJNI
public HawtJNI()
-
-
Method Details
-
main
-
execute
-
getProgress
-
setProgress
-
getNativeOutput
-
setNativeOutput
-
getClasspaths
-
setClasspaths
-
getPackages
-
setPackages
-
getName
-
setName
-
setCopyright
-
isCallbacks
public boolean isCallbacks() -
setCallbacks
public void setCallbacks(boolean enableCallbacks) -
generate
- Throws:
HawtJNI.UsageExceptionIOException
-
findClasses
private void findClasses(ArrayList<JNIClass> jni, ArrayList<JNIClass> structs) throws HawtJNI.UsageException - Throws:
HawtJNI.UsageException
-
createOptions
private static org.apache.commons.cli.Options createOptions() -
displayHelp
private void displayHelp() -
p
private void p() -
p
-
pw
-
collectMatchingClasses
private void collectMatchingClasses(org.apache.xbean.finder.ClassFinder finder, Class annotation, LinkedHashSet<Class<?>> collector) -
progress
-
generate
private void generate(JNIGenerator gen, ArrayList<JNIClass> classes, File target) throws IOException - Throws:
IOException
-
generateFromResource
- Throws:
IOException
-
array
-
url
- Throws:
IOException
-
nativeFile
-
getCopyright
-