KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nfunk > jep > type > NumberFactory


1 /*****************************************************************************
2
3 JEP - Java Math Expression Parser 2.3.0
4       October 3 2004
5       (c) Copyright 2004, Nathan Funk and Richard Morris
6       See LICENSE.txt for license information.
7
8 *****************************************************************************/

9
10 package org.nfunk.jep.type;
11
12 /**
13  * This interface can be implemented to create numbers of any object type.
14  * By implementing this interface and calling the setNumberFactory() method of
15  * the JEP class, the constants in an expression will be created with that
16  * class.
17  */

18 public interface NumberFactory {
19     
20     /**
21      * Creates a number object and initializes its value.
22      * @param value The initial value of the number as a string.
23      */

24     public Object JavaDoc createNumber(String JavaDoc value);
25     ///** Creates a number with given double value. */
26
//public Object createNumber(double value);
27
//public Object createNumber(Double value);
28
}
29
Popular Tags