mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Comment change only. Be explicit that the createAddress() methods are expected to throw NumberFormatException on bad input.
This commit is contained in:
parent
d96899a098
commit
4874e4d321
1 changed files with 13 additions and 1 deletions
|
@ -35,12 +35,17 @@ public interface IAddressFactory
|
||||||
/**
|
/**
|
||||||
* Creates address from string representation.
|
* Creates address from string representation.
|
||||||
*
|
*
|
||||||
* 1. This method should be able to create address from hex
|
* 1. Method should be able to create address from hex
|
||||||
* address string (string produced with
|
* address string (string produced with
|
||||||
* IAddress.toHexAddressString() method).
|
* IAddress.toHexAddressString() method).
|
||||||
* 2. Method should be case insensetive
|
* 2. Method should be case insensetive
|
||||||
* 3. Method should be able to create address from decimal address
|
* 3. Method should be able to create address from decimal address
|
||||||
* representation
|
* representation
|
||||||
|
* 4. Method should throw NumberFormatException if the given string
|
||||||
|
* cannot be decoded.
|
||||||
|
* 5. Method should not attempt to evaluate string as expression (i.e.,
|
||||||
|
* "0x1000 + 5" should not result in an IAddress for 0x1005.) Input
|
||||||
|
* must be a straightforward, absolute value.
|
||||||
*
|
*
|
||||||
* Please see Addr32Factory.createAddress() for reference implementation.
|
* Please see Addr32Factory.createAddress() for reference implementation.
|
||||||
*
|
*
|
||||||
|
@ -56,6 +61,13 @@ public interface IAddressFactory
|
||||||
*
|
*
|
||||||
* Method should be case insensetive
|
* Method should be case insensetive
|
||||||
*
|
*
|
||||||
|
* Method should throw NumberFormatException if the given string
|
||||||
|
* cannot be decoded.
|
||||||
|
*
|
||||||
|
* Method should not attempt to evaluate string as expression (i.e.,
|
||||||
|
* "1000 + 5" should not result in an IAddress for 1005.) Input
|
||||||
|
* must be a straightforward, absolute value.
|
||||||
|
*
|
||||||
* @param addr
|
* @param addr
|
||||||
* @param radix
|
* @param radix
|
||||||
* @return
|
* @return
|
||||||
|
|
Loading…
Add table
Reference in a new issue