org.jboss.jandex.Indexer .
The IndexWriter operates on standard output streams, and also provides suitable buffering.
Thread-Safety
IndexWriter is not thread-safe and can not be shared between concurrent threads.org.jboss.jandex.Indexer , org.jboss.jandex.Index
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private IndexWriterV2. | |
| 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 static final byte | |
| private static final byte | |
| private static final byte | |
| private static final int | |
| private static final int | |
| private static final int | |
| pack-priv static final int | |
| private static final byte | |
| private static final byte | |
| private static final byte | |
| pack-priv static final int | |
| private NameTable | |
| private HashMap | |
| private static final int | |
| private static final int | |
| private static final byte | |
| private final OutputStream | |
| private static final byte | |
| private TreeMap | |
| private static final byte | |
| private static final byte | |
| private static final byte | |
| private IndexWriterV2. | |
| private IndexWriterV2. | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | IndexWriterV2(OutputStream
a stream to write an index to out, int version)Constructs an IndexWriter using the specified stream |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private String | |
| private void | |
| private String | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private boolean | |
| private boolean | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| pack-priv int | Returns: the number of bytes written to the streamthe index to write to the stream index)Implements abstract org. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void |
| annotationTable | back to summary |
|---|---|
| private IndexWriterV2. | |
| 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_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 | |
| HAS_ENCLOSING_METHOD | back to summary |
|---|---|
| private static final int HAS_ENCLOSING_METHOD | |
| HAS_NESTING | back to summary |
|---|---|
| private static final int HAS_NESTING | |
| MAGIC | back to summary |
|---|---|
| private static final int MAGIC | |
| 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 | |
| MIN_VERSION | back to summary |
|---|---|
| pack-priv static final int MIN_VERSION | |
| names | back to summary |
|---|---|
| private NameTable names | |
| nameTable | back to summary |
|---|---|
| private HashMap<DotName, Integer> nameTable | |
| NO_ENCLOSING_METHOD | back to summary |
|---|---|
| private static final int NO_ENCLOSING_METHOD | |
| NO_NESTING | back to summary |
|---|---|
| private static final int NO_NESTING | |
| NULL_TARGET_TAG | back to summary |
|---|---|
| private static final byte NULL_TARGET_TAG | |
| out | back to summary |
|---|---|
| private final OutputStream out | |
| RECORD_COMPONENT_TAG | back to summary |
|---|---|
| private static final byte RECORD_COMPONENT_TAG | |
| sortedNameTable | back to summary |
|---|---|
| private TreeMap<String, DotName> sortedNameTable | |
| 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 IndexWriterV2. | |
| typeTable | back to summary |
|---|---|
| private IndexWriterV2. | |
| version | back to summary |
|---|---|
| private final int version | |
| IndexWriterV2 | back to summary |
|---|---|
| pack-priv IndexWriterV2(OutputStream out, int version) Constructs an IndexWriter using the specified stream
| |
| addAnnotation | back to summary |
|---|---|
| private void addAnnotation(AnnotationInstance instance) | |
| addAnnotationTarget | back to summary |
|---|---|
| private void addAnnotationTarget(AnnotationTarget target) | |
| addClass | back to summary |
|---|---|
| private void addClass(ClassInfo clazz) | |
| addClassName | back to summary |
|---|---|
| private void addClassName(DotName name) | |
| addClassNames | back to summary |
|---|---|
| private void addClassNames(List<DotName> names) | |
| addEnclosingMethod | back to summary |
|---|---|
| private void addEnclosingMethod(ClassInfo. | |
| addFieldList | back to summary |
|---|---|
| private void addFieldList(FieldInternal[] fields) | |
| addMethodList | back to summary |
|---|---|
| private void addMethodList(MethodInternal[] methods) | |
| addModule | back to summary |
|---|---|
| private void addModule(ModuleInfo module) | |
| addNullableString | back to summary |
|---|---|
| private String addNullableString(String name) | |
| addRecordComponentList | back to summary |
|---|---|
| private void addRecordComponentList(RecordComponentInternal[] recordComponents) | |
| addString | back to summary |
|---|---|
| private String addString(String name) | |
| addType | back to summary |
|---|---|
| private void addType(Type type) | |
| addTypeList | back to summary |
|---|---|
| private void addTypeList(Type[] types) | |
| buildAValueEntries | back to summary |
|---|---|
| private void buildAValueEntries(AnnotationValue value) | |
| buildTables | back to summary |
|---|---|
| private void buildTables(Index index) | |
| deepIntern | back to summary |
|---|---|
| private void deepIntern(FieldInternal field) | |
| deepIntern | back to summary |
|---|---|
| private void deepIntern(MethodInternal method) | |
| deepIntern | back to summary |
|---|---|
| private void deepIntern(RecordComponentInternal recordComponent) | |
| markWritten | back to summary |
|---|---|
| private boolean markWritten(Type[] types) | |
| markWritten | back to summary |
|---|---|
| private boolean markWritten(AnnotationInstance annotation) | |
| positionOf | back to summary |
|---|---|
| private int positionOf(String string) | |
| positionOf | back to summary |
|---|---|
| private int positionOf(byte[] bytes) | |
| positionOf | back to summary |
|---|---|
| private int positionOf(MethodInternal method) | |
| positionOf | back to summary |
|---|---|
| private int positionOf(FieldInternal field) | |
| positionOf | back to summary |
|---|---|
| private int positionOf(RecordComponentInternal recordComponent) | |
| positionOf | back to summary |
|---|---|
| private int positionOf(DotName className) | |
| positionOf | back to summary |
|---|---|
| private int positionOf(Type type) | |
| positionOf | back to summary |
|---|---|
| private int positionOf(Type[] types) | |
| positionOf | back to summary |
|---|---|
| private int positionOf(AnnotationInstance instance) | |
| write | back to summary |
|---|---|
| pack-priv int write(Index index) throws IOException Implements abstract org. Writes the specified index to the associated output stream. This may be called multiple times in order to write multiple indexes.
| |
| writeAnnotation | back to summary |
|---|---|
| private void writeAnnotation(PackedDataOutputStream stream, AnnotationInstance instance) throws IOException | |
| writeAnnotations | back to summary |
|---|---|
| private void writeAnnotations(PackedDataOutputStream stream, AnnotationInstance[] annotations) throws IOException | |
| writeAnnotations | back to summary |
|---|---|
| private void writeAnnotations(PackedDataOutputStream stream, Collection<AnnotationInstance> annotations) throws IOException | |
| writeAnnotationTarget | back to summary |
|---|---|
| private void writeAnnotationTarget(PackedDataOutputStream stream, AnnotationTarget target) throws IOException | |
| writeAnnotationValue | back to summary |
|---|---|
| private void writeAnnotationValue(PackedDataOutputStream stream, AnnotationValue value) throws IOException | |
| writeAnnotationValues | back to summary |
|---|---|
| private void writeAnnotationValues(PackedDataOutputStream stream, Collection<AnnotationValue> values) throws IOException | |
| writeByteTable | back to summary |
|---|---|
| private void writeByteTable(PackedDataOutputStream stream) throws IOException | |
| writeClassEntry | back to summary |
|---|---|
| private void writeClassEntry(PackedDataOutputStream stream, ClassInfo clazz) throws IOException | |
| writeClasses | back to summary |
|---|---|
| private void writeClasses(PackedDataOutputStream stream, Index index) throws IOException | |
| writeDotNames | back to summary |
|---|---|
| private void writeDotNames(PackedDataOutputStream stream, List<DotName> names) throws IOException | |
| writeFieldEntry | back to summary |
|---|---|
| private void writeFieldEntry(PackedDataOutputStream stream, FieldInternal field) throws IOException | |
| writeFieldTable | back to summary |
|---|---|
| private void writeFieldTable(PackedDataOutputStream stream) throws IOException | |
| writeMethodEntry | back to summary |
|---|---|
| private void writeMethodEntry(PackedDataOutputStream stream, MethodInternal method) throws IOException | |
| writeMethodTable | back to summary |
|---|---|
| private void writeMethodTable(PackedDataOutputStream stream) throws IOException | |
| writeModuleEntry | back to summary |
|---|---|
| private void writeModuleEntry(PackedDataOutputStream stream, ModuleInfo module) throws IOException | |
| writeModules | back to summary |
|---|---|
| private void writeModules(PackedDataOutputStream stream, Index index) throws IOException | |
| writeNameTable | back to summary |
|---|---|
| private void writeNameTable(PackedDataOutputStream stream) throws IOException | |
| writeRecordComponentEntry | back to summary |
|---|---|
| private void writeRecordComponentEntry(PackedDataOutputStream stream, RecordComponentInternal recordComponent) throws IOException | |
| writeRecordComponentTable | back to summary |
|---|---|
| private void writeRecordComponentTable(PackedDataOutputStream stream) throws IOException | |
| writeReference | back to summary |
|---|---|
| private void writeReference(PackedDataOutputStream stream, Type type, boolean nullable) throws IOException | |
| writeReferenceOrFull | back to summary |
|---|---|
| private void writeReferenceOrFull(PackedDataOutputStream stream, AnnotationInstance annotation) throws IOException | |
| writeReferenceOrFull | back to summary |
|---|---|
| private void writeReferenceOrFull(PackedDataOutputStream stream, Type[] types) throws IOException | |
| writeStringTable | back to summary |
|---|---|
| private void writeStringTable(PackedDataOutputStream stream) throws IOException | |
| writeTypeEntry | back to summary |
|---|---|
| private void writeTypeEntry(PackedDataOutputStream stream, Type type) throws IOException | |
| writeTypeListEntry | back to summary |
|---|---|
| private void writeTypeListEntry(PackedDataOutputStream stream, Type[] types) throws IOException | |
| writeTypeListTable | back to summary |
|---|---|
| private void writeTypeListTable(PackedDataOutputStream stream) throws IOException | |
| writeTypeTable | back to summary |
|---|---|
| private void writeTypeTable(PackedDataOutputStream stream) throws IOException | |
| writeTypeTarget | back to summary |
|---|---|
| private void writeTypeTarget(PackedDataOutputStream stream, TypeTarget typeTarget) throws IOException | |
| writeTypeTargetFields | back to summary |
|---|---|
| private void writeTypeTargetFields(PackedDataOutputStream stream, byte tag, TypeTarget target) throws IOException | |
| writeUsersSet | back to summary |
|---|---|
| private void writeUsersSet(PackedDataOutputStream stream, DotName user, List<ClassInfo> uses) throws IOException | |
| writeUsersTable | back to summary |
|---|---|
| private void writeUsersTable(PackedDataOutputStream stream, Map<DotName, List<ClassInfo>> users) throws IOException | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| ReferenceEntry | back to summary |
|---|---|
| pack-priv ReferenceEntry(int index) | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private IdentityHashMap | |
| private List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| private IndexWriterV2. | |
| pack-priv List | |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv int |
| counter | back to summary |
|---|---|
| private int counter | |
| references | back to summary |
|---|---|
| private IdentityHashMap<T, IndexWriterV2. | |
| table | back to summary |
|---|---|
| private List<T> table | |
| ReferenceTable | back to summary |
|---|---|
| pack-priv ReferenceTable() | |
| addReference | back to summary |
|---|---|
| pack-priv void addReference(T reference) | |
| getReferenceEntry | back to summary |
|---|---|
| private IndexWriterV2. | |
| list | back to summary |
|---|---|
| pack-priv List | |
| markWritten | back to summary |
|---|---|
| pack-priv boolean markWritten(T reference) | |
| positionOf | back to summary |
|---|---|
| pack-priv int positionOf(T reference) | |
| size | back to summary |
|---|---|
| pack-priv int size() | |