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 boolean
private String
static final String
private String
private File
private ProgressMonitor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate <T> T[]
private void
collectMatchingClasses
(org.apache.xbean.finder.ClassFinder finder, Class annotation, LinkedHashSet<Class<?>> collector) private static org.apache.commons.cli.Options
private void
int
private void
findClasses
(ArrayList<JNIClass> jni, ArrayList<JNIClass> structs) void
generate()
private void
generate
(JNIGenerator gen, ArrayList<JNIClass> classes, File target) private void
generateFromResource
(String resource, File target) getName()
boolean
static void
private File
nativeFile
(String suffix) private void
p()
private void
private void
private void
void
setCallbacks
(boolean enableCallbacks) void
setClasspaths
(List<String> classpaths) void
setCopyright
(String copyright) void
void
setNativeOutput
(File nativeOutput) void
setPackages
(List<String> packages) void
setProgress
(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.UsageException
IOException
-
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
-