Class Util

    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • packagePrefix

        public static java.lang.String packagePrefix()
      • getOutputDirectoryFor

        private static java.io.File getOutputDirectoryFor​(Identifier theClass,
                                                          java.io.File rootDir,
                                                          BatchEnvironment env,
                                                          boolean idl)
        Return the directory that should be used for output for a given class.
        Parameters:
        theClass - The fully qualified name of the class.
        rootDir - The directory to use as the root of the package heirarchy. May be null, in which case the current working directory is used as the root.
      • getOutputDirectoryForIDL

        public static java.io.File getOutputDirectoryForIDL​(Identifier theClass,
                                                            java.io.File rootDir,
                                                            BatchEnvironment env)
      • getOutputDirectoryForStub

        public static java.io.File getOutputDirectoryForStub​(Identifier theClass,
                                                             java.io.File rootDir,
                                                             BatchEnvironment env)
      • ensureDirectory

        private static void ensureDirectory​(java.io.File dir,
                                            BatchEnvironment env)
      • correctPackageName

        public static java.lang.String correctPackageName​(java.lang.String p,
                                                          boolean idl,
                                                          boolean standardPackage)
      • isOffendingPackage

        public static boolean isOffendingPackage​(java.lang.String p)
      • hasOffendingPrefix

        public static boolean hasOffendingPrefix​(java.lang.String p)