public class NamedFields extends Fields
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
values
this is where we store the instance data.
|
fieldAttrs, objectAttr| Constructor and Description |
|---|
NamedFields(int dataSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(IntVector v) |
int[] |
asFieldSlots() |
NamedFields |
clone()
Creates a clone.
|
void |
copyFrom(Fields other) |
boolean |
equals(java.lang.Object o)
Checks for equality.
|
boolean |
getBooleanValue(int index) |
byte |
getByteValue(int index) |
char |
getCharValue(int index) |
double |
getDoubleValue(int index) |
float |
getFloatValue(int index) |
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 index) |
long |
getLongValue(int index) |
int[] |
getRawValues() |
int |
getReferenceValue(int index) |
short |
getShortValue(int index) |
int[] |
getValues() |
void |
hash(HashData hd)
Adds some data to the computation of an hashcode.
|
boolean |
isEqual(Fields o,
int off,
int len,
int otherOff) |
void |
setBooleanValue(int index,
boolean newValue) |
void |
setByteValue(int index,
byte newValue) |
void |
setCharValue(int index,
char newValue) |
void |
setDoubleValue(int index,
double newValue) |
void |
setFloatValue(int index,
float newValue) |
void |
setIntValue(int index,
int newValue) |
void |
setLongValue(int index,
long newValue) |
void |
setReferenceValue(int index,
int newValue) |
void |
setShortValue(int index,
short newValue) |
int |
size()
Size of the fields.
|
java.lang.String |
toString() |
addFieldAttr, addObjectAttr, cloneFields, compareAttrs, copyAttrs, fieldAttrIterator, fieldAttrIterator, getFieldAttr, getFieldAttr, getNextFieldAttr, getNextObjectAttr, getObjectAttr, getObjectAttr, hasFieldAttr, hasFieldAttr, hasFieldAttr, hashAttrs, hashCode, hasObjectAttr, hasObjectAttr, isReferenceArray, objectAttrIterator, objectAttrIterator, removeFieldAttr, removeObjectAttr, replaceFieldAttr, replaceObjectAttr, setFieldAttr, setObjectAttrprotected int[] values
public int[] asFieldSlots()
asFieldSlots in class Fieldspublic int getHeapSize()
getHeapSize in class Fieldspublic int getIntValue(int index)
getIntValue in class Fieldspublic boolean isEqual(Fields o, int off, int len, int otherOff)
public int getReferenceValue(int index)
getReferenceValue in class Fieldspublic long getLongValue(int index)
getLongValue in class Fieldspublic boolean getBooleanValue(int index)
getBooleanValue in class Fieldspublic byte getByteValue(int index)
getByteValue in class Fieldspublic char getCharValue(int index)
getCharValue in class Fieldspublic short getShortValue(int index)
getShortValue in class Fieldspublic int[] getValues()
public void setReferenceValue(int index,
int newValue)
setReferenceValue in class Fieldspublic void setBooleanValue(int index,
boolean newValue)
setBooleanValue in class Fieldspublic void setByteValue(int index,
byte newValue)
setByteValue in class Fieldspublic void setCharValue(int index,
char newValue)
setCharValue in class Fieldspublic void setShortValue(int index,
short newValue)
setShortValue in class Fieldspublic void setFloatValue(int index,
float newValue)
setFloatValue in class Fieldspublic void setIntValue(int index,
int newValue)
setIntValue in class Fieldspublic void setLongValue(int index,
long newValue)
setLongValue in class Fieldspublic void setDoubleValue(int index,
double newValue)
setDoubleValue in class Fieldspublic float getFloatValue(int index)
getFloatValue in class Fieldspublic double getDoubleValue(int index)
getDoubleValue in class Fieldspublic NamedFields clone()
public boolean equals(java.lang.Object o)
public void hash(HashData hd)
public int size()
public java.lang.String toString()
toString in class java.lang.Objectpublic int[] getRawValues()
public void copyFrom(Fields other)