Class AbstractValueNumber
java.lang.Object
com.pnfsoftware.jeb.core.units.code.debug.impl.AbstractValuePrimitive
com.pnfsoftware.jeb.core.units.code.debug.impl.AbstractValueNumber
- All Implemented Interfaces:
ITypedValue
- Direct Known Subclasses:
ValueByte
,ValueDouble
,ValueFloat
,ValueInteger
,ValueLong
,ValueShort
Typed value that has an inner representation as a number.
-
Field Summary
Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Number
getValue()
Get the value.static AbstractValueNumber
parseNumber
(String typeHint, String value) Parse a String and build the best matching type.toString()
Methods inherited from class com.pnfsoftware.jeb.core.units.code.debug.impl.AbstractValuePrimitive
format, parseValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.pnfsoftware.jeb.core.units.code.debug.ITypedValue
getTypeName
-
Constructor Details
-
AbstractValueNumber
public AbstractValueNumber()
-
-
Method Details
-
getValue
Description copied from interface:ITypedValue
Get the value. The object returned depends onITypedValue.getTypeName()
. For raw types, the returned byte array contains the value bytes in the target byte order.- Returns:
-
toString
-
parseNumber
Parse a String and build the best matching type.- Parameters:
typeHint
- one fromITypedValue
value
- value to parse 0x123, 12h, 12, 1.23 are valid values- Returns:
-