Package javax.tools

Interface JavaFileManager.Location

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      String getName()
      Returns the name of this location.
      default boolean isModuleOrientedLocation()
      Indicates if this location is module-oriented location, and therefore expected to contain classes in a module/package/class hierarchy, as compared to a package-oriented location, which is expected to contain classes in a package/class hierarchy.
      boolean isOutputLocation()
      Determines if this is an output location.
    • Method Detail

      • getName

        String getName()
        Returns the name of this location.
        Returns:
        a name
      • isOutputLocation

        boolean isOutputLocation()
        Determines if this is an output location. An output location is a location that is conventionally used for output.
        API Note:
        An output location may be used to write files in either a package-oriented organization or in a module-oriented organization.
        Returns:
        true if this is an output location, false otherwise
      • isModuleOrientedLocation

        default boolean isModuleOrientedLocation()
        Indicates if this location is module-oriented location, and therefore expected to contain classes in a module/package/class hierarchy, as compared to a package-oriented location, which is expected to contain classes in a package/class hierarchy. The result of this method is undefined if this is an output location.
        Implementation Note:
        This implementation returns true if the name includes the word "MODULE".
        Returns:
        true if this location is expected to contain modules
        Since:
        9