Class AbstractValueComposite
java.lang.Object
com.pnfsoftware.jeb.core.units.code.debug.impl.AbstractValueComposite
- All Implemented Interfaces:
ITypedValue
- Direct Known Subclasses:
ValueArray,ValueObject
A composite value, typically, an array or an object.
-
Field Summary
FieldsFields inherited from interface com.pnfsoftware.jeb.core.units.code.debug.ITypedValue
TYPE_ARRAY, TYPE_BOOLEAN, TYPE_BYTE, TYPE_CHARACTER, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INTEGER, TYPE_LONG, TYPE_OBJECT, TYPE_RAW, TYPE_SHORT, TYPE_STRING -
Constructor Summary
ConstructorsConstructorDescriptionAbstractValueComposite(long objectId, long refTypeId) Create a composite value. -
Method Summary
Modifier and TypeMethodDescriptionformat()Format the value to a readable string block.longRetrieve the object id.longRetrieve the reference type id.abstract List<? extends IDebuggerVariable> getValue()Get the value.booleanDetermine whether this composite value has children.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pnfsoftware.jeb.core.units.code.debug.ITypedValue
getTypeName
-
Field Details
-
refTypeId
protected long refTypeIdReference type id.
-
-
Constructor Details
-
AbstractValueComposite
public AbstractValueComposite(long objectId, long refTypeId) Create a composite value.- Parameters:
objectId- object idrefTypeId- reference type id
-
-
Method Details
-
getObjectId
public long getObjectId()Retrieve the object id.- Returns:
- object id
-
getRefTypeId
public long getRefTypeId()Retrieve the reference type id.- Returns:
- reference type id
-
format
Description copied from interface:ITypedValueFormat the value to a readable string block.- Specified by:
formatin interfaceITypedValue- Returns:
- formatted value
-
getValue
Description copied from interface:ITypedValueGet the value. The object returned depends onITypedValue.getTypeName(). For raw types, the returned byte array contains the value bytes in the target byte order.- Specified by:
getValuein interfaceITypedValue- Returns:
- value object
-
hasChildren
public boolean hasChildren()Determine whether this composite value has children.- Returns:
- true if child variables are available
-