JapeConstants.java |
1 /* 2 * JapeConstants.java 3 * 4 * Copyright (c) 1998-2004, 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.11 2004/07/21 17:10:08 akshay 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 55 56 /** The default priority of a rule. */ 57 public int DEFAULT_PRIORITY = -1; 58 59 /** How far to increase indent when padding toString invocations. */ 60 public int INDENT_PADDING = 4; 61 62 } // JapeConstants 63 64 65 66 67 68 // $Log: JapeConstants.java,v $ 69 // Revision 1.11 2004/07/21 17:10:08 akshay 70 // Changed copyright from 1998-2001 to 1998-2004 71 // 72 // Revision 1.10 2004/03/25 13:01:14 valyt 73 // Imports optimisation throughout the Java sources 74 // (to get rid of annoying warnings in Eclipse) 75 // 76 // Revision 1.9 2002/04/23 10:30:47 valyt 77 // 78 // bugfix: confusion between "once" and "first" application style 79 // 80 // Revision 1.8 2002/04/22 11:45:57 valyt 81 // 82 // ONCE mode added to Jape 83 // 84 // Revision 1.7 2001/05/17 16:02:41 valyt 85 // 86 // Jape grammars now can match using the "first" style 87 // 88 // Tokeniser only matches one character per (Space)Tokens in case of whitespace or control characters 89 // 90 // Revision 1.6 2001/05/17 11:50:41 valyt 91 // 92 // Factory now handles Runtime parameters as well as inittime ones. 93 // 94 // There is a new rule application style Appelt-shortest 95 // 96 // Revision 1.5 2001/04/06 17:09:49 hamish 97 // save of session state via serialisation prototyped 98 // 99 // Revision 1.4 2000/11/08 16:35:02 hamish 100 // formatting 101 // 102 // Revision 1.3 2000/10/26 10:45:30 oana 103 // Modified in the code style 104 // 105 // Revision 1.2 2000/10/10 15:36:35 oana 106 // Changed System.out in Out and System.err in Err; 107 // Added the DEBUG variable seted on false; 108 // Added in the header the licence; 109 // 110 // Revision 1.1 2000/02/23 13:46:06 hamish 111 // added 112 // 113 // Revision 1.1.1.1 1999/02/03 16:23:01 hamish 114 // added gate2 115 // 116 // Revision 1.5 1998/08/12 15:39:36 hamish 117 // added padding toString methods 118 // 119 // Revision 1.4 1998/07/31 13:12:18 mks 120 // done RHS stuff, not tested 121 // 122 // Revision 1.3 1998/07/30 11:05:17 mks 123 // more jape 124 // 125 // Revision 1.2 1998/07/29 11:06:58 hamish 126 // first compiling version 127 // 128 // Revision 1.1.1.1 1998/07/28 16:37:46 hamish 129 // gate2 lives 130