| Modifier and Type | Field and Description |
|---|---|
| private final Constant | arrayType
non-null: type of constant that initializes the array |
| private final int | elemWidth
Width of the init value element |
| private final int | initLength
Length of the init list |
| private final CodeAddress | user
|
| private final ArrayList | values
|
| Access | Constructor and Description |
|---|---|
| public | ArrayData(SourcePosition
non-null; source positionnon-null; address representing the instruction that
uses this instancenon-null; initial values to be filled into an arrayConstructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| protected String | argString()
Implements abstract org. |
| public int | codeSize()
Implements abstract org. |
| protected String | listingString0(boolean
whether to include an explicit notation of
constant pool indices noteIndices)Implements abstract org. listingString, which returns the string
form of this instance suitable for inclusion in a
human-oriented listing dump, not including the instruction
address and without respect for any output formatting.
|
| public DalvInsn | withRegisters(RegisterSpecList
non-null; new register listImplements abstract org. |
| public void | writeTo(AnnotatedOutput
non-null; where to write toImplements abstract org. |
| arrayType | back to summary |
|---|---|
| private final Constant arrayType non-null: type of constant that initializes the array | |
| elemWidth | back to summary |
|---|---|
| private final int elemWidth Width of the init value element | |
| initLength | back to summary |
|---|---|
| private final int initLength Length of the init list | |
| user | back to summary |
|---|---|
| private final CodeAddress user
| |
| values | back to summary |
|---|---|
| private final ArrayList<Constant> values
| |
| ArrayData | back to summary |
|---|---|
| public ArrayData(SourcePosition position, CodeAddress user, ArrayList<Constant> values, Constant arrayType) Constructs an instance. The output address of this instance is initially
unknown (
| |
| argString | back to summary |
|---|---|
| protected String argString() Implements abstract org. Doc from org. Gets the string form for any arguments to this instance. Subclasses must override this. | |
| codeSize | back to summary |
|---|---|
| public int codeSize() Implements abstract org. Doc from org. Gets the size of this instruction, in 16-bit code units.
| |
| listingString0 | back to summary |
|---|---|
| protected String listingString0(boolean noteIndices) Implements abstract org. Doc from org. Helper for | |
| withRegisters | back to summary |
|---|---|
| public DalvInsn withRegisters(RegisterSpecList registers) Implements abstract org. Doc from org. Returns an instance that is just like this one, except that the register list is replaced by the given one, and its address is reset.
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(AnnotatedOutput out) Implements abstract org. Doc from org. Writes this instance to the given output. This method should never annotate the output.
| |