org.jboss.jandex.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 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 byte | |
| private DotName[] | |
| private static final byte | |
| private final PackedDataInputStream | |
| private HashMap | |
| pack-priv static final int | |
| private static final byte | |
| private static final byte | |
| pack-priv static final int | |
| private String[] | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | IndexReaderV1(PackedDataInputStream
a stream which points to a jandex index file input, int version)Constructs a new IndedReader using the passed stream. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| pack-priv Index | Returns: the Index contained in the streamImplements abstract org. |
| private void | readAnnotations(PackedDataInputStream stream, Map<DotName, List<AnnotationInstance>> annotations, ClassInfo clazz)
|
| private AnnotationValue[] | |
| private Index | |
| private void | |
| private MethodInfo | |
| private void | |
| private Type | |
| private void | recordAnnotation(Map<DotName, List<AnnotationInstance>> annotations, DotName annotation, AnnotationInstance instance)
|
| 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 | |
| CLASS_TAG | back to summary |
|---|---|
| private static final byte CLASS_TAG | |
| classTable | back to summary |
|---|---|
| private DotName[] classTable | |
| FIELD_TAG | back to summary |
|---|---|
| private static final byte FIELD_TAG | |
| input | back to summary |
|---|---|
| private final PackedDataInputStream input | |
| masterAnnotations | back to summary |
|---|---|
| private HashMap<DotName, List<AnnotationInstance>> masterAnnotations | |
| 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_TAG | back to summary |
|---|---|
| private static final byte METHOD_TAG | |
| MIN_VERSION | back to summary |
|---|---|
| pack-priv static final int MIN_VERSION | |
| stringTable | back to summary |
|---|---|
| private String[] stringTable | |
| version | back to summary |
|---|---|
| private final int version | |
| IndexReaderV1 | back to summary |
|---|---|
| pack-priv IndexReaderV1(PackedDataInputStream input, int version) Constructs a new IndedReader using the passed stream. The stream is not read from until the read method is called.
| |
| addClassToMap | back to summary |
|---|---|
| private void addClassToMap(HashMap<DotName, List<ClassInfo>> map, DotName name, ClassInfo currentClass) | |
| read | back to summary |
|---|---|
| pack-priv Index read() throws IOException Implements abstract org. Read the index at the associated stream of this reader. This method can be called multiple times if the stream contains multiple index files.
| |
| readAnnotations | back to summary |
|---|---|
| private void readAnnotations(PackedDataInputStream stream, Map<DotName, List<AnnotationInstance>> annotations, ClassInfo clazz) throws IOException | |
| readAnnotationValues | back to summary |
|---|---|
| private AnnotationValue[] readAnnotationValues(PackedDataInputStream stream) throws IOException | |
| readClasses | back to summary |
|---|---|
| private Index readClasses(PackedDataInputStream stream) throws IOException | |
| readClassTable | back to summary |
|---|---|
| private void readClassTable(PackedDataInputStream stream) throws IOException | |
| readMethod | back to summary |
|---|---|
| private MethodInfo readMethod(ClassInfo clazz, PackedDataInputStream stream) throws IOException | |
| readStringTable | back to summary |
|---|---|
| private void readStringTable(PackedDataInputStream stream) throws IOException | |
| readType | back to summary |
|---|---|
| private Type readType(PackedDataInputStream stream) throws IOException | |
| recordAnnotation | back to summary |
|---|---|
| private void recordAnnotation(Map<DotName, List<AnnotationInstance>> annotations, DotName annotation, AnnotationInstance instance) | |