Class Compile


  • public class Compile
    extends Object
    Binding compiler. This version checks the modified and generated classes by loading them and listing method information.
    Author:
    Dennis M. Sosnoski
    • Constructor Summary

      Constructors 
      Constructor Description
      Compile()
      Default constructor.
      Compile​(boolean verbose1, boolean verbose2, boolean load, boolean verify, boolean track, boolean over)
      Constructor with settings specified.
    • Constructor Detail

      • Compile

        public Compile()
        Default constructor. This just initializes all options disabled.
      • Compile

        public Compile​(boolean verbose1,
                       boolean verbose2,
                       boolean load,
                       boolean verify,
                       boolean track,
                       boolean over)
        Constructor with settings specified.
        Parameters:
        verbose1 - report binding details and results
        verbose2 - report second pass binding details
        load - test load modified classes to validate
        verify - use BCEL validation of modified classes
        track - keep tracking information for source of branch generation
        over - override code generation error handling
    • Method Detail

      • setLoad

        public void setLoad​(boolean load)
        Set control flag for test loading generated/modified classes.
        Parameters:
        load - test load generated/modified classes flag
      • setVerbose

        public void setVerbose​(boolean verbose)
        Set control flag for verbose processing reports.
        Parameters:
        verbose - report verbose information in processing bindings flag
      • setVerify

        public void setVerify​(boolean verify)
        Set control flag for verifying generated/modified classes with BCEL.
        Parameters:
        verify - use BCEL verification for generated/modified classes flag
      • setSkipValidate

        public void setSkipValidate​(boolean skip)
        Set control flag for skipping binding validation. This flag is intended only for use while processing the binding model components within JiBX. Otherwise it'd be impossible to correct errors in the binding validation.
        Parameters:
        skip - test load generated/modified classes flag
      • compile

        public void compile​(String[] paths,
                            String[] files)
                     throws org.jibx.runtime.JiBXException
        Compile a set of bindings using supplied classpaths.
        Parameters:
        paths - list of paths for loading classes
        files - list of binding definition files
        Throws:
        org.jibx.runtime.JiBXException - if error in processing the binding definition
      • main

        public static void main​(String[] args)
        Main method for running compiler as application.
        Parameters:
        args - command line arguments