All Packages Class Hierarchy
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Index of all Fields and Methods
- accept(File, String).
Method in class pat.Regex
- This method implements FilenameFilter, allowing one
to use a Regex to search through a directory using File.list
- action(Event, Object).
Method in class pat.apps.Message
- This action will dispose of this graphics object and
deliver whatever action event it receives to the component
object supplied by the ask method.
- action(Event, Object).
Method in class pat.apps.ReGame
-
- action(Event, Object).
Method in class pat.apps.ReGameDes
-
- action(Event, Object).
Method in class pat.apps.ReGap
-
- add(Color, String).
Method in class pat.apps.ColorLine
- Add a string s with color c to this
line of text.
- add(Pattern).
Method in class pat.Pattern
- add a Pattern to the singly-linked Pattern chain.
- add(Pattern).
Method in class pat.Regex
- Only needed for creating your own extensions of
Regex.
- addButton(String).
Method in class pat.apps.Message
- Add a button to the message with text b.
- addCentered(String).
Method in class pat.apps.Message
- Add a centered line of text to the message.
- addLeft(String).
Method in class pat.apps.Message
- Add a left justified line of text to the message.
- addRight(String).
Method in class pat.apps.Message
- Add a right justified line of text to the message.
- allTokens().
Method in class pat.RegexTokenizer
- Returns all tokens in the String
- ask(Component).
Method in class pat.apps.Message
- Open the window.
- BadMultiArgs().
Constructor for class pat.BadMultiArgs
-
- cbits.
Variable in class pat.Pthings
- The mask to use when dontMatchInQuotes is set.
- charsMatched().
Method in class pat.RegRes
- After a successful match, this returns the number of
characters in the match, or -1 if the match failed.
- charsMatched(int).
Method in class pat.RegRes
- Obtains the number of characters matched by backreference i, or
-1 if backreference i was not matched
- clear().
Method in class pat.apps.ColorText
- Remove all lines of text from ColorText object.
- clone().
Method in class pat.Regex
- A clone by any other name would smell as sweet.
- clone().
Method in class pat.RegRes
-
- ColorLine().
Constructor for class pat.apps.ColorLine
-
- compile(String).
Method in class pat.Regex
- This method compiles a regular expression, making it
possible to call the search or matchAt methods.
- compile1(StrPos, Rthings).
Method in class pat.Regex
- You only need to use this method if you are creating
your own extentions to Regex.
- countMaxChars().
Method in class pat.Pattern
- return maximum number of characters in pattern
- countMaxChars().
Method in class pat.Regex
- You only need to know about this if you are inventing
your own pattern elements.
- countMinChars().
Method in class pat.Pattern
- return minimum number of characters in pattern
- countMinChars().
Method in class pat.Regex
- You only need to know about this if you are inventing
your own pattern elements.
- countTokens().
Method in class pat.RegexTokenizer
- Determines the # of remaining tokens
- dec().
Method in class pat.patInt
- Decrement the value of this by 1.
- Deck(int).
Constructor for class pat.apps.Deck
- Initialize the size of the deck.
- didMatch().
Method in class pat.RegRes
- Contains true if the last match was successful.
- discard(int).
Method in class pat.apps.Deck
-
- dontMatchInQuotes.
Variable in class pat.Regex
- You may now use the syntax "(?Q)" to tell
Regex to not match in quotes.
- dontMatchInQuotes.
Variable in class pat.Rthings
- Needed in case (?Q) is encountered, to pass back the
message that dontMatchInQuotes should be set.
- draw().
Method in class pat.apps.Deck
-
- dup(StrPos).
Method in class pat.StrPos
- copy a StrPos from sp to this.
- equals(patInt).
Method in class pat.patInt
- Test to see if two patterns are equal.
- equals(RegRes).
Method in class pat.RegRes
-
- ESC.
Static variable in class pat.Pattern
- The ESC character, the user can provide his own value
for the escape character through regex.esc
- esc.
Variable in class pat.Regex
- By default,
the escape character is the backslash, but you can
make it anything you want by setting this variable.
- escaped().
Method in class pat.StrPos
- Returns true if the character is escaped (preceeded by "\").
- finite().
Method in class pat.patInt
- Tests to see if this represents an infinite quantity.
- getNext().
Method in class pat.Pattern
- This gets the next element of a Pattern that
we wish to match.
- getPatInt().
Method in class pat.StrPos
-
- guigrep().
Constructor for class pat.apps.guigrep
-
- hasMoreElements().
Method in class pat.RegexTokenizer
- Tells whether there are more tokens in the pattern.
- hasMoreTokens().
Method in class pat.RegexTokenizer
- Tells whether there are more tokens in the pattern, but
in the fashion of StringTokenizer.
- ignoreCase.
Variable in class pat.Pthings
- Whether we should ignore the case of letters in
this match.
- ignoreCase.
Variable in class pat.Regex
- You may now use the syntax "(?i)" or to tell
Regex to ignore case in the pattern.
- ignoreCase.
Variable in class pat.Rthings
- Needed in case (?i) is encountered, to pass back the
message that ignoreCase should be set.
- inc().
Method in class pat.patInt
- Increment the value of this by 1.
- inc().
Method in class pat.StrPos
- Advance the place where StrPos points within the String.
- init().
Method in class pat.apps.ReGame
-
- init().
Method in class pat.apps.ReGap
-
- intValue().
Method in class pat.patInt
- Converts to a patInt to an int.
- left().
Method in class pat.RegRes
- This returns the part of the string that preceeds the match,
or null if the match failed.
- left(int).
Method in class pat.RegRes
- This returns the part of the string that follows the ith
backreference, or null if the backreference did not match.
- lessEq(patInt).
Method in class pat.patInt
- Test to see if this is less than or equal to j.
- main(String[]).
Static method in class pat.apps.guigrep
-
- main(String[]).
Static method in class pat.apps.ReGameDes
-
- main(String[]).
Static method in class pat.RegOpt
-
- marks.
Variable in class pat.Pthings
- Used to keep track of backreferences.
- match(char).
Method in class pat.StrPos
- Increment the string pointer if the character
pointed to is not escaped (preceeded by "\"), and matches
ch
.
- match(String).
Method in class pat.StrPos
- Increment the string pointer by each character in
st
that matches a non-escaped
character.
- match(String, Pthings).
Method in class pat.Pattern
- This can be used to perform a match test from
within class Pattern.
- matchAt(String, int).
Method in class pat.Regex
- Attempt to match a Pattern beginning
at a specified location within the string.
- matchAt(String, int, Pthings).
Method in class pat.Pattern
- This can be used to perform a match test from
within class Pattern.
- matchFrom().
Method in class pat.RegRes
- After a successful match, this returns the location of
the first matching character, or -1 if the match failed.
- matchFrom(int).
Method in class pat.RegRes
- Obtains the position backreference number i begins to match, or
-1 if backreference i was not matched.
- matchInternal(int, Pthings).
Method in class pat.Pattern
- The interal match function, it must be provided by any
class which wishes to extend Pattern.
- maxChars().
Method in class pat.Pattern
- Method to over-ride when making your own
patterns.
- maxeq(patInt).
Method in class pat.patInt
- If the argument p has a greater than this,
then set this object equal to p.
- Message().
Constructor for class pat.apps.Message
-
- minChars().
Method in class pat.Pattern
- Method to over-ride when making your own
patterns.
- mineq(patInt).
Method in class pat.patInt
- If the argument p has a smaller value than this,
then set this Object equal to p.
- mul(patInt).
Method in class pat.patInt
- Returns a patInt with value equal to the product
of the value of p and this.
- ncards().
Method in class pat.apps.Deck
- The number of cards remaining in this object.
- nextElement().
Method in class pat.RegexTokenizer
- This should always be cast to a String, as in StringTokenizer,
and as in StringTokenizer one can do this by calling
nextString().
- nextMatch(int, Pthings).
Method in class pat.Pattern
- This determines if the remainder of a Pattern
matches.
- nextString().
Method in class pat.Pattern
- This is a toString() for the remainder
of the Pattern elements after this one.
- nextToken().
Method in class pat.RegexTokenizer
- This is the equivalent (String)nextElement().
- nextToken(Regex).
Method in class pat.RegexTokenizer
- This asks for the next token, and changes the pattern
being used at the same time.
- nextToken(String).
Method in class pat.RegexTokenizer
- This asks for the next token, and changes the pattern
being used at the same time.
- numSubs().
Method in class pat.RegRes
- This returns the number of
backreferences (parenthesis) in the pattern,
i.e.
- optimize().
Method in class pat.Regex
- Once this method is called, the state of variables
ignoreCase and dontMatchInQuotes should not be changed as the
results will be unpredictable.
- optimized().
Method in class pat.Regex
- This function returns true if the optimize method has
been called.
- optimizeMe.
Variable in class pat.Rthings
- Needed in case (?o) is encountered, to pass back the
message that optimize() should be run after compilation pass 1.
- paint(Graphics).
Method in class pat.apps.ColorText
- Draw the text.
- patInt().
Constructor for class pat.patInt
- Initialize to zero.
- patInt(int).
Constructor for class pat.patInt
- Initialize to the value of init.
- patInt(patInt).
Constructor for class pat.patInt
- Initialize to the value of p.
- Pattern().
Constructor for class pat.Pattern
-
- pluseq(patInt).
Method in class pat.patInt
- This would be operator+=(patInt) if I were programming
in C++.
- Pthings().
Constructor for class pat.Pthings
-
- r.
Variable in class pat.apps.Deck
- The random number generator this class uses.
- ReadAndProcessFile(String).
Method in class pat.apps.ReGameDes
-
- ReGame().
Constructor for class pat.apps.ReGame
-
- ReGap().
Constructor for class pat.apps.ReGap
-
- Regex().
Constructor for class pat.Regex
- Initializes the object without a Pattern.
- Regex(Regex).
Constructor for class pat.Regex
- Essentially clones the Regex object
- Regex(String).
Constructor for class pat.Regex
- Create and compile a Regex, but do not throw any exceptions.
- RegexTokenizer(String, Regex).
Constructor for class pat.RegexTokenizer
- Initialize the tokenizer with a Regex object.
- RegexTokenizer(String, String).
Constructor for class pat.RegexTokenizer
- Initialize the tokenizer with a string of text and a pattern
- RegOpt().
Constructor for class pat.RegOpt
-
- RegRes().
Constructor for class pat.RegRes
-
- RegRes(RegRes).
Constructor for class pat.RegRes
-
- RegSyntax().
Constructor for class pat.RegSyntax
-
- result().
Method in class pat.Regex
- Return a clone of the underlying RegRes object.
- right().
Method in class pat.RegRes
- This returns the part of the string that follows the match,
or null if the backreference did not match.
- right(int).
Method in class pat.RegRes
- This returns the string to the right of the ith backreference,
or null if the backreference did not match.
- search(String).
Method in class pat.Regex
- Search through a Pattern for the first
occurrence of a match.
- searchFrom(String, int).
Method in class pat.Regex
- Search through a Pattern for the first
occurence of a match, but start at position
start
- setInf(boolean).
Method in class pat.patInt
- set this int to infinity.
- setParent(Pattern).
Method in class pat.Pattern
- Call this method if you have a pattern element that
takes a sub pattern (such as Or), and
after you have added a sub pattern to the current
pattern element.
- SizeAndShow().
Method in class pat.apps.ReGameDes
-
- src.
Variable in class pat.Pthings
- The current text we are attempting to match.
- start().
Method in class pat.apps.ReGame
-
- StrPos(String, int).
Constructor for class pat.StrPos
- Initialize a StrPos by giving it a String, and a
position within the String.
- StrPos(StrPos).
Constructor for class pat.StrPos
- initialize a StrPos from another StrPos.
- substring().
Method in class pat.RegRes
- Obtains the match if successful, null otherwise
- substring(int).
Method in class pat.RegRes
- Obtains a substring matching the nth set
of parenthesis from the pattern.
- toString().
Method in class pat.patInt
- Formats the pattern as a String.
- toString().
Method in class pat.Pattern
- Conversion to a String
- toString().
Method in class pat.Regex
- Converts the stored Pattern to a String
- toString().
Method in class pat.RegRes
-
- val.
Variable in class pat.Rthings
- The numeric identity of the next () to be encountered
while compiling the pattern.
- version().
Method in class pat.Regex
- The version of this package