Class Source

  • All Implemented Interfaces:
    RmicConfig

    public class Source
    extends java.lang.Object
    implements RmicConfig
    Represents a group of class files to be processed by rmic, along with the desired options.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Set excludes
      A list of exclusions when searching for classes to compile.
      private java.lang.Boolean idl
      Create IDL.
      private java.lang.Boolean iiop
      Create stubs for IIOP.
      private static java.lang.String INCLUDE_ALL  
      protected java.util.Set includes
      A list of inclusions when searching for classes to compile.
      private java.lang.Boolean keep
      Do not delete intermediate generated source files.
      private AbstractRmiMojo mojo  
      private java.lang.Boolean noLocalStubs
      Do not create stubs optimized for same process.
      private java.lang.Boolean noValueMethods
      Do not generate methods for valuetypes.
      private java.lang.Boolean nowarn
      Turn off rmic warnings.
      private java.lang.Boolean poa
      Enable poa generation.
      private java.lang.Boolean verbose
      Enable verbose output.
      private java.lang.String version
      The version of the rmi protocol to which the stubs should be compiled.
    • Constructor Summary

      Constructors 
      Constructor Description
      Source()  
    • Field Detail

      • includes

        protected java.util.Set includes
        A list of inclusions when searching for classes to compile.
      • excludes

        protected java.util.Set excludes
        A list of exclusions when searching for classes to compile.
      • version

        private java.lang.String version
        The version of the rmi protocol to which the stubs should be compiled. Valid values include 1.1, 1.2, compat. See the rmic documentation for more information. If nothing is specified the underlying rmi compiler will choose the default value. For example, in sun jdk 1.5 the default is 1.2.
      • iiop

        private java.lang.Boolean iiop
        Create stubs for IIOP.
      • noLocalStubs

        private java.lang.Boolean noLocalStubs
        Do not create stubs optimized for same process.
      • idl

        private java.lang.Boolean idl
        Create IDL.
      • noValueMethods

        private java.lang.Boolean noValueMethods
        Do not generate methods for valuetypes.
      • keep

        private java.lang.Boolean keep
        Do not delete intermediate generated source files.
      • nowarn

        private java.lang.Boolean nowarn
        Turn off rmic warnings.
      • poa

        private java.lang.Boolean poa
        Enable poa generation.
      • verbose

        private java.lang.Boolean verbose
        Enable verbose output.
    • Constructor Detail

      • Source

        public Source()
    • Method Detail

      • isIiop

        public boolean isIiop()
        Specified by:
        isIiop in interface RmicConfig
        Returns:
        Whether iiop stubs should be generated
      • isNoLocalStubs

        public boolean isNoLocalStubs()
        Description copied from interface: RmicConfig
        Do not create stubs optimized for same process.
        Specified by:
        isNoLocalStubs in interface RmicConfig
        Returns:
        true or false
      • isIdl

        public boolean isIdl()
        Specified by:
        isIdl in interface RmicConfig
        Returns:
        Create IDL
      • isNoValueMethods

        public boolean isNoValueMethods()
        Description copied from interface: RmicConfig
        Do not create methods for valuetypes.
        Specified by:
        isNoValueMethods in interface RmicConfig
        Returns:
        true or false
      • isKeep

        public boolean isKeep()
        Description copied from interface: RmicConfig
        Keep intermediate files
        Specified by:
        isKeep in interface RmicConfig
        Returns:
        true or false
      • isNowarn

        public boolean isNowarn()
        Description copied from interface: RmicConfig
        Turn off warnings
        Specified by:
        isNowarn in interface RmicConfig
        Returns:
        true or false
      • isPoa

        public boolean isPoa()
        Specified by:
        isPoa in interface RmicConfig
        Returns:
        Whether skeletons should be poa-compatible should be generated
      • isVerbose

        public boolean isVerbose()
        Description copied from interface: RmicConfig
        Output messages about compilation
        Specified by:
        isVerbose in interface RmicConfig
        Returns:
        true or false
      • getVersion

        public java.lang.String getVersion()
        Specified by:
        getVersion in interface RmicConfig
        Returns:
        The version of the compiler to use
      • isSetOrDefault

        private static boolean isSetOrDefault​(java.lang.Boolean field,
                                              boolean defaultValue)
      • getIncludes

        java.util.Set getIncludes()
      • getExcludes

        java.util.Set getExcludes()
      • createOneElementSet

        private static java.util.HashSet createOneElementSet​(java.lang.Object element)
      • isEmpty

        private static boolean isEmpty​(java.util.Collection collection)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • appendIfTrue

        private void appendIfTrue​(java.lang.StringBuffer sb,
                                  boolean condition,
                                  java.lang.String option)