Class HawtJNI

java.lang.Object
org.fusesource.hawtjni.generator.HawtJNI

public class HawtJNI extends Object
  • Field Details

  • Constructor Details

    • HawtJNI

      public HawtJNI()
  • Method Details

    • main

      public static void main(String[] args)
      ////////////////////////////////////////////////////////////////
    • execute

      public int execute(String[] args)
      ////////////////////////////////////////////////////////////////
    • getProgress

      public ProgressMonitor getProgress()
      ////////////////////////////////////////////////////////////////
    • setProgress

      public void setProgress(ProgressMonitor progress)
    • getNativeOutput

      public File getNativeOutput()
    • setNativeOutput

      public void setNativeOutput(File nativeOutput)
    • getClasspaths

      public List<String> getClasspaths()
    • setClasspaths

      public void setClasspaths(List<String> classpaths)
    • getPackages

      public List<String> getPackages()
    • setPackages

      public void setPackages(List<String> packages)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • setCopyright

      public void setCopyright(String copyright)
    • isCallbacks

      public boolean isCallbacks()
    • setCallbacks

      public void setCallbacks(boolean enableCallbacks)
    • generate

      public void generate() throws HawtJNI.UsageException, IOException
      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

      private void p(String s)
    • pw

      private void pw(String message, int indent)
    • collectMatchingClasses

      private void collectMatchingClasses(org.apache.xbean.finder.ClassFinder finder, Class annotation, LinkedHashSet<Class<?>> collector)
    • progress

      private void progress(String message)
    • generate

      private void generate(JNIGenerator gen, ArrayList<JNIClass> classes, File target) throws IOException
      Throws:
      IOException
    • generateFromResource

      private void generateFromResource(String resource, File target) throws IOException
      Throws:
      IOException
    • array

      private <T> T[] array(Class<T> type, ArrayList<T> urls)
    • url

      private String url(File file) throws IOException
      Throws:
      IOException
    • nativeFile

      private File nativeFile(String suffix)
    • getCopyright

      public String getCopyright()