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() |
abstract void |
copyElements(ArrayFields src,
int srcPos,
int dstPos,
int len) |
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 java.lang.Object |
getValues() |
boolean |
isReferenceArray() |
void |
printElements(java.io.PrintStream ps,
int max) |
protected abstract void |
printValue(java.io.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, setObjectAttrpublic abstract int arrayLength()
public abstract int getHeapSize()
FieldsgetHeapSize in class Fieldspublic boolean isReferenceArray()
isReferenceArray in class Fieldspublic int getNumberOfFields()
public abstract void copyElements(ArrayFields src, int srcPos, int dstPos, int len)
public void printElements(java.io.PrintStream ps,
int max)
protected abstract void printValue(java.io.PrintStream ps,
int idx)
public abstract java.lang.Object getValues()
public boolean getBooleanValue(int pos)
getBooleanValue in class Fieldspublic byte getByteValue(int pos)
getByteValue in class Fieldspublic char getCharValue(int pos)
getCharValue in class Fieldspublic short getShortValue(int pos)
getShortValue in class Fieldspublic int getIntValue(int pos)
getIntValue in class Fieldspublic long getLongValue(int pos)
getLongValue in class Fieldspublic float getFloatValue(int pos)
getFloatValue in class Fieldspublic double getDoubleValue(int pos)
getDoubleValue in class Fieldspublic int getReferenceValue(int pos)
getReferenceValue in class Fieldspublic void setBooleanValue(int pos,
boolean newValue)
setBooleanValue in class Fieldspublic void setByteValue(int pos,
byte newValue)
setByteValue in class Fieldspublic void setCharValue(int pos,
char newValue)
setCharValue in class Fieldspublic void setShortValue(int pos,
short newValue)
setShortValue in class Fieldspublic void setIntValue(int pos,
int newValue)
setIntValue in class Fieldspublic void setFloatValue(int pos,
float newValue)
setFloatValue in class Fieldspublic void setLongValue(int pos,
long newValue)
setLongValue in class Fieldspublic void setDoubleValue(int pos,
double newValue)
setDoubleValue in class Fieldspublic void setReferenceValue(int pos,
int newValue)
setReferenceValue in class Fieldspublic 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