Interface Library

All Superinterfaces:
Namespace

public interface Library extends Namespace
Interface for a Library dependency and namespace.
  • Field Details

  • Method Details

    • getType

      default Namespace.Type getType()
      Description copied from interface: Namespace
      Returns the type of namespace, e.g., Library, Class, Namespace, Function.
      Specified by:
      getType in interface Namespace
      Returns:
      the type of namespace, e.g., Library, Class, Namespace, Function
    • getAssociatedProgramPath

      String getAssociatedProgramPath()
      Returns:
      the associated program file pathname within the project which corresponds to this library.
    • setAssociatedProgramPath

      void setAssociatedProgramPath(String programPath) throws InvalidInputException
      Sets the program file pathname within the project which corresponds to this library.

      NOTE: Assigning a path to UNKNOWN Library will be ignored.

      Parameters:
      programPath - a program file pathname or null to clear the stored path.
      Throws:
      InvalidInputException - on invalid programPath is specified
    • getContainingLibrary

      static Library getContainingLibrary(Symbol symbol)
      Get the Library which contains the specified external symbol.
      Parameters:
      symbol - external symbol
      Returns:
      null if symbol is null or not external