|
Class Summary |
| AmpersandRule |
This implements the $& element of the second argument to
Regex. |
| BackRefRule |
This method implements the pattern elements $1, $2, etc in
a substitution rule. |
| Bits |
|
| CaseMgr |
Encapsulates the Unicode definitions of Upper,
Lower, and Title case as defined by
unicode.org. |
| ChangeRule |
This class implements user defined special replacement rules
of the form ${=name}. |
| CodeRule |
Implements the rules for \U, \L, \E, \Q in substitutions. |
| Ctrl |
|
| DirFileRegex |
This class is just like FileRegex, except that its accept method
only returns true if the file matching the pattern is a directory. |
| FastBracket |
Uses table lookup to match [] type constructs, but
only if it can use a lookup table 256 bits in size. |
| FileRegex |
This class is a different form of Regex designed to work more
like the file matching utility of a Unix shell. |
| Key |
This package provides the method registeredTo()
which makes it possible for registered users to
disable the startup message. |
| LeftRule |
The apply(StringBufferLike sb,RegRes res) method of this derivation
of ReplaceRule appends the contents of res.left() to the StringBuffer
sb. |
| NonDirFileRegex |
This class is just like FileRegex, except that its accept method
only returns true if the file matching the pattern is not a directory. |
| NoPattern |
The idea behind this class is simply to eliminate the need for
testing to see if Regex.thePattern is null. |
| NullRule |
The apply(StringBufferLike sb,RegRes res) method of this derivation
of ReplaceRule appends nothing to the contents of the StringBuffer sb. |
| patInt |
This is just an integer that can have infinite value. |
| Pattern |
Class Pattern is the base class on which all the other pattern
elements are built. |
| PopRule |
Implements substitution rule $POP. |
| Prop |
Get Unicode properties for a character. |
| Pthings |
Things that need to be kept track of during a
match. |
| PushRule |
See the example file
trans3.java for
further examples of how this is used. |
| Regex |
Regex provides the parser which constructs the linked list of
Pattern classes from a String. |
| RegexReader |
This class allows you to replace the text in strings
as you read them in. |
| RegexTokenizer |
The RegexTokenizer is similar to the StringTokenizer class
provided with java, but allows one to tokenize using
regular expressions, rather than a simple list of characters. |
| RegexWriter |
A basic extension of FilterWriter that uses Transformer
to make replacements in data as it is written out. |
| RegOpt |
This is just a place to put the optimizing function. |
| RegRes |
This class is used to store a result from Regex |
| Replacer |
To use this class, first use either the getReplacer() method from
Transformer or Regex. |
| ReplaceRule |
ReplaceRule is a singly linked list of Objects which describe how
to replace the matched portion of a String. |
| RightRule |
The apply(StringBufferLike sb,RegRes res) method of this derivation
of ReplaceRule appends the contents of res.right() to the StringBufferLike sb. |
| Rthings |
This class only exists to store data needed during the
compilation of a regular expression. |
| Skip |
This class is used internally to search ahead for some
optimized Regex objects. |
| Skip2 |
This is the same as Skip, except it needs a minimum
of two characters in the initializing String. |
| SkipBMH |
Like Skip, but implements a
Boyer-Moore-Horspool type search
method that has been modified to be more like a "T-search" (see
the Michael Tamm''s article in C'T, magazin fuer computer und technic, August 97
p 292). |
| SpecialRule |
|
| StringBufferLike |
A tool that is used to make the \E, \U, \L, and \Q
elements of a substitution. |
| StringRule |
The apply method of this ReplaceRule simply appends the text
it was initialized with to the StringBufferLike. |
| StrPos |
StrPos is used internally by regex to parse the regular expression. |
| Transformer |
Sometimes you want to replace a whole bunch of things
that might occur within a single line of text. |
| Validator |
This class makes it easy to create your own patterns
and integrate them into Regex. |
| WantMoreTextReplaceRule |
Triggers the reading of another line of text, allowing a longer
pattern to match -- for details see
WantMore.java. |