|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAddress
Represents C/C++ address in CDT. All implementors of this inteface should be immutable, i.e. all methods should not modify objects, they should return new object. Please see Addr32 and Addr64 classes to see how this interface should be extended
Method Summary | |
---|---|
IAddress |
add(java.math.BigInteger offset)
Adds offset to address and returns new address object which is the result |
IAddress |
add(long offset)
Adds offset to address and returns new address object which is the result Note: This method has an offset limit of Long.MAX and Long.MIN, which under some addressing schems may impose an unnesseary limitation, see IAddressa.add(BigInteger offset) to handle larger offsets. |
java.math.BigInteger |
distanceTo(IAddress other)
Returns distance to address. |
boolean |
equals(java.lang.Object addr)
Returns whether this address equals the given object. |
int |
getCharsNum()
Returns amount of symbols in hex representation. |
java.math.BigInteger |
getMaxOffset()
Returns maximal offset possible for address. |
int |
getSize()
Returns the address size in bytes. |
java.math.BigInteger |
getValue()
Returns the value of the address. |
boolean |
isMax()
Return true if address is maximal, i.e. maximal possible |
boolean |
isZero()
Return true if address is zero, i.e. minimal possible |
java.lang.String |
toBinaryAddressString()
Converts address to the binary representation with '0b' prefix and with all leading zeros. |
java.lang.String |
toHexAddressString()
Converts address to the hex representation with '0x' prefix and with all leading zeros. |
java.lang.String |
toString()
Identical to toString(10) |
java.lang.String |
toString(int radix)
Converts address to string as an unsigned number with given radix |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
IAddress add(java.math.BigInteger offset)
offset
- to add
IAddress add(long offset)
IAddressa.add(BigInteger offset)
to handle larger offsets.
offset
- to add
java.math.BigInteger getMaxOffset()
java.math.BigInteger distanceTo(IAddress other)
other
- address which distance is calculated to.
java.math.BigInteger getValue()
boolean equals(java.lang.Object addr)
equals
in class java.lang.Object
obj
- the other object
true
if the addresses are equivalent,
and false
if they are notboolean isZero()
boolean isMax()
java.lang.String toString(int radix)
radix
- to use for strng conversion
java.lang.String toString()
toString
in class java.lang.Object
java.lang.String toHexAddressString()
java.lang.String toBinaryAddressString()
int getCharsNum()
int getSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |