Class ReferenceCollection

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.builder.ReferenceCollection
Direct Known Subclasses:
AdditionalTypeCollection

public class ReferenceCollection extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReferenceCollection​(char[][][] qualifiedNameReferences, char[][] simpleNameReferences, char[][] rootReferences)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addDependencies​(String[] typeNameDependencies)
    Add the given fully qualified names to this reference collection.
    boolean
    includes​(char[] simpleName)
     
    boolean
    includes​(char[][] qualifiedName)
     
    boolean
    includes​(char[][][] qualifiedNames, char[][] simpleNames)
    Deprecated. 
    boolean
    includes​(char[][][] qualifiedNames, char[][] simpleNames, char[][] rootNames)
     
    boolean
    insideRoot​(char[] rootName)
     
    static char[][][]
    internQualifiedNames​(char[][][] qualifiedNames)
    Note: this method may change order of the result data, the new array is always sorted.
    static char[][][]
    internQualifiedNames​(char[][][] qualifiedNames, boolean keepWellKnown)
    Use a flyweight cache for the char arrays to avoid duplicated arrays with the same contents.
    static char[][][]
    internQualifiedNames​(Set<String> qualifiedStrings)
     
    static char[][][]
    internQualifiedNames​(StringSet qualifiedStrings)
     
    static char[][]
    internSimpleNames​(char[][] simpleNames, boolean removeWellKnown)
    Use a flyweight cache for the char arrays to avoid duplicated arrays with the same contents.
    static char[][]
    internSimpleNames​(Set<String> simpleStrings)
    Deprecated. 
    static char[][]
    internSimpleNames​(Set<String> simpleStrings, boolean removeWellKnown)
     
    static char[][]
    internSimpleNames​(StringSet simpleStrings, boolean removeWellKnown)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • REFERENCE_COLLECTION_DEBUG

      public static boolean REFERENCE_COLLECTION_DEBUG
  • Constructor Details

    • ReferenceCollection

      public ReferenceCollection(char[][][] qualifiedNameReferences, char[][] simpleNameReferences, char[][] rootReferences)
  • Method Details

    • addDependencies

      public void addDependencies(String[] typeNameDependencies)
      Add the given fully qualified names to this reference collection. Subsequent queries of includes(char[][][], char[][], char[][]) will report true if the given names intersect with one of the added type name dependencies.
      See Also:
      CompilationUnitScope.recordQualifiedReference(char[][])
    • includes

      public boolean includes(char[] simpleName)
    • includes

      public boolean includes(char[][] qualifiedName)
    • includes

      public boolean includes(char[][][] qualifiedNames, char[][] simpleNames)
      Deprecated.
    • includes

      public boolean includes(char[][][] qualifiedNames, char[][] simpleNames, char[][] rootNames)
    • insideRoot

      public boolean insideRoot(char[] rootName)
    • internQualifiedNames

      public static char[][][] internQualifiedNames(Set<String> qualifiedStrings)
    • internQualifiedNames

      public static char[][][] internQualifiedNames(StringSet qualifiedStrings)
    • internQualifiedNames

      public static char[][][] internQualifiedNames(char[][][] qualifiedNames)
      Note: this method may change order of the result data, the new array is always sorted.
    • internQualifiedNames

      public static char[][][] internQualifiedNames(char[][][] qualifiedNames, boolean keepWellKnown)
      Use a flyweight cache for the char arrays to avoid duplicated arrays with the same contents. After calling this method, identity comparison on the array contents of the resulting array will work for arrays with equal content.

      Note: this method may change order of the result data, the new array is always sorted.

      Optionally drops very common qualified names from the array to spare some bytes.

      Returns:
      a new array with interned elements.
    • internSimpleNames

      public static char[][] internSimpleNames(Set<String> simpleStrings)
      Deprecated.
    • internSimpleNames

      public static char[][] internSimpleNames(Set<String> simpleStrings, boolean removeWellKnown)
    • internSimpleNames

      public static char[][] internSimpleNames(StringSet simpleStrings, boolean removeWellKnown)
    • internSimpleNames

      public static char[][] internSimpleNames(char[][] simpleNames, boolean removeWellKnown)
      Use a flyweight cache for the char arrays to avoid duplicated arrays with the same contents. After calling this method, identity comparison on the array contents of the resulting array will work for arrays with equal content.

      Note: this method may change order of the result data, the new array is always sorted.

      Optionally drops very common qualified names from the array to spare some bytes.

      Returns:
      a new array with interned elements.