com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.ICConstantFactory |
Builder for C AST constants.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract ICConstantInteger<?> |
createChar(int ch)
Create a character.
| ||||||||||
abstract ICConstantFloat32 |
createFloat32(float v)
Create a single-precision 32-bit IEEE-754 floating point immediate.
| ||||||||||
abstract ICConstantFloat64 |
createFloat64(double v)
Create a double-precision 64-bit IEEE-754 floating point immediate.
| ||||||||||
abstract ICConstantInteger<?> |
createInt(BigInteger v, int bitsize)
Create an integer.
| ||||||||||
abstract ICConstantInteger32 |
createInt32(int v)
Create a regular integer fitting on 32 bits.
| ||||||||||
abstract ICConstantInteger64 |
createInt64(long v)
Create a long integer fitting on 64 bits.
| ||||||||||
abstract ICConstantIntegerLarge |
createIntLarge(BigInteger v, int bitsize)
Create a arbitrary large integer.
| ||||||||||
abstract ICConstantPointer |
createPointer(long address)
Create a pointer immediate.
| ||||||||||
abstract ICConstantString |
createString(String value, long id, Integer index)
Create a string constant.
| ||||||||||
abstract ICConstantString |
createString(String value, long id)
Create a string constant.
| ||||||||||
abstract ICConstantInteger32 |
createUnsignedInt32(int v)
Create an unsigned integer fitting on 32 bits.
| ||||||||||
abstract ICConstantInteger64 |
createUnsignedInt64(long v)
Create an unsigned long integer fitting on 64 bits.
| ||||||||||
abstract ICConstantPointer |
getNull()
Retrieve the constant representing a null reference.
|
Create a single-precision 32-bit IEEE-754 floating point immediate.
Create a double-precision 64-bit IEEE-754 floating point immediate.
Create a regular integer fitting on 32 bits.
Create a arbitrary large integer.
Create a pointer immediate. The address space is limited to 64-bit. To retrieve the NULL
pointer, use getNull()
.
Create a string constant.
index | optional string item index; in practice, the index corresponds to
getIndex() ; if provided, the C renderer may be able to
fetch additional information about the string to be rendered |
---|
Create an unsigned integer fitting on 32 bits.
Create an unsigned long integer fitting on 64 bits.