websphinx
Class Tagexp

java.lang.Object
  |
  +--websphinx.Pattern
        |
        +--websphinx.Regexp
              |
              +--websphinx.Tagexp
All Implemented Interfaces:
java.io.Serializable

public class Tagexp
extends Regexp

Tag pattern. Tag patterns are regular expressions over the alphabet of HTML tags.

See Also:
Serialized Form

Field Summary
(package private) static HTMLParser parser
           
(package private)  java.lang.String stringRep
           
 
Fields inherited from class websphinx.Regexp
compiler, fields, pattern
 
Fields inherited from class websphinx.Pattern
groups
 
Constructor Summary
Tagexp(java.lang.String pattern)
           
 
Method Summary
(package private) static void canonicalizeTag(java.lang.StringBuffer output, Tag tag, int j)
           
(package private) static void canonicalizeTagPattern(java.lang.StringBuffer output, Tag tag)
           
(package private) static java.lang.String encodeAttrValue(java.lang.String value)
           
 boolean equals(java.lang.Object object)
           
static void main(java.lang.String[] args)
           
 PatternMatcher match(Region region)
           
(package private) static void sortAttrs(java.lang.String[] attrs)
           
static java.lang.String toRegexp(java.lang.String tagexp)
           
 java.lang.String toString()
          Return a string representation of the pattern.
(package private) static java.lang.String translatePattern(java.lang.StringBuffer output, java.lang.String s, java.lang.String delimiters)
           
(package private) static void translateText(java.lang.StringBuffer output, java.lang.String s)
           
 
Methods inherited from class websphinx.Regexp
escape, getFieldNames, init, readObject, translateFields
 
Methods inherited from class websphinx.Pattern
allMatches, allMatches, found, found, oneMatch, oneMatch
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

stringRep

java.lang.String stringRep

parser

static HTMLParser parser
Constructor Detail

Tagexp

public Tagexp(java.lang.String pattern)
Method Detail

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class Regexp

toString

public java.lang.String toString()
Description copied from class: Pattern
Return a string representation of the pattern.
Overrides:
toString in class Regexp

match

public PatternMatcher match(Region region)
Overrides:
match in class Regexp

toRegexp

public static java.lang.String toRegexp(java.lang.String tagexp)

canonicalizeTag

static void canonicalizeTag(java.lang.StringBuffer output,
                            Tag tag,
                            int j)

canonicalizeTagPattern

static void canonicalizeTagPattern(java.lang.StringBuffer output,
                                   Tag tag)

sortAttrs

static void sortAttrs(java.lang.String[] attrs)

encodeAttrValue

static java.lang.String encodeAttrValue(java.lang.String value)

translatePattern

static java.lang.String translatePattern(java.lang.StringBuffer output,
                                         java.lang.String s,
                                         java.lang.String delimiters)

translateText

static void translateText(java.lang.StringBuffer output,
                          java.lang.String s)

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception