The Indexer operates on input streams that point to class file data. Input streams do not need to be buffered, as the indexer already does this. There is also no limit to the number of class file streams the indexer can process, other than available memory.
The Indexer attempts to minimize the final memory state of the index, but to do this it must maintain additional in-process state (intern tables etc) until the index is complete.
Numerous optimizations are taken during indexing to attempt to minimize the CPU and I/O cost, however, the Java class file format was not designed for partial searching, which ultimately limits the efficiency of processing them.
Thread-Safety This class is not thread-safe can not be shared between threads. The index it produces however is thread-safe.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private static final int | |
| private HashMap | |
| private Map | |
| private int | |
| private static final byte[] | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private byte[] | |
| private byte[] | |
| private int[] | |
| private int | |
| private ClassInfo | |
| private ArrayList | |
| private static final byte[] | |
| private static final int | |
| private static final byte[] | |
| private static final int | |
| private List | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private Map | |
| private static final byte[] | |
| private static final int | |
| private Map | |
| private static final byte[] | |
| private static final int | |
| private Map | |
| private static final byte[] | |
| private static final int | |
| private IdentityHashMap | |
| private List | |
| private static final byte[] | |
| private static final int | |
| private static final byte[] | |
| private static final int | |
| private static final byte[] | |
| private static final int | |
| private DotName | |
| private List | |
| private Map | |
| private NameTable | |
| private static final byte[] | |
| private static final int | |
| private List | |
| private static final byte[] | |
| private static final int | |
| private static final byte[] | |
| private static final int | |
| private static final byte[] | |
| private static final int | |
| private static final byte[] | |
| private static final int | |
| private static final byte[] | |
| private static final int | |
| private static final byte[] | |
| private static final int | |
| private static final byte[] | |
| private static final int | |
| private GenericSignatureParser | |
| private IdentityHashMap | |
| private List | |
| private Map | |
| private Map | |
| private final Indexer. | |
| private IdentityHashMap | |
| private Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private int | |
| private long | |
| private ArrayDeque | buildClassesQueue(Type type)
Returns a list of |
| private Map | |
| public Index | Returns: the master index for all scanned class streamsCompletes, finalizes, and returns the index after zero or more calls to
|
| private static String | |
| private ParameterizedType | |
| private static Type[] | |
| private DotName | |
| private DotName | |
| private double | |
| private float | |
| private int | |
| private long | |
| private DotName | |
| private Indexer. | |
| private String | |
| private DotName | |
| private String | |
| private byte[] | |
| private Type | |
| private TypeVariable | findTypeParameter(Type[] typeParameters, String identifier)
Finds and returns a type variable with given |
| private static Type[] | |
| private String | |
| private boolean | |
| private boolean | |
| public void | index(InputStream
the class bytecode to index, must not be stream)nullAnalyze and index the class file data present in given input |
| public ClassInfo | |
| public void | indexClass(Class<?>
a previously-loaded class clazz)Analyze and index the class file data of given |
| public ClassInfo | |
| public ClassSummary | Returns: a summary of the just-indexed classthe class bytecode to index, must not be stream)nullAnalyze and index the class file data present in given input |
| private void | |
| private void | |
| private String | |
| private byte[] | |
| private Type | |
| private Type[] | |
| private boolean | |
| private static boolean | |
| private boolean | |
| private boolean | |
| private static boolean | |
| private static int | |
| private static int | |
| private DotName | outermostAnnotableTypeName(Type type)
Returns the name of the outermost type that encloses given |
| private void | |
| private void | |
| private Type[] | |
| private void | |
| private void | |
| private Type | |
| private Type | |
| private void | patchTypeVariableReferences(Type type, Deque<TypeVariable> typeVarStack, AnnotationTarget parametricEncloser)
Patches all type variable references contained in given |
| private int | |
| private AnnotationInstance | |
| private void | |
| private AnnotationValue | |
| private void | |
| private void | |
| private void | |
| private void | |
| private boolean | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private List | |
| private void | |
| private List | |
| private void | |
| private List | |
| private List | |
| private List | |
| private void | |
| private void | |
| private ArrayList | processTargetPath(DataInputStream data, Indexer.
|
| private Indexer. | |
| private void | |
| private Type | |
| private void | |
| private void | |
| private void | |
| private Type | |
| private Type | rebuildNestedType(Type last, ArrayDeque<Indexer.
|
| private void | recordAnnotation(Map<DotName, List<AnnotationInstance>> classAnnotations, DotName annotation, AnnotationInstance instance)
|
| private void | |
| private void | |
| private TypeVariable | resolveTypeParameter(AnnotationTarget target, String identifier)
Resolves a given type variable |
| private Type | |
| private void | |
| private void | |
| private Type | |
| private Type | |
| private static void | |
| private static byte[] | |
| private boolean | |
| private static void | |
| private void | |
| private boolean | |
| private void | |
| private void | |
| private void |