|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.percederberg.grammatica.parser.re.RegExp
public class RegExp
A regular expression. This class creates and holds an internal data structure representing a regular expression. It also allows creating matchers. This class is thread-safe. Multiple matchers may operate simultanously on the same regular expression.
| Constructor Summary | |
|---|---|
RegExp(java.lang.String pattern)
Creates a new case-sensitive regular expression. |
|
RegExp(java.lang.String pattern,
boolean ignoreCase)
Creates a new regular expression. |
|
| Method Summary | |
|---|---|
Matcher |
matcher(CharBuffer str)
Deprecated. The CharBuffer class has been deprecated in favor of ReaderBuffer as of version 1.5. Create a ReaderBuffer and use the matcher(ReaderBuffer) method instead of this one. |
Matcher |
matcher(ReaderBuffer buffer)
Creates a new matcher for the specified look-ahead character input stream. |
Matcher |
matcher(java.lang.String str)
Creates a new matcher for the specified string. |
java.lang.String |
toString()
Returns a string representation of the regular expression. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RegExp(java.lang.String pattern)
throws RegExpException
pattern - the regular expression pattern
RegExpException - if the regular expression couldn't be
parsed correctly
public RegExp(java.lang.String pattern,
boolean ignoreCase)
throws RegExpException
pattern - the regular expression patternignoreCase - the character case ignore flag
RegExpException - if the regular expression couldn't be
parsed correctly| Method Detail |
|---|
public Matcher matcher(CharBuffer str)
str - the string to work with
public Matcher matcher(java.lang.String str)
str - the string to work with
public Matcher matcher(ReaderBuffer buffer)
buffer - the character input buffer
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||