Indexer
for a thorough description of how the Index data is produced.
An IndexReader loads the stream passed to it's constructor and applies the appropriate buffering. The Jandex index format is designed for efficient reading and low final memory storage.
Thread-Safety
IndexReader is not thread-safe and can not be shared between concurrent threads. The resulting index, however, is.| Modifier and Type | Field and Description |
|---|---|
| private AnnotationInstance[] | |
| 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 static final byte | |
| private static final byte | |
| private static final byte | |
| private static final byte | |
| private FieldInternal[] | |
| private static final int | |
| private final PackedDataInputStream | |
| pack-priv static final int | |
| private static final byte | |
| private static final byte | |
| private static final byte | |
| private MethodInternal[] | |
| pack-priv static final int | |
| private DotName[] | |
| private static final byte | |
| private static final byte | |
| private RecordComponentInternal[] | |
| private String[] | |
| private static final byte | |
| private static final byte | |
| private static final byte | |
| private Type[][] | |
| private Type[] | |
| private HashMap | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | addToMaster(Map<DotName, List<AnnotationInstance>> masterAnnotations, DotName name, List<AnnotationInstance> annotations)
|
| private List | |
| private int | |
| pack-priv Index | |
| private AnnotationInstance | |
| private AnnotationInstance[] | |
| private AnnotationTarget | |
| private AnnotationValue | |
| private AnnotationValue[] | |
| private void | |
| private ClassInfo | readClassEntry(PackedDataInputStream stream, Map<DotName, List<AnnotationInstance>> masterAnnotations)
|
| private Index | readClasses(PackedDataInputStream stream, int annotationsSize, int implementorsSize, int subinterfacesSize, int subclassesSize)
|
| private FieldInternal[] | |
| private MethodInternal[] | |
| private RecordComponentInternal[] | |
| private List | |
| private ClassInfo. | |
| private FieldInternal | |
| private void | |
| private MethodInternal | |
| private void | |
| private ModuleInfo | |
| private Map | |
| private void | |
| private RecordComponentInternal | |
| private void | |
| private void | |
| private Type | |
| private Type[] | |
| private Type[] | |
| private void | |
| private void | |
| private void | |
| private void |
| annotationTable | back to summary |
|---|---|
| private AnnotationInstance[] annotationTable | |
| AVALUE_ARRAY | back to summary |
|---|---|
| private static final int AVALUE_ARRAY | |
| AVALUE_BOOLEAN | back to summary |
|---|---|
| private static final int AVALUE_BOOLEAN | |
| AVALUE_BYTE | back to summary |
|---|---|
| private static final int AVALUE_BYTE | |
| AVALUE_CHAR | back to summary |
|---|---|
| private static final int AVALUE_CHAR | |
| AVALUE_CLASS | back to summary |
|---|---|
| private static final int AVALUE_CLASS | |
| AVALUE_DOUBLE | back to summary |
|---|---|
| private static final int AVALUE_DOUBLE | |
| AVALUE_ENUM | back to summary |
|---|---|
| private static final int AVALUE_ENUM | |
| AVALUE_FLOAT | back to summary |
|---|---|
| private static final int AVALUE_FLOAT | |
| AVALUE_INT | back to summary |
|---|---|
| private static final int AVALUE_INT | |
| AVALUE_LONG | back to summary |
|---|---|
| private static final int AVALUE_LONG | |
| AVALUE_NESTED | back to summary |
|---|---|
| private static final int AVALUE_NESTED | |
| AVALUE_SHORT | back to summary |
|---|---|
| private static final int AVALUE_SHORT | |
| AVALUE_STRING | back to summary |
|---|---|
| private static final int AVALUE_STRING | |
| byteTable | back to summary |
|---|---|
| private byte[][] byteTable | |
| CLASS_EXTENDS_TYPE_TAG | back to summary |
|---|---|
| private static final byte CLASS_EXTENDS_TYPE_TAG | |
| CLASS_TAG | back to summary |
|---|---|
| private static final byte CLASS_TAG | |
| EMPTY_TYPE_TAG | back to summary |
|---|---|
| private static final byte EMPTY_TYPE_TAG | |
| FIELD_TAG | back to summary |
|---|---|
| private static final byte FIELD_TAG | |
| fieldTable | back to summary |
|---|---|
| private FieldInternal[] fieldTable | |
| HAS_ENCLOSING_METHOD | back to summary |
|---|---|
| private static final int HAS_ENCLOSING_METHOD | |
| input | back to summary |
|---|---|
| private final PackedDataInputStream input | |
| MAX_VERSION | back to summary |
|---|---|
| pack-priv static final int MAX_VERSION | |
| METHOD_PARAMETER_TAG | back to summary |
|---|---|
| private static final byte METHOD_PARAMETER_TAG | |
| METHOD_PARAMETER_TYPE_TAG | back to summary |
|---|---|
| private static final byte METHOD_PARAMETER_TYPE_TAG | |
| METHOD_TAG | back to summary |
|---|---|
| private static final byte METHOD_TAG | |
| methodTable | back to summary |
|---|---|
| private MethodInternal[] methodTable | |
| MIN_VERSION | back to summary |
|---|---|
| pack-priv static final int MIN_VERSION | |
| nameTable | back to summary |
|---|---|
| private DotName[] nameTable | |
| NULL_TARGET_TAG | back to summary |
|---|---|
| private static final byte NULL_TARGET_TAG | |
| RECORD_COMPONENT_TAG | back to summary |
|---|---|
| private static final byte RECORD_COMPONENT_TAG | |
| recordComponentTable | back to summary |
|---|---|
| private RecordComponentInternal[] recordComponentTable | |
| stringTable | back to summary |
|---|---|
| private String[] stringTable | |
| THROWS_TYPE_TAG | back to summary |
|---|---|
| private static final byte THROWS_TYPE_TAG | |
| TYPE_PARAMETER_BOUND_TAG | back to summary |
|---|---|
| private static final byte TYPE_PARAMETER_BOUND_TAG | |
| TYPE_PARAMETER_TAG | back to summary |
|---|---|
| private static final byte TYPE_PARAMETER_TAG | |
| typeListTable | back to summary |
|---|---|
| private Type[][] typeListTable | |
| typeTable | back to summary |
|---|---|
| private Type[] typeTable | |
| users | back to summary |
|---|---|
| private HashMap<DotName, Set<DotName>> users | |
| version | back to summary |
|---|---|
| private final int version | |
| IndexReaderV2 | back to summary |
|---|---|
| pack-priv IndexReaderV2(PackedDataInputStream input, int version) | |
| addClassToMap | back to summary |
|---|---|
| private void addClassToMap(HashMap<DotName, List<ClassInfo>> map, DotName name, ClassInfo currentClass) | |
| addToMaster | back to summary |
|---|---|
| private void addToMaster(Map<DotName, List<AnnotationInstance>> masterAnnotations, DotName name, List<AnnotationInstance> annotations) | |
| convertToList | back to summary |
|---|---|
| private List | |
| findNextNull | back to summary |
|---|---|
| private int findNextNull(Object[] array, int start) | |
| read | back to summary |
|---|---|
| pack-priv Index read() throws IOException Implements abstract org. | |
| readAnnotationEntry | back to summary |
|---|---|
| private AnnotationInstance readAnnotationEntry(PackedDataInputStream stream, AnnotationTarget caller) throws IOException | |
| readAnnotations | back to summary |
|---|---|
| private AnnotationInstance[] readAnnotations(PackedDataInputStream stream, AnnotationTarget target) throws IOException | |
| readAnnotationTarget | back to summary |
|---|---|
| private AnnotationTarget readAnnotationTarget(PackedDataInputStream stream, AnnotationTarget caller) throws IOException | |
| readAnnotationValue | back to summary |
|---|---|
| private AnnotationValue readAnnotationValue(PackedDataInputStream stream) throws IOException | |
| readAnnotationValues | back to summary |
|---|---|
| private AnnotationValue[] readAnnotationValues(PackedDataInputStream stream) throws IOException | |
| readByteTable | back to summary |
|---|---|
| private void readByteTable(PackedDataInputStream stream) throws IOException | |
| readClassEntry | back to summary |
|---|---|
| private ClassInfo readClassEntry(PackedDataInputStream stream, Map<DotName, List<AnnotationInstance>> masterAnnotations) throws IOException | |
| readClasses | back to summary |
|---|---|
| private Index readClasses(PackedDataInputStream stream, int annotationsSize, int implementorsSize, int subinterfacesSize, int subclassesSize) throws IOException | |
| readClassFields | back to summary |
|---|---|
| private FieldInternal[] readClassFields(PackedDataInputStream stream, ClassInfo clazz) throws IOException | |
| readClassMethods | back to summary |
|---|---|
| private MethodInternal[] readClassMethods(PackedDataInputStream stream, ClassInfo clazz) throws IOException | |
| readClassRecordComponents | back to summary |
|---|---|
| private RecordComponentInternal[] readClassRecordComponents(PackedDataInputStream stream, ClassInfo clazz) throws IOException | |
| readDotNames | back to summary |
|---|---|
| private List | |
| readEnclosingMethod | back to summary |
|---|---|
| private ClassInfo. | |
| readFieldEntry | back to summary |
|---|---|
| private FieldInternal readFieldEntry(PackedDataInputStream stream) throws IOException | |
| readFieldTable | back to summary |
|---|---|
| private void readFieldTable(PackedDataInputStream stream) throws IOException | |
| readMethodEntry | back to summary |
|---|---|
| private MethodInternal readMethodEntry(PackedDataInputStream stream) throws IOException | |
| readMethodTable | back to summary |
|---|---|
| private void readMethodTable(PackedDataInputStream stream) throws IOException | |
| readModuleEntry | back to summary |
|---|---|
| private ModuleInfo readModuleEntry(PackedDataInputStream stream, ClassInfo moduleInfoClass) throws IOException | |
| readModules | back to summary |
|---|---|
| private Map | |
| readNameTable | back to summary |
|---|---|
| private void readNameTable(PackedDataInputStream stream) throws IOException | |
| readRecordComponentEntry | back to summary |
|---|---|
| private RecordComponentInternal readRecordComponentEntry(PackedDataInputStream stream) throws IOException | |
| readRecordComponentTable | back to summary |
|---|---|
| private void readRecordComponentTable(PackedDataInputStream stream) throws IOException | |
| readStringTable | back to summary |
|---|---|
| private void readStringTable(PackedDataInputStream stream) throws IOException | |
| readTypeEntry | back to summary |
|---|---|
| private Type readTypeEntry(PackedDataInputStream stream, Map<TypeVariableReference, Integer> references) throws IOException | |
| readTypeListEntry | back to summary |
|---|---|
| private Type[] readTypeListEntry(PackedDataInputStream stream) throws IOException | |
| readTypeListReference | back to summary |
|---|---|
| private Type[] readTypeListReference(PackedDataInputStream stream) throws IOException | |
| readTypeListTable | back to summary |
|---|---|
| private void readTypeListTable(PackedDataInputStream stream) throws IOException | |
| readTypeTable | back to summary |
|---|---|
| private void readTypeTable(PackedDataInputStream stream) throws IOException | |
| readUsers | back to summary |
|---|---|
| private void readUsers(PackedDataInputStream stream, int usersSize) throws IOException | |
| updateAnnotationTargetInfo | back to summary |
|---|---|
| private void updateAnnotationTargetInfo(AnnotationInstance[] annotations, ClassInfo clazz) | |