Class TypeLocators

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.builder.TypeLocators

public class TypeLocators extends Object
The TypeLocators maintain a mapping of type names (in the form p1/p2/A) to code locations (in the form src1/p1/p2/A.java) to detect duplicate type definitions in different source folders. In the case of multi-release compilation, this might allow for duplicate types if they are in distinct release folders.
  • Method Details

    • addPackages

      protected void addPackages(LinkedHashSet<String> names, Set<String> keySet)
    • getPathForName

      public Stream<String> getPathForName(String typeName)
      This method is used in PDE API tools only!
      Parameters:
      typeName - the type to get all known path for
      Returns:
      a stream of all known path for the given type name
    • equals

      public boolean equals(Object obj)
      Only implemented for StateTest! one usually won't use TypeLocators in a way where equals/hashCode really matters
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Only implemented for StateTest! one usually won't use TypeLocators in a way where equals/hashCode really matters
      Overrides:
      hashCode in class Object