public abstract class ArrayFields extends Fields
fieldAttrs, objectAttr
Constructor and Description |
---|
ArrayFields() |
Modifier and Type | Method and Description |
---|---|
abstract int |
arrayLength() |
boolean[] |
asBooleanArray() |
byte[] |
asByteArray() |
char[] |
asCharArray() |
char[] |
asCharArray(int offset,
int length) |
double[] |
asDoubleArray() |
int[] |
asFieldSlots() |
float[] |
asFloatArray() |
int[] |
asIntArray() |
long[] |
asLongArray() |
int[] |
asReferenceArray() |
short[] |
asShortArray() |
boolean |
getBooleanValue(int pos) |
byte |
getByteValue(int pos) |
char |
getCharValue(int pos) |
double |
getDoubleValue(int pos) |
float |
getFloatValue(int pos) |
abstract 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 |
getIntValue(int pos) |
long |
getLongValue(int pos) |
int |
getNumberOfFields() |
int |
getReferenceValue(int pos) |
short |
getShortValue(int pos) |
abstract Object |
getValues() |
boolean |
isReferenceArray() |
void |
printElements(PrintStream ps,
int max) |
protected abstract void |
printValue(PrintStream ps,
int idx) |
void |
setBooleanValue(int pos,
boolean newValue) |
void |
setByteValue(int pos,
byte newValue) |
void |
setCharValue(int pos,
char newValue) |
void |
setDoubleValue(int pos,
double newValue) |
void |
setFloatValue(int pos,
float newValue) |
void |
setIntValue(int pos,
int newValue) |
void |
setLongValue(int pos,
long newValue) |
void |
setReferenceValue(int pos,
int newValue) |
void |
setShortValue(int pos,
short newValue) |
addFieldAttr, addObjectAttr, appendTo, clone, cloneFields, compareAttrs, copyAttrs, equals, fieldAttrIterator, fieldAttrIterator, getFieldAttr, getFieldAttr, getNextFieldAttr, getNextObjectAttr, getObjectAttr, getObjectAttr, hasFieldAttr, hasFieldAttr, hasFieldAttr, hash, hashAttrs, hashCode, hasObjectAttr, hasObjectAttr, objectAttrIterator, objectAttrIterator, removeFieldAttr, removeObjectAttr, replaceFieldAttr, replaceObjectAttr, setFieldAttr, setObjectAttr
public abstract int arrayLength()
public abstract int getHeapSize()
Fields
getHeapSize
in class Fields
public boolean isReferenceArray()
isReferenceArray
in class Fields
public int getNumberOfFields()
public void printElements(PrintStream ps, int max)
protected abstract void printValue(PrintStream ps, int idx)
public abstract Object getValues()
public boolean getBooleanValue(int pos)
getBooleanValue
in class Fields
public byte getByteValue(int pos)
getByteValue
in class Fields
public char getCharValue(int pos)
getCharValue
in class Fields
public short getShortValue(int pos)
getShortValue
in class Fields
public int getIntValue(int pos)
getIntValue
in class Fields
public long getLongValue(int pos)
getLongValue
in class Fields
public float getFloatValue(int pos)
getFloatValue
in class Fields
public double getDoubleValue(int pos)
getDoubleValue
in class Fields
public int getReferenceValue(int pos)
getReferenceValue
in class Fields
public void setBooleanValue(int pos, boolean newValue)
setBooleanValue
in class Fields
public void setByteValue(int pos, byte newValue)
setByteValue
in class Fields
public void setCharValue(int pos, char newValue)
setCharValue
in class Fields
public void setShortValue(int pos, short newValue)
setShortValue
in class Fields
public void setIntValue(int pos, int newValue)
setIntValue
in class Fields
public void setFloatValue(int pos, float newValue)
setFloatValue
in class Fields
public void setLongValue(int pos, long newValue)
setLongValue
in class Fields
public void setDoubleValue(int pos, double newValue)
setDoubleValue
in class Fields
public void setReferenceValue(int pos, int newValue)
setReferenceValue
in class Fields
public boolean[] asBooleanArray()
public byte[] asByteArray()
public char[] asCharArray()
public char[] asCharArray(int offset, int length)
public short[] asShortArray()
public int[] asIntArray()
public int[] asReferenceArray()
public long[] asLongArray()
public float[] asFloatArray()
public double[] asDoubleArray()
public int[] asFieldSlots()
asFieldSlots
in class Fields