| Modifier and Type | Field and Description |
|---|---|
| private static final int | ALIGNMENT
the required alignment for instances of this class |
| private final Annotations | annotations
|
| private static final int | ENTRY_WRITE_SIZE
the size of an entry int the set: one |
| private final AnnotationItem[] | items
Note The contents have to get sorted by type id before writing. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addContents(DexFile
non-null; the file to populateImplements abstract org. DexFile with items from within this instance.
|
| protected int | compareTo0(OffsettedItem
non-null; instance to compare toOverrides org. |
| public Annotations | |
| public int | |
| public ItemType | itemType()
Implements abstract org. |
| protected void | place0(Section
non-null; the section this instance has been added to>= 0; the offset from the start of the
section where this instance was placedOverrides org. |
| public String | toHuman()
Implements abstract org. |
| private static int | Returns: > 0; the write sizenon-null; the setGets the write size for the given set. |
| protected void | writeTo0(DexFile
non-null; the file to use for referencenon-null; where to write toImplements abstract org. |
| ALIGNMENT | back to summary |
|---|---|
| private static final int ALIGNMENT the required alignment for instances of this class | |
| annotations | back to summary |
|---|---|
| private final Annotations annotations
| |
| ENTRY_WRITE_SIZE | back to summary |
|---|---|
| private static final int ENTRY_WRITE_SIZE the size of an entry int the set: one | |
| items | back to summary |
|---|---|
| private final AnnotationItem[] items
Note The contents have to get sorted by type id before writing. | |
| AnnotationSetItem | back to summary |
|---|---|
| public AnnotationSetItem(Annotations annotations) Constructs an instance.
| |
| addContents | back to summary |
|---|---|
| public void addContents(DexFile file) Implements abstract org. Doc from org. Populates a Note Subclasses must override this to do something appropriate.
| |
| compareTo0 | back to summary |
|---|---|
| protected int compareTo0(OffsettedItem other) Overrides org. Doc from org. Compares this instance to another which is guaranteed to be of the same class. The default implementation of this method is to throw an exception (unsupported operation). If a particular class needs to actually sort, then it should override this method.
| |
| getAnnotations | back to summary |
|---|---|
| public Annotations getAnnotations() Gets the underlying annotations of this instance
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| itemType | back to summary |
|---|---|
| public ItemType itemType() Implements abstract org. Doc from org. Returns the item type for this instance. | |
| place0 | back to summary |
|---|---|
| protected void place0(Section addedTo, int offset) Overrides org. Doc from org. Does additional work required when placing an instance. The default implementation of this method is a no-op. If a particular class needs to do something special, then it should override this method. In particular, if this instance did not know its write size up-front, then this method is responsible for setting it. | |
| toHuman | back to summary |
|---|---|
| public String toHuman() Implements abstract org. Doc from org. Gets a short human-readable string representing this instance. | |
| writeSize | back to summary |
|---|---|
| private static int writeSize(Annotations annotations) Gets the write size for the given set.
| |
| writeTo0 | back to summary |
|---|---|
| protected void writeTo0(DexFile file, AnnotatedOutput out) Implements abstract org. Doc from org. Performs the actual write of the contents of this instance to
the given data section. This is called by
| |