public class ReferenceArrayFields extends ArrayFields
fieldAttrs, objectAttr
Constructor and Description |
---|
ReferenceArrayFields(int length) |
Modifier and Type | Method and Description |
---|---|
void |
appendTo(IntVector v) |
int |
arrayLength() |
int[] |
asReferenceArray() |
ReferenceArrayFields |
clone() |
boolean |
equals(Object o)
default implementation is just an identity check
|
int |
getHeapSize()
give an approximation of the heap size in bytes - we assume fields are word
aligned, hence the number of values*4 should be good.
|
int |
getReferenceValue(int pos) |
Object |
getValues() |
void |
hash(HashData hd) |
boolean |
isReferenceArray() |
protected void |
printValue(PrintStream ps,
int idx) |
void |
setReferenceValue(int pos,
int newValue) |
asBooleanArray, asByteArray, asCharArray, asCharArray, asDoubleArray, asFieldSlots, asFloatArray, asIntArray, asLongArray, asShortArray, getBooleanValue, getByteValue, getCharValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getNumberOfFields, getShortValue, printElements, setBooleanValue, setByteValue, setCharValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue
addFieldAttr, addObjectAttr, cloneFields, compareAttrs, copyAttrs, fieldAttrIterator, fieldAttrIterator, getFieldAttr, getFieldAttr, getNextFieldAttr, getNextObjectAttr, getObjectAttr, getObjectAttr, hasFieldAttr, hasFieldAttr, hasFieldAttr, hashAttrs, hashCode, hasObjectAttr, hasObjectAttr, objectAttrIterator, objectAttrIterator, removeFieldAttr, removeObjectAttr, replaceFieldAttr, replaceObjectAttr, setFieldAttr, setObjectAttr
public int[] asReferenceArray()
asReferenceArray
in class ArrayFields
protected void printValue(PrintStream ps, int idx)
printValue
in class ArrayFields
public Object getValues()
getValues
in class ArrayFields
public int arrayLength()
arrayLength
in class ArrayFields
public boolean isReferenceArray()
isReferenceArray
in class ArrayFields
public int getHeapSize()
Fields
getHeapSize
in class ArrayFields
public ReferenceArrayFields clone()
public boolean equals(Object o)
Object
public void setReferenceValue(int pos, int newValue)
setReferenceValue
in class ArrayFields
public int getReferenceValue(int pos)
getReferenceValue
in class ArrayFields