public class ReferenceCollection
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
REFERENCE_COLLECTION_DEBUG |
| Constructor and Description |
|---|
ReferenceCollection(char[][][] qualifiedNameReferences,
char[][] simpleNameReferences,
char[][] rootReferences) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependencies(java.lang.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(java.util.Set<java.lang.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(java.util.Set<java.lang.String> simpleStrings)
Deprecated.
|
static char[][] |
internSimpleNames(java.util.Set<java.lang.String> simpleStrings,
boolean removeWellKnown) |
static char[][] |
internSimpleNames(StringSet simpleStrings,
boolean removeWellKnown) |
public ReferenceCollection(char[][][] qualifiedNameReferences,
char[][] simpleNameReferences,
char[][] rootReferences)
public void addDependencies(java.lang.String[] typeNameDependencies)
includes(char[][][], char[][], char[][]) will report true
if the given names intersect with one of the added type name dependencies.public boolean includes(char[] simpleName)
public boolean includes(char[][] qualifiedName)
public boolean includes(char[][][] qualifiedNames,
char[][] simpleNames)
public boolean includes(char[][][] qualifiedNames,
char[][] simpleNames,
char[][] rootNames)
public boolean insideRoot(char[] rootName)
public static char[][][] internQualifiedNames(java.util.Set<java.lang.String> qualifiedStrings)
public static char[][][] internQualifiedNames(StringSet qualifiedStrings)
public static char[][][] internQualifiedNames(char[][][] qualifiedNames)
public static char[][][] internQualifiedNames(char[][][] qualifiedNames,
boolean keepWellKnown)
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.
public static char[][] internSimpleNames(java.util.Set<java.lang.String> simpleStrings)
public static char[][] internSimpleNames(java.util.Set<java.lang.String> simpleStrings,
boolean removeWellKnown)
public static char[][] internSimpleNames(StringSet simpleStrings, boolean removeWellKnown)
public static char[][] internSimpleNames(char[][] simpleNames,
boolean removeWellKnown)
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.