java.lang.Object | |
↳ | com.pnfsoftware.jeb.util.format.NumberFormatter |
A number formatter, supporting formatting of immediates of variable sizes using different bases and other properties (e.g., signedness).
Notes:
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | NumberFormatter.Base | Rendering base. | |||||||||
enum | NumberFormatter.NotationType | Notation type for hexadecimal bases. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NumberFormatter() | |||||||||||
NumberFormatter(NumberFormatter defaultNumberFormatter) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | format(int bitsize, long rawValue, NumberFormatter.Base base, boolean treatAsSignedNumber) | ||||||||||
String |
format(int bitsize, long rawValue)
Format a number using the formatter's current settings.
| ||||||||||
NumberFormatter.Base | getBase() | ||||||||||
NumberFormatter.NotationType | getNotationType() | ||||||||||
boolean | isSignedNumber() | ||||||||||
NumberFormatter.Base | rotateBase() | ||||||||||
void | setBase(NumberFormatter.Base base) | ||||||||||
void | setNotationType(NumberFormatter.NotationType notationType) | ||||||||||
void | setSignedNumber(boolean signedNumber) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Format a number using the formatter's current settings.