Interface ImportList

All Known Implementing Classes:
ImportListImpl

public interface ImportList
  • Method Details

    • copy

      ImportList copy()
      Return a copy of this ImportList.
    • addImport

      Type addImport(String name)
      Add a fully-qualified type name to the imports. Returns the Type for the name.
    • addImport

      void addImport(Type type)
    • contains

      boolean contains(String name)
      Return whether or not this Type is in the imports.
    • contains

      boolean contains(Type type)
    • lookup

      Type lookup(String className)
      Lookup just the className, without package name.
    • getInOrderList

      List<Pair<String,String>> getInOrderList()
      Return a list of imports as (packageName,className) pairs. The list is sorted lexicographically.