KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > presumo > jms > selector > JmsNumericLiteral


1 /**
2  * This file is part of Presumo.
3  *
4  * Presumo is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * Presumo is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with Presumo; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  *
19  * Copyright 2001 Dan Greff
20  */

21 package com.presumo.jms.selector;
22
23 /**
24  * Class whose methods allow for comparison and math operations
25  * to be performed on doubles and longs.
26  *
27  * @author Dan Greff
28  */

29 abstract class JmsNumericLiteral extends JmsDataType
30 {
31
32     /////////////////////////////////////////////////////////////////////////
33
// Constructor //
34
/////////////////////////////////////////////////////////////////////////
35
protected JmsNumericLiteral(boolean track)
36   {
37     super(false);
38   }
39
40   abstract JmsBooleanLiteral lt(JmsNumericLiteral val);
41
42   abstract JmsBooleanLiteral gt(JmsNumericLiteral val);
43     
44   abstract JmsNumericLiteral mult(JmsNumericLiteral val);
45     
46   abstract JmsNumericLiteral div(JmsNumericLiteral val);
47     
48   abstract JmsNumericLiteral add(JmsNumericLiteral val);
49     
50   abstract JmsNumericLiteral sub(JmsNumericLiteral val);
51     
52   abstract Number JavaDoc getNumber();
53   
54 }
55
Popular Tags