| JapeConstants.java |
1 /*
2 * JapeConstants.java
3 *
4 * Copyright (c) 1998-2005, The University of Sheffield.
5 *
6 * This file is part of GATE (see http://gate.ac.uk/), and is free
7 * software, licenced under the GNU Library General Public License,
8 * Version 2, June 1991 (in the distribution as file licence.html,
9 * and also available at http://gate.ac.uk/gate/licence.html).
10 *
11 * Hamish Cunningham, 09/07/98
12 *
13 * $Id: JapeConstants.java,v 1.13 2005/06/08 16:33:20 valyt Exp $
14 */
15
16
17 package gate.jape;
18
19 import java.io.Serializable;
20
21 /**
22 * Constants interface for the JAPE package.
23 */
24 public interface JapeConstants extends Serializable
25 {
26
27 /** no Kleene operator */
28 public int NO_KLEENE_OP = 0;
29
30 /** Kleene star (*) */
31 public int KLEENE_STAR = 1;
32
33 /** Kleene plus (+) */
34 public int KLEENE_PLUS = 2;
35
36 /** Kleene query (?) */
37 public int KLEENE_QUERY = 3;
38
39 /** No binding on this element */
40 public int NO_BINDING = 1;
41
42 public int MULTI_SPAN_BINDING = 2;
43
44 public int SINGLE_SPAN_BINDING = 3;
45
46 /** Brill-style rule application */
47 public int BRILL_STYLE = 1;
48 /** Appelt-style rule application */
49 public int APPELT_STYLE = 2;
50 /** Appelt-shortest-style rule application */
51 public int FIRST_STYLE = 3;
52 /** The phase finishes on the first match */
53 public int ONCE_STYLE = 4;
54 /** The phase finishes on the first match */
55 public int ALL_STYLE = 5;
56
57
58 /** The default priority of a rule. */
59 public int DEFAULT_PRIORITY = -1;
60
61 /** How far to increase indent when padding toString invocations. */
62 public int INDENT_PADDING = 4;
63
64 } // JapeConstants
65
66
67
68
69
70 // $Log: JapeConstants.java,v $
71 // Revision 1.13 2005/06/08 16:33:20 valyt
72 // Support for ALL matching style
73 //
74 // Revision 1.12 2005/01/11 13:51:36 ian
75 // Updating copyrights to 1998-2005 in preparation for v3.0
76 //
77 // Revision 1.11 2004/07/21 17:10:08 akshay
78 // Changed copyright from 1998-2001 to 1998-2004
79 //
80 // Revision 1.10 2004/03/25 13:01:14 valyt
81 // Imports optimisation throughout the Java sources
82 // (to get rid of annoying warnings in Eclipse)
83 //
84 // Revision 1.9 2002/04/23 10:30:47 valyt
85 //
86 // bugfix: confusion between "once" and "first" application style
87 //
88 // Revision 1.8 2002/04/22 11:45:57 valyt
89 //
90 // ONCE mode added to Jape
91 //
92 // Revision 1.7 2001/05/17 16:02:41 valyt
93 //
94 // Jape grammars now can match using the "first" style
95 //
96 // Tokeniser only matches one character per (Space)Tokens in case of whitespace or control characters
97 //
98 // Revision 1.6 2001/05/17 11:50:41 valyt
99 //
100 // Factory now handles Runtime parameters as well as inittime ones.
101 //
102 // There is a new rule application style Appelt-shortest
103 //
104 // Revision 1.5 2001/04/06 17:09:49 hamish
105 // save of session state via serialisation prototyped
106 //
107 // Revision 1.4 2000/11/08 16:35:02 hamish
108 // formatting
109 //
110 // Revision 1.3 2000/10/26 10:45:30 oana
111 // Modified in the code style
112 //
113 // Revision 1.2 2000/10/10 15:36:35 oana
114 // Changed System.out in Out and System.err in Err;
115 // Added the DEBUG variable seted on false;
116 // Added in the header the licence;
117 //
118 // Revision 1.1 2000/02/23 13:46:06 hamish
119 // added
120 //
121 // Revision 1.1.1.1 1999/02/03 16:23:01 hamish
122 // added gate2
123 //
124 // Revision 1.5 1998/08/12 15:39:36 hamish
125 // added padding toString methods
126 //
127 // Revision 1.4 1998/07/31 13:12:18 mks
128 // done RHS stuff, not tested
129 //
130 // Revision 1.3 1998/07/30 11:05:17 mks
131 // more jape
132 //
133 // Revision 1.2 1998/07/29 11:06:58 hamish
134 // first compiling version
135 //
136 // Revision 1.1.1.1 1998/07/28 16:37:46 hamish
137 // gate2 lives
138