1 2 package org.apache.lucene.demo.html; 3 4 public interface HTMLParserConstants { 5 6 int EOF = 0; 7 int ScriptStart = 1; 8 int TagName = 2; 9 int DeclName = 3; 10 int Comment1 = 4; 11 int Comment2 = 5; 12 int Word = 6; 13 int LET = 7; 14 int NUM = 8; 15 int HEX = 9; 16 int Space = 10; 17 int SP = 11; 18 int Entity = 12; 19 int Punct = 13; 20 int ScriptText = 14; 21 int ScriptEnd = 15; 22 int ArgName = 16; 23 int ArgEquals = 17; 24 int TagEnd = 18; 25 int ArgValue = 19; 26 int ArgQuote1 = 20; 27 int ArgQuote2 = 21; 28 int Quote1Text = 23; 29 int CloseQuote1 = 24; 30 int Quote2Text = 25; 31 int CloseQuote2 = 26; 32 int CommentText1 = 27; 33 int CommentEnd1 = 28; 34 int CommentText2 = 29; 35 int CommentEnd2 = 30; 36 37 int DEFAULT = 0; 38 int WithinScript = 1; 39 int WithinTag = 2; 40 int AfterEquals = 3; 41 int WithinQuote1 = 4; 42 int WithinQuote2 = 5; 43 int WithinComment1 = 6; 44 int WithinComment2 = 7; 45 46 String [] tokenImage = { 47 "<EOF>", "\"<script\"", "<TagName>", "<DeclName>", "\"<!--\"", "\"<!\"", "<Word>", "<LET>", "<NUM>", "<HEX>", "<Space>", "<SP>", "<Entity>", "<Punct>", "<ScriptText>", "<ScriptEnd>", "<ArgName>", "\"=\"", "<TagEnd>", "<ArgValue>", "\"\\\'\"", "\"\\\"\"", "<token of kind 22>", "<Quote1Text>", "<CloseQuote1>", "<Quote2Text>", "<CloseQuote2>", "<CommentText1>", "\"-->\"", "<CommentText2>", "\">\"", }; 79 80 } 81 | Popular Tags |