public final class StaticElementInfo extends ElementInfo
ATTR_ATTRIBUTE_CHANGED, ATTR_CONSTRUCTED, ATTR_FREEZE_SHARED, ATTR_IMMUTABLE, ATTR_IS_FROZEN, ATTR_IS_MARKED, ATTR_LIVE_BIT, ATTR_MARKED_OR_LIVE_BIT, ATTR_PINDOWN_MASK, ATTR_SHARED, ATTR_TREF_CHANGED, attributes, cachedMemento, ci, fields, fLockInfo, monitor, objRef, referencingThreads, sid
Constructor and Description |
---|
StaticElementInfo() |
StaticElementInfo(int id,
ClassInfo ci,
Fields f,
Monitor m,
ThreadInfo ti,
ElementInfo eiClsObj) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkFieldInfo(FieldInfo fi) |
protected ThreadInfoSet |
createThreadInfoSet(ThreadInfo ti) |
boolean |
equals(Object o)
default implementation is just an identity check
|
int |
getClassObjectRef() |
protected FieldInfo |
getDeclaredFieldInfo(String clsBase,
String fname) |
FieldInfo |
getFieldInfo(int fieldIndex) |
FieldInfo |
getFieldInfo(String fname) |
ElementInfo |
getModifiableInstance() |
int |
getNumberOfFields() |
protected int |
getNumberOfFieldsOrElements() |
protected ElementInfo |
getReferencedElementInfo(FieldInfo fi) |
int |
getStatus()
public boolean isShared() {
// static fields are always thread global
return true;
}
|
boolean |
hasChanged() |
void |
hash(HashData hd) |
boolean |
isObject() |
void |
markUnchanged() |
void |
setClassObjectRef(int r) |
String |
toString() |
addElementAttr, addElementAttrNoClone, addFieldAttr, addObjectAttr, arrayLength, asBooleanArray, asBoxObject, asByteArray, asCharArray, asDoubleArray, asFloatArray, asIntArray, asLongArray, asReferenceArray, asShortArray, asString, block, canLock, checkArray, checkArrayBounds, checkAssertion, checkConsistency, checkIsModifiable, clone, copyElements, deepClone, defreeze, elementAttrIterator, elementAttrIterator, equalsString, fieldAttrIterator, fieldAttrIterator, freeze, freezeSharedness, get1SlotField, get2SlotField, getArrayFields, getArrayType, getBacktrackData, getBlockedOrWaitingThreads, getBlockedThreads, getBooleanElement, getBooleanField, getBooleanField, getByteElement, getByteField, getByteField, getCachedMemento, getCharElement, getCharField, getCharField, getClassInfo, getDeclaredBooleanField, getDeclaredByteField, getDeclaredCharField, getDeclaredDoubleField, getDeclaredFloatField, getDeclaredIntField, getDeclaredLongField, getDeclaredObjectField, getDeclaredReferenceField, getDeclaredShortField, getDoubleElement, getDoubleField, getDoubleField, getElementAttr, getElementAttr, getEnclosingElementInfo, getFieldAttr, getFieldAttr, getFieldLockInfo, getFields, getFieldValueObject, getFloatElement, getFloatField, getFloatField, getHeapSize, getIndex, getInstanceWithUpdatedSharedness, getIntElement, getIntField, getIntField, getLockCount, getLockingThread, getLongElement, getLongField, getLongField, getMonitor, getNextElementAttr, getNextFieldAttr, getNextObjectAttr, getObjectAttr, getObjectAttr, getObjectField, getObjectRef, getPinDownCount, getReferenceElement, getReferenceField, getReferenceField, getShortElement, getShortField, getShortField, getSid, getStringChars, getStringField, getType, getWaitingThreads, hasElementAttr, hasElementAttr, hasFieldAttr, hasFieldAttr, hashCode, hasObjectAttr, hasObjectAttr, hasRefField, hasWaitingThreads, instanceOf, isAlive, isArray, isBoxObject, isCharArray, isConstructed, isFrozen, isImmutable, isLocked, isLockedBy, isLocking, isMarked, isMarkedOrAlive, isNull, isPinnedDown, isReferenceArray, isReferencedBySameThreads, isReferencedByThread, isShared, isSharednessFrozen, isStringObject, lock, lockNotified, notifies, notifies, notifiesAll, numberOfUserThreads, objectAttrIterator, objectAttrIterator, processReleaseActions, recycle, registerLockContender, removeElementAttr, removeElementAttrNoClone, removeFieldAttr, removeObjectAttr, replaceElementAttr, replaceElementAttrNoClone, replaceFieldAttr, replaceObjectAttr, restore, restoreAttributes, restoreFields, restoreMonitor, resumeNonlockedWaiter, set1SlotField, set2SlotField, setAlive, setBooleanElement, setBooleanField, setBooleanField, setByteElement, setByteField, setByteField, setCachedMemento, setCharElement, setCharField, setCharField, setConstructed, setDeclaredIntField, setDeclaredLongField, setDeclaredReferenceField, setDoubleElement, setDoubleField, setDoubleField, setElementAttr, setElementAttrNoClone, setFieldAttr, setFieldLockInfo, setFloatElement, setFloatField, setFloatField, setIntElement, setIntField, setIntField, setLongElement, setLongField, setLongField, setMarked, setObjectAttr, setObjectAttrNoClone, setObjectRef, setReferenceElement, setReferenceField, setReferenceField, setShared, setShortElement, setShortField, setShortField, setSid, setUnmarked, unlock, unregisterLockContender, wait, wait
public StaticElementInfo()
public StaticElementInfo(int id, ClassInfo ci, Fields f, Monitor m, ThreadInfo ti, ElementInfo eiClsObj)
public ElementInfo getModifiableInstance()
getModifiableInstance
in class ElementInfo
protected ThreadInfoSet createThreadInfoSet(ThreadInfo ti)
createThreadInfoSet
in class ElementInfo
public boolean isObject()
isObject
in class ElementInfo
protected int getNumberOfFieldsOrElements()
getNumberOfFieldsOrElements
in class ElementInfo
public boolean hasChanged()
hasChanged
in class ElementInfo
public void markUnchanged()
markUnchanged
in class ElementInfo
public void hash(HashData hd)
hash
in class ElementInfo
public boolean equals(Object o)
Object
equals
in class ElementInfo
public int getStatus()
protected FieldInfo getDeclaredFieldInfo(String clsBase, String fname)
getDeclaredFieldInfo
in class ElementInfo
public FieldInfo getFieldInfo(String fname)
getFieldInfo
in class ElementInfo
protected void checkFieldInfo(FieldInfo fi)
public int getNumberOfFields()
getNumberOfFields
in class ElementInfo
public FieldInfo getFieldInfo(int fieldIndex)
getFieldInfo
in class ElementInfo
public int getClassObjectRef()
public void setClassObjectRef(int r)
public String toString()
toString
in class ElementInfo
protected ElementInfo getReferencedElementInfo(FieldInfo fi)