Class ImplJSources

  • All Implemented Interfaces:
    JSources

    class ImplJSources
    extends java.lang.Object
    implements JSources
    • Method Detail

      • addClassDef

        void addClassDef​(java.lang.String qualifiedName,
                         AbstractJClassDef classDef)
      • hasClass

        boolean hasClass​(java.lang.String qualifiedName)
      • createSourceFile

        public JSourceFile createSourceFile​(java.lang.String packageName,
                                            java.lang.String fileName)
        Description copied from interface: JSources
        Create a source file.
        Specified by:
        createSourceFile in interface JSources
        Parameters:
        packageName - the package name of the source file
        fileName - the source file name (excluding .java suffix)
        Returns:
        the source file
      • createPackageInfoFile

        public JPackageInfoFile createPackageInfoFile​(java.lang.String packageName)
        Description copied from interface: JSources
        Create a package-info.java file.
        Specified by:
        createPackageInfoFile in interface JSources
        Parameters:
        packageName - the package name
        Returns:
        the source file
      • writeSources

        public void writeSources()
                          throws java.io.IOException
        Description copied from interface: JSources
        Write the source files.
        Specified by:
        writeSources in interface JSources
        Throws:
        java.io.IOException - if a write operation fails