001 /*
002 * JapeConstants.java
003 *
004 * Copyright (c) 1995-2010, The University of Sheffield. See the file
005 * COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
006 *
007 * This file is part of GATE (see http://gate.ac.uk/), and is free
008 * software, licenced under the GNU Library General Public License,
009 * Version 2, June 1991 (in the distribution as file licence.html,
010 * and also available at http://gate.ac.uk/gate/licence.html).
011 *
012 * Hamish Cunningham, 09/07/98
013 *
014 * $Id: JapeConstants.java 12006 2009-12-01 17:24:28Z thomas_heitz $
015 */
016
017
018 package gate.jape;
019
020 import java.io.Serializable;
021
022 /**
023 * Constants interface for the JAPE package.
024 */
025 public interface JapeConstants extends Serializable
026 {
027
028 /** no Kleene operator */
029 public int NO_KLEENE_OP = 0;
030
031 /** Kleene star (*) */
032 public int KLEENE_STAR = 1;
033
034 /** Kleene plus (+) */
035 public int KLEENE_PLUS = 2;
036
037 /** Kleene query (?) */
038 public int KLEENE_QUERY = 3;
039
040 /** No binding on this element */
041 public int NO_BINDING = 1;
042
043 public int MULTI_SPAN_BINDING = 2;
044
045 public int SINGLE_SPAN_BINDING = 3;
046
047 /** Brill-style rule application */
048 public int BRILL_STYLE = 1;
049 /** Appelt-style rule application */
050 public int APPELT_STYLE = 2;
051 /** Appelt-shortest-style rule application */
052 public int FIRST_STYLE = 3;
053 /** The phase finishes on the first match */
054 public int ONCE_STYLE = 4;
055 /** The phase finishes on the first match */
056 public int ALL_STYLE = 5;
057
058
059 /** The default priority of a rule. */
060 public int DEFAULT_PRIORITY = -1;
061
062 /** How far to increase indent when padding toString invocations. */
063 public int INDENT_PADDING = 4;
064
065 } // JapeConstants
066
067
068
069
070
071 // $Log$
072 // Revision 1.13 2005/06/08 16:33:20 valyt
073 // Support for ALL matching style
074 //
075 // Revision 1.12 2005/01/11 13:51:36 ian
076 // Updating copyrights to 1998-2005 in preparation for v3.0
077 //
078 // Revision 1.11 2004/07/21 17:10:08 akshay
079 // Changed copyright from 1998-2001 to 1998-2004
080 //
081 // Revision 1.10 2004/03/25 13:01:14 valyt
082 // Imports optimisation throughout the Java sources
083 // (to get rid of annoying warnings in Eclipse)
084 //
085 // Revision 1.9 2002/04/23 10:30:47 valyt
086 //
087 // bugfix: confusion between "once" and "first" application style
088 //
089 // Revision 1.8 2002/04/22 11:45:57 valyt
090 //
091 // ONCE mode added to Jape
092 //
093 // Revision 1.7 2001/05/17 16:02:41 valyt
094 //
095 // Jape grammars now can match using the "first" style
096 //
097 // Tokeniser only matches one character per (Space)Tokens in case of whitespace or control characters
098 //
099 // Revision 1.6 2001/05/17 11:50:41 valyt
100 //
101 // Factory now handles Runtime parameters as well as inittime ones.
102 //
103 // There is a new rule application style Appelt-shortest
104 //
105 // Revision 1.5 2001/04/06 17:09:49 hamish
106 // save of session state via serialisation prototyped
107 //
108 // Revision 1.4 2000/11/08 16:35:02 hamish
109 // formatting
110 //
111 // Revision 1.3 2000/10/26 10:45:30 oana
112 // Modified in the code style
113 //
114 // Revision 1.2 2000/10/10 15:36:35 oana
115 // Changed System.out in Out and System.err in Err;
116 // Added the DEBUG variable seted on false;
117 // Added in the header the licence;
118 //
119 // Revision 1.1 2000/02/23 13:46:06 hamish
120 // added
121 //
122 // Revision 1.1.1.1 1999/02/03 16:23:01 hamish
123 // added gate2
124 //
125 // Revision 1.5 1998/08/12 15:39:36 hamish
126 // added padding toString methods
127 //
128 // Revision 1.4 1998/07/31 13:12:18 mks
129 // done RHS stuff, not tested
130 //
131 // Revision 1.3 1998/07/30 11:05:17 mks
132 // more jape
133 //
134 // Revision 1.2 1998/07/29 11:06:58 hamish
135 // first compiling version
136 //
137 // Revision 1.1.1.1 1998/07/28 16:37:46 hamish
138 // gate2 lives
|