.dex file which consists of a sequence of
Item objects. Each of the items must have the same size in
the output.
| Access | Constructor and Description |
|---|---|
| public | UniformItemSection(String
null-ok; the name of this instance, for annotation
purposesnon-null; file that this instance is part of> 0; alignment requirement for the final output;
must be a power of 2Constructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| public abstract IndexedItem | |
| public final int | getAbsoluteItemOffset(Item
non-null; the item in questionImplements abstract org. |
| protected abstract void | orderItems()
Alters or picks the order for items in this instance if desired,
so that subsequent calls to |
| protected final void | prepare0()
Implements abstract org. prepare.
|
| public final int | writeSize()
Implements abstract org. |
| protected final void | writeTo0(AnnotatedOutput
non-null; where to write toImplements abstract org. |
| UniformItemSection | back to summary |
|---|---|
| public UniformItemSection(String name, DexFile file, int alignment) Constructs an instance. The file offset is initially unknown. | |
| get | back to summary |
|---|---|
| public abstract IndexedItem get(Constant cst) Gets the item corresponding to the given
| |
| getAbsoluteItemOffset | back to summary |
|---|---|
| public final int getAbsoluteItemOffset(Item item) Implements abstract org. Doc from org. Returns the absolute file offset of the given item which must
be contained in this section. This is only valid to call
once this instance has been assigned a file offset (via Note Subclasses must implement this as appropriate for their contents. | |
| orderItems | back to summary |
|---|---|
| protected abstract void orderItems() Alters or picks the order for items in this instance if desired,
so that subsequent calls to | |
| prepare0 | back to summary |
|---|---|
| protected final void prepare0() Implements abstract org. Doc from org. Does the main work of
| |
| writeSize | back to summary |
|---|---|
| public final int writeSize() Implements abstract org. Doc from org. Gets the size of this instance when output, in bytes.
| |
| writeTo0 | back to summary |
|---|---|
| protected final void writeTo0(AnnotatedOutput out) Implements abstract org. Doc from org. Writes this instance to the given raw data object. This gets
called by
| |