Interface Plugin.Engine.Source.Origin

    • Field Detail

      • NO_MANIFEST

        @AlwaysNull
        static final java.util.jar.Manifest NO_MANIFEST
        Indicates that no manifest exists.
    • Method Detail

      • getManifest

        @MaybeNull
        java.util.jar.Manifest getManifest()
                                    throws java.io.IOException
        Returns the manifest file of the source location or null if no manifest exists.
        Returns:
        This source's manifest or null.
        Throws:
        java.io.IOException - If an I/O error occurs.
      • toClassFileLocator

        ClassFileLocator toClassFileLocator​(@MaybeNull
                                            ClassFileVersion classFileVersion)
                                     throws java.io.IOException
        Creates a class file locator for the represented source. If the class file locator needs to be closed, it is the responsibility of this origin to close the locator or its underlying resources.
        Parameters:
        classFileVersion - The class file version to consider for multi-release jars or null if multi-release jars should not be considered.
        Returns:
        A class file locator for locating class files of this instance.
        Throws:
        java.io.IOException - If an I/O exception occurs.