KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > lenya > lucene > html > HTMLParserConstants


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */

17
18 /* $Id: HTMLParserConstants.java 42598 2004-03-01 16:18:28Z gregor $ */
19
20 package org.apache.lenya.lucene.html;
21
22 public interface HTMLParserConstants {
23     int EOF = 0;
24     int TagName = 1;
25     int DeclName = 2;
26     int Comment1 = 3;
27     int Comment2 = 4;
28     int Word = 5;
29     int LET = 6;
30     int NUM = 7;
31     int Entity = 8;
32     int Space = 9;
33     int SP = 10;
34     int Punct = 11;
35     int ArgName = 12;
36     int ArgEquals = 13;
37     int TagEnd = 14;
38     int ArgValue = 15;
39     int ArgQuote1 = 16;
40     int ArgQuote2 = 17;
41     int Quote1Text = 19;
42     int CloseQuote1 = 20;
43     int Quote2Text = 21;
44     int CloseQuote2 = 22;
45     int CommentText1 = 23;
46     int CommentEnd1 = 24;
47     int CommentText2 = 25;
48     int CommentEnd2 = 26;
49     int DEFAULT = 0;
50     int WithinTag = 1;
51     int AfterEquals = 2;
52     int WithinQuote1 = 3;
53     int WithinQuote2 = 4;
54     int WithinComment1 = 5;
55     int WithinComment2 = 6;
56     String JavaDoc[] tokenImage = {
57         "<EOF>", "<TagName>", "<DeclName>", "\"<!--\"", "\"<!\"", "<Word>", "<LET>", "<NUM>",
58         "<Entity>", "<Space>", "<SP>", "<Punct>", "<ArgName>", "\"=\"", "<TagEnd>", "<ArgValue>",
59         "\"\\\'\"", "\"\\\"\"", "<token of kind 18>", "<Quote1Text>", "<CloseQuote1>",
60         "<Quote2Text>", "<CloseQuote2>", "<CommentText1>", "\"-->\"", "<CommentText2>", "\">\"",
61     };
62 }
63
Popular Tags