01: /*
02: * Created on 8-Jan-2005
03: *
04: * TODO To change the template for this generated file go to
05: * Window - Preferences - Java - Code Style - Code Templates
06: */
07: package net.refractions.udig.catalog.util;
08:
09: /**
10: * Use the visitor pattern to traverse the AST
11: *
12: * @author David Zwiers, Refractions Research
13: * @since 0.6
14: */
15: public interface AST {
16: public boolean accept(String datum);
17:
18: public int type();
19:
20: public static final int AND = 1;
21: public static final int OR = 2;
22: public static final int NOT = 4;
23: public static final int LITERAL = 0;
24:
25: /** may be null */
26: public AST getLeft();
27:
28: /** may be null */
29: public AST getRight();
30: }
|