websphinx
Class Pattern

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

public abstract class Pattern
extends java.lang.Object
implements java.io.Serializable

Base class for pattern matchers.

See Also:
Serialized Form

Field Summary
static java.lang.String groups
           
 
Constructor Summary
Pattern()
           
 
Method Summary
 websphinx.Region[] allMatches(websphinx.Region region)
           
 websphinx.Region[] allMatches(java.lang.String string)
           
 boolean found(websphinx.Region region)
           
 boolean found(java.lang.String string)
           
 java.lang.String[] getFieldNames()
           
abstract  websphinx.PatternMatcher match(websphinx.Region region)
           
 websphinx.Region oneMatch(websphinx.Region region)
           
 websphinx.Region oneMatch(java.lang.String string)
           
abstract  java.lang.String toString()
          Return a string representation of the pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

groups

public static final java.lang.String groups
See Also:
Constant Field Values
Constructor Detail

Pattern

public Pattern()
Method Detail

match

public abstract websphinx.PatternMatcher match(websphinx.Region region)

found

public boolean found(websphinx.Region region)

oneMatch

public websphinx.Region oneMatch(websphinx.Region region)

allMatches

public websphinx.Region[] allMatches(websphinx.Region region)

found

public boolean found(java.lang.String string)

oneMatch

public websphinx.Region oneMatch(java.lang.String string)

allMatches

public websphinx.Region[] allMatches(java.lang.String string)

getFieldNames

public java.lang.String[] getFieldNames()

toString

public abstract java.lang.String toString()
Return a string representation of the pattern.

Overrides:
toString in class java.lang.Object