Class ReferenceCollection
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.builder.ReferenceCollection
- Direct Known Subclasses:
AdditionalTypeCollection
-
Field Summary
-
Constructor Summary
ConstructorDescriptionReferenceCollection(char[][][] qualifiedNameReferences, char[][] simpleNameReferences, char[][] rootReferences)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDependencies(String[] typeNameDependencies)
Add the given fully qualified names to this reference collection.boolean
int
hashCode()
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)
-
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
Add the given fully qualified names to this reference collection. Subsequent queries ofincludes(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
-
internQualifiedNames
-
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
Deprecated. -
internSimpleNames
-
internSimpleNames
-
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.
-
hashCode
public int hashCode() -
equals
-