|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NumberFactory
This interface can be implemented to create numbers of any object type. By implementing this interface and calling the setNumberFactory() method of the JEP class, the constants in an expression will be created with that class.
| Method Summary | |
|---|---|
Object |
createNumber(boolean value)
Create a number object with given boolean value |
Object |
createNumber(Complex value)
Create a number object with given Complex value |
Object |
createNumber(double value)
Creates a number object with given double value. |
Object |
createNumber(float value)
Create a number object with given float value |
Object |
createNumber(int value)
Create a number object with given int value |
Object |
createNumber(Number value)
Creates a number object from a class implementing Number, May actually just return the class. |
Object |
createNumber(short value)
Create a number object with given short value |
Object |
createNumber(String value)
Creates a number object and initializes its value. |
Object |
getMinusOne()
Return an object representing ZERO-ONE. |
Object |
getOne()
Return an object representing ONE the multiplicative identity. |
Object |
getTwo()
Return an object representing ONE+ONE. |
Object |
getZero()
Return an object representing ZERO the additive identity. |
| Method Detail |
|---|
Object createNumber(String value)
throws ParseException
value - The initial value of the number as a string.
ParseException
Object createNumber(double value)
throws ParseException
ParseException
Object createNumber(int value)
throws ParseException
ParseException
Object createNumber(short value)
throws ParseException
ParseException
Object createNumber(float value)
throws ParseException
ParseException
Object createNumber(boolean value)
throws ParseException
ParseException
Object createNumber(Number value)
throws ParseException
ParseException
Object createNumber(Complex value)
throws ParseException
ParseExceptionObject getZero()
Object getOne()
Object getMinusOne()
Object getTwo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||