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
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
groups
public static final java.lang.String groups
Pattern
public Pattern()
match
public abstract PatternMatcher match(Region region)
found
public boolean found(Region region)
oneMatch
public Region oneMatch(Region region)
allMatches
public Region[] allMatches(Region region)
found
public boolean found(java.lang.String string)
oneMatch
public Region oneMatch(java.lang.String string)
allMatches
public 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