KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > trading > constraint > ExprNode


1
2 // Copyright (C) 1998-1999
3
// Object Oriented Concepts, Inc.
4

5 // **********************************************************************
6
//
7
// Copyright (c) 1997
8
// Mark Spruiell (mark@intellisoft.com)
9
//
10
// See the COPYING file for more information
11
//
12
// **********************************************************************
13

14 package org.jacorb.trading.constraint;
15
16 import java.io.*;
17
18
19 /** Base class for nodes */
20 public abstract class ExprNode
21 {
22   private ValueType m_type;
23
24
25   public ValueType getType()
26   {
27     return m_type;
28   }
29
30
31   public abstract void print(PrintStream ostr);
32
33
34   public abstract Value evaluate(PropertySource source)
35     throws MissingPropertyException;
36
37
38   protected void setType(ValueType type)
39   {
40     m_type = type;
41   }
42 }
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Popular Tags