Jakarta-Regexp 1.2 API: Index
< A B C D E F G H I L M N O P R S T U
<
() -
Static method in class org.apache.regexp.RECompiler
() -
Static method in class org.apache.regexp.REDebugCompiler
A
allocBrackets() -
Method in class org.apache.regexp.RECompiler
Allocate storage for brackets only as needed
allocParens() -
Method in class org.apache.regexp.RE
Performs lazy allocation of subexpression arrays
atom() -
Method in class org.apache.regexp.RECompiler
Absorb an atomic character string.
B
bracket() -
Method in class org.apache.regexp.RECompiler
Match bracket {m,n} expression put results in bracket member variables
bracketEnd -
Static variable in class org.apache.regexp.RECompiler
bracketFinished -
Static variable in class org.apache.regexp.RECompiler
bracketMin -
Static variable in class org.apache.regexp.RECompiler
bracketOpt -
Static variable in class org.apache.regexp.RECompiler
brackets -
Static variable in class org.apache.regexp.RECompiler
bracketStart -
Static variable in class org.apache.regexp.RECompiler
bracketUnbounded -
Static variable in class org.apache.regexp.RECompiler
branch(int[]) -
Method in class org.apache.regexp.RECompiler
Compile one branch of an or operator (implements concatenation)
buff -
Variable in class org.apache.regexp.StreamCharacterIterator
Buffer of read chars
buff -
Variable in class org.apache.regexp.ReaderCharacterIterator
Buffer of read chars
C
CharacterArrayCharacterIterator - class org.apache.regexp.CharacterArrayCharacterIterator .Encapsulates String CharacterArrayCharacterIterator(char[], int, int) -
Constructor for class org.apache.regexp.CharacterArrayCharacterIterator
characterClass() -
Method in class org.apache.regexp.RECompiler
Compile a character class
CharacterIterator - interface org.apache.regexp.CharacterIterator .Encapsulates different types of character sources - String, InputStream, ... charAt(int) -
Method in class org.apache.regexp.StreamCharacterIterator
charAt(int) -
Method in class org.apache.regexp.CharacterArrayCharacterIterator
charAt(int) -
Method in class org.apache.regexp.ReaderCharacterIterator
charAt(int) -
Method in class org.apache.regexp.StringCharacterIterator
charAt(int) -
Method in interface org.apache.regexp.CharacterIterator
charToString(char) -
Method in class org.apache.regexp.REDebugCompiler
Return a string describing a (possibly unprintable) character.
closed -
Variable in class org.apache.regexp.StreamCharacterIterator
read end?
closed -
Variable in class org.apache.regexp.ReaderCharacterIterator
read end?
closure(int[]) -
Method in class org.apache.regexp.RECompiler
Compile a possibly closured terminal
compile(String) -
Method in class org.apache.regexp.RECompiler
Compiles a regular expression pattern into a program runnable by the pattern
matcher class 'RE'.
compiler -
Variable in class org.apache.regexp.RETest
compiler -
Variable in class org.apache.regexp.REDemo
complexPrefix -
Static variable in class org.apache.regexp.REUtil
complex:
createRE(String) -
Static method in class org.apache.regexp.REUtil
Creates a regular expression, permitting simple or complex syntax
createRE(String, int) -
Static method in class org.apache.regexp.REUtil
Creates a regular expression, permitting simple or complex syntax
D
delete(int) -
Method in class org.apache.regexp.RECompiler.RERange
Deletes the range at a given index from the range lists
die(String) -
Method in class org.apache.regexp.RETest
Exit with a fatal error.
dumpProgram(PrintWriter) -
Method in class org.apache.regexp.REDebugCompiler
Dumps the current program to a PrintWriter
E
E_ALNUM -
Static variable in class org.apache.regexp.RE
E_BOUND -
Static variable in class org.apache.regexp.RE
E_DIGIT -
Static variable in class org.apache.regexp.RE
E_NALNUM -
Static variable in class org.apache.regexp.RE
E_NBOUND -
Static variable in class org.apache.regexp.RE
E_NDIGIT -
Static variable in class org.apache.regexp.RE
E_NSPACE -
Static variable in class org.apache.regexp.RE
E_SPACE -
Static variable in class org.apache.regexp.RE
emit(char) -
Method in class org.apache.regexp.RECompiler
Emit a single character into the program stream.
end0 -
Variable in class org.apache.regexp.RE
end1 -
Variable in class org.apache.regexp.RE
end2 -
Variable in class org.apache.regexp.RE
endBackref -
Variable in class org.apache.regexp.RE
endn -
Variable in class org.apache.regexp.RE
ensure(int) -
Method in class org.apache.regexp.StreamCharacterIterator
Reads chars up to the idx
ensure(int) -
Method in class org.apache.regexp.ReaderCharacterIterator
Reads chars up to the idx
ensure(int) -
Method in class org.apache.regexp.RECompiler
Ensures that n more characters can fit in the program buffer.
ESC_BACKREF -
Static variable in class org.apache.regexp.RECompiler
ESC_CLASS -
Static variable in class org.apache.regexp.RECompiler
ESC_COMPLEX -
Static variable in class org.apache.regexp.RECompiler
ESC_MASK -
Static variable in class org.apache.regexp.RECompiler
escape() -
Method in class org.apache.regexp.RECompiler
Match an escape sequence.
expr -
Variable in class org.apache.regexp.RETest
expr(int[]) -
Method in class org.apache.regexp.RECompiler
Compile an expression with possible parens around it.
F
fail(String) -
Method in class org.apache.regexp.RETest
Fail with an error
failures -
Variable in class org.apache.regexp.RETest
fieldMatch -
Variable in class org.apache.regexp.REDemo
fieldRE -
Variable in class org.apache.regexp.REDemo
Components
flags -
Variable in class org.apache.regexp.REProgram
G
getInstructions() -
Method in class org.apache.regexp.REProgram
Returns a copy of the current regular expression program in a character
array that is exactly the right length to hold the program.
getMatchFlags() -
Method in class org.apache.regexp.RE
Returns the current match behaviour flags.
getParen(int) -
Method in class org.apache.regexp.RE
Gets the contents of a parenthesized subexpression after a successful match.
getParenCount() -
Method in class org.apache.regexp.RE
Returns the number of parenthesized subexpressions available after a successful match.
getParenEnd(int) -
Method in class org.apache.regexp.RE
Returns the end index of a given paren level.
getParenLength(int) -
Method in class org.apache.regexp.RE
Returns the length of a given paren level.
getParenStart(int) -
Method in class org.apache.regexp.RE
Returns the start index of a given paren level.
getProgram() -
Method in class org.apache.regexp.RE
Returns the current regular expression program in use by this matcher object.
grep(Object[]) -
Method in class org.apache.regexp.RE
Returns an array of Strings, whose toString representation matches a regular
expression.
H
hashOpcode -
Static variable in class org.apache.regexp.REDebugCompiler
Mapping from opcodes to descriptive strings
hashPOSIX -
Static variable in class org.apache.regexp.RECompiler
I
idx -
Variable in class org.apache.regexp.RECompiler
idx -
Variable in class org.apache.regexp.RE
include(char, boolean) -
Method in class org.apache.regexp.RECompiler.RERange
Includes a range with the same min and max
include(int, int, boolean) -
Method in class org.apache.regexp.RECompiler.RERange
Includes (or excludes) the range from min to max, inclusive.
init() -
Method in class org.apache.regexp.REDemo
Add controls and init applet
instruction -
Variable in class org.apache.regexp.REProgram
instruction -
Variable in class org.apache.regexp.RECompiler
internalError() -
Method in class org.apache.regexp.RECompiler
Throws a new internal error exception
internalError(String) -
Method in class org.apache.regexp.RE
Throws an Error representing an internal error condition probably resulting
from a bug in the regular expression compiler (or possibly data corruption).
is -
Variable in class org.apache.regexp.StreamCharacterIterator
Underlying is
isEnd(int) -
Method in class org.apache.regexp.StreamCharacterIterator
isEnd(int) -
Method in class org.apache.regexp.CharacterArrayCharacterIterator
isEnd(int) -
Method in class org.apache.regexp.ReaderCharacterIterator
isEnd(int) -
Method in class org.apache.regexp.StringCharacterIterator
isEnd(int) -
Method in interface org.apache.regexp.CharacterIterator
isNewline(int) -
Method in class org.apache.regexp.RE
L
len -
Variable in class org.apache.regexp.CharacterArrayCharacterIterator
used portion of the array
len -
Variable in class org.apache.regexp.RECompiler
lenInstruction -
Variable in class org.apache.regexp.REProgram
lenInstruction -
Variable in class org.apache.regexp.RECompiler
M
main(String[]) -
Static method in class org.apache.regexp.recompile
Main application entrypoint.
main(String[]) -
Static method in class org.apache.regexp.RETest
Main program entrypoint.
main(String[]) -
Static method in class org.apache.regexp.REDemo
Main application entrypoint.
MATCH_CASEINDEPENDENT -
Static variable in class org.apache.regexp.RE
Flag to indicate that matching should be case-independent (folded)
MATCH_MULTILINE -
Static variable in class org.apache.regexp.RE
Newlines should match as BOL/EOL (^ and $)
MATCH_NORMAL -
Static variable in class org.apache.regexp.RE
Specifies normal, case-sensitive matching behaviour.
MATCH_SINGLELINE -
Static variable in class org.apache.regexp.RE
Consider all input a single body of text - newlines are matched by .
match(CharacterIterator, int) -
Method in class org.apache.regexp.RE
Matches the current regular expression program against a character array,
starting at a given index.
match(String) -
Method in class org.apache.regexp.RE
Matches the current regular expression program against a String.
match(String, int) -
Method in class org.apache.regexp.RE
Matches the current regular expression program against a character array,
starting at a given index.
matchAt(int) -
Method in class org.apache.regexp.RE
Match the current regular expression program against the current
input string, starting at index i of the input string.
matchFlags -
Variable in class org.apache.regexp.RE
matchNodes(int, int, int) -
Method in class org.apache.regexp.RE
Try to match a string against a subset of nodes in the program
maxBrackets -
Static variable in class org.apache.regexp.RECompiler
maxNode -
Static variable in class org.apache.regexp.RE
maxParen -
Static variable in class org.apache.regexp.RE
maxRange -
Variable in class org.apache.regexp.RECompiler.RERange
merge(int, int) -
Method in class org.apache.regexp.RECompiler.RERange
Merges a range into the range list, coalescing ranges if possible.
minRange -
Variable in class org.apache.regexp.RECompiler.RERange
N
n -
Variable in class org.apache.regexp.RETest
NEWLINE -
Static variable in class org.apache.regexp.RE
Line Separator
NODE_NORMAL -
Static variable in class org.apache.regexp.RECompiler
NODE_NULLABLE -
Static variable in class org.apache.regexp.RECompiler
NODE_TOPLEVEL -
Static variable in class org.apache.regexp.RECompiler
node(char, int) -
Method in class org.apache.regexp.RECompiler
Adds a new node
nodeInsert(char, int, int) -
Method in class org.apache.regexp.RECompiler
Inserts a node with a given opcode and opdata at insertAt.
nodeSize -
Static variable in class org.apache.regexp.RE
nodeToString(int) -
Method in class org.apache.regexp.REDebugCompiler
Returns a descriptive string for a node in a regular expression program.
num -
Variable in class org.apache.regexp.RECompiler.RERange
O
off -
Variable in class org.apache.regexp.CharacterArrayCharacterIterator
offset in the char array
offsetNext -
Static variable in class org.apache.regexp.RE
offsetOpcode -
Static variable in class org.apache.regexp.RE
offsetOpdata -
Static variable in class org.apache.regexp.RE
OP_ANY -
Static variable in class org.apache.regexp.RE
OP_ANYOF -
Static variable in class org.apache.regexp.RE
OP_ATOM -
Static variable in class org.apache.regexp.RE
OP_BACKREF -
Static variable in class org.apache.regexp.RE
OP_BOL -
Static variable in class org.apache.regexp.RE
OP_BRANCH -
Static variable in class org.apache.regexp.RE
OP_CLOSE -
Static variable in class org.apache.regexp.RE
OP_END -
Static variable in class org.apache.regexp.RE
*
The format of a node in a program is: *
*
[ OPCODE ] [ OPDATA ] [ OPNEXT ] [ OPERAND ] *
*
char OPCODE - instruction *
char OPDATA - modifying data *
char OPNEXT - next node (relative offset) *
*
OP_EOL -
Static variable in class org.apache.regexp.RE
OP_ESCAPE -
Static variable in class org.apache.regexp.RE
OP_GOTO -
Static variable in class org.apache.regexp.RE
OP_MAYBE -
Static variable in class org.apache.regexp.RE
OP_NOTHING -
Static variable in class org.apache.regexp.RE
OP_OPEN -
Static variable in class org.apache.regexp.RE
OP_PLUS -
Static variable in class org.apache.regexp.RE
OP_POSIXCLASS -
Static variable in class org.apache.regexp.RE
OP_RELUCTANTMAYBE -
Static variable in class org.apache.regexp.RE
OP_RELUCTANTPLUS -
Static variable in class org.apache.regexp.RE
OP_RELUCTANTSTAR -
Static variable in class org.apache.regexp.RE
OP_STAR -
Static variable in class org.apache.regexp.RE
opcodeToString(char) -
Method in class org.apache.regexp.REDebugCompiler
Returns a descriptive string for an opcode.
OPT_HASBACKREFS -
Static variable in class org.apache.regexp.REProgram
org.apache.regexp - package org.apache.regexp outMatch -
Variable in class org.apache.regexp.REDemo
outRE -
Variable in class org.apache.regexp.REDemo
P
parenCount -
Variable in class org.apache.regexp.RE
parens -
Variable in class org.apache.regexp.RECompiler
pattern -
Variable in class org.apache.regexp.RECompiler
POSIX_CLASS_ALNUM -
Static variable in class org.apache.regexp.RE
POSIX_CLASS_ALPHA -
Static variable in class org.apache.regexp.RE
POSIX_CLASS_BLANK -
Static variable in class org.apache.regexp.RE
POSIX_CLASS_CNTRL -
Static variable in class org.apache.regexp.RE
POSIX_CLASS_DIGIT -
Static variable in class org.apache.regexp.RE
POSIX_CLASS_GRAPH -
Static variable in class org.apache.regexp.RE
POSIX_CLASS_JPART -
Static variable in class org.apache.regexp.RE
POSIX_CLASS_JSTART -
Static variable in class org.apache.regexp.RE
POSIX_CLASS_LOWER -
Static variable in class org.apache.regexp.RE
POSIX_CLASS_PRINT -
Static variable in class org.apache.regexp.RE
POSIX_CLASS_PUNCT -
Static variable in class org.apache.regexp.RE
POSIX_CLASS_SPACE -
Static variable in class org.apache.regexp.RE
POSIX_CLASS_UPPER -
Static variable in class org.apache.regexp.RE
POSIX_CLASS_XDIGIT -
Static variable in class org.apache.regexp.RE
prefix -
Variable in class org.apache.regexp.REProgram
program -
Variable in class org.apache.regexp.RE
R
r -
Variable in class org.apache.regexp.RETest
r -
Variable in class org.apache.regexp.REDemo
Matcher and compiler objects
RE - class org.apache.regexp.RE .RE is an efficient, lightweight regular expression evaluator/matcher class. RE() -
Constructor for class org.apache.regexp.RE
Constructs a regular expression matcher with no initial program.
RE(REProgram) -
Constructor for class org.apache.regexp.RE
Construct a matcher for a pre-compiled regular expression from program
(bytecode) data.
RE(REProgram, int) -
Constructor for class org.apache.regexp.RE
Construct a matcher for a pre-compiled regular expression from program
(bytecode) data.
RE(String) -
Constructor for class org.apache.regexp.RE
Constructs a regular expression matcher from a String by compiling it
using a new instance of RECompiler.
RE(String, int) -
Constructor for class org.apache.regexp.RE
Constructs a regular expression matcher from a String by compiling it
using a new instance of RECompiler.
re1 -
Variable in class org.apache.regexp.RETest
re1Instructions -
Variable in class org.apache.regexp.RETest
read(int) -
Method in class org.apache.regexp.StreamCharacterIterator
Reads n characters from the stream and appends them to the buffer
read(int) -
Method in class org.apache.regexp.ReaderCharacterIterator
Reads n characters from the stream and appends them to the buffer
readAll() -
Method in class org.apache.regexp.StreamCharacterIterator
Reads rest of the stream.
readAll() -
Method in class org.apache.regexp.ReaderCharacterIterator
Reads rest of the stream.
reader -
Variable in class org.apache.regexp.ReaderCharacterIterator
Underlying is
ReaderCharacterIterator - class org.apache.regexp.ReaderCharacterIterator .Encapsulates InputStream, ... ReaderCharacterIterator(Reader) -
Constructor for class org.apache.regexp.ReaderCharacterIterator
recompile - class org.apache.regexp.recompile .'recompile' is a command line tool that pre-compiles one or more regular expressions
for use with the regular expression matcher class 'RE'. recompile() -
Constructor for class org.apache.regexp.recompile
RECompiler - class org.apache.regexp.RECompiler .A regular expression compiler class. RECompiler.RERange - class org.apache.regexp.RECompiler.RERange .Local, nested class for maintaining character ranges for character classes. RECompiler.RERange(RECompiler) -
Constructor for class org.apache.regexp.RECompiler.RERange
RECompiler() -
Constructor for class org.apache.regexp.RECompiler
Constructor.
REDebugCompiler - class org.apache.regexp.REDebugCompiler .A subclass of RECompiler which can dump a regular expression program
for debugging purposes. REDebugCompiler() -
Constructor for class org.apache.regexp.REDebugCompiler
REDemo - class org.apache.regexp.REDemo .Interactive demonstration and testing harness for regular expressions classes. REDemo() -
Constructor for class org.apache.regexp.REDemo
remove(int, int) -
Method in class org.apache.regexp.RECompiler.RERange
Removes a range by deleting or shrinking all other ranges
REPLACE_ALL -
Static variable in class org.apache.regexp.RE
Flag bit that indicates that subst should replace all occurrences of this
regular expression.
REPLACE_FIRSTONLY -
Static variable in class org.apache.regexp.RE
Flag bit that indicates that subst should only replace the first occurrence
of this regular expression.
REProgram - class org.apache.regexp.REProgram .A class that holds compiled regular expressions. REProgram(char[]) -
Constructor for class org.apache.regexp.REProgram
Constructs a program object from a character array
REProgram(char[], int) -
Constructor for class org.apache.regexp.REProgram
Constructs a program object from a character array
RESyntaxException - exception org.apache.regexp.RESyntaxException .Exception thrown to indicate a syntax error in a regular expression. RESyntaxException(String) -
Constructor for class org.apache.regexp.RESyntaxException
Constructor.
RETest - class org.apache.regexp.RETest .Data driven (and optionally interactive) testing harness to exercise regular
expression compiler and matching engine. RETest() -
Constructor for class org.apache.regexp.RETest
Constructor
RETest(String[]) -
Constructor for class org.apache.regexp.RETest
Constructor for test
REUtil - class org.apache.regexp.REUtil .This is a class that contains utility helper methods for this package. REUtil() -
Constructor for class org.apache.regexp.REUtil
runAutomatedTests(String) -
Method in class org.apache.regexp.RETest
Run automated tests in RETest.txt file (from Perl 4.0 test battery)
runInteractiveTests(String) -
Method in class org.apache.regexp.RETest
Compile and test matching against a single expression
S
say(String) -
Method in class org.apache.regexp.RETest
Say something to standard out
sayMatch(String) -
Method in class org.apache.regexp.REDemo
Say something into match text area
sayRE(String) -
Method in class org.apache.regexp.REDemo
Say something into RE text area
search -
Variable in class org.apache.regexp.RE
setInstructions(char[], int) -
Method in class org.apache.regexp.REProgram
Sets a new regular expression program to run.
setMatchFlags(int) -
Method in class org.apache.regexp.RE
Sets match behaviour flags which alter the way RE does matching.
setNextOfEnd(int, int) -
Method in class org.apache.regexp.RECompiler
Appends a node to the end of a node chain
setParenEnd(int, int) -
Method in class org.apache.regexp.RE
Sets the end of a paren level
setParenStart(int, int) -
Method in class org.apache.regexp.RE
Sets the start of a paren level
setProgram(REProgram) -
Method in class org.apache.regexp.RE
Sets the current regular expression program used by this matcher object.
show() -
Method in class org.apache.regexp.RETest
Show an expression
showParens(RE) -
Method in class org.apache.regexp.RETest
Dump parenthesized subexpressions found by a regular expression matcher object
showSuccesses -
Static variable in class org.apache.regexp.RETest
simplePatternToFullRegularExpression(String) -
Static method in class org.apache.regexp.RE
Converts a 'simplified' regular expression to a full regular expression
size -
Variable in class org.apache.regexp.RECompiler.RERange
split(String) -
Method in class org.apache.regexp.RE
Splits a string into an array of strings on regular expression boundaries.
src -
Variable in class org.apache.regexp.CharacterArrayCharacterIterator
encapsulated
src -
Variable in class org.apache.regexp.StringCharacterIterator
encapsulated
start0 -
Variable in class org.apache.regexp.RE
start1 -
Variable in class org.apache.regexp.RE
start2 -
Variable in class org.apache.regexp.RE
startBackref -
Variable in class org.apache.regexp.RE
startn -
Variable in class org.apache.regexp.RE
StreamCharacterIterator - class org.apache.regexp.StreamCharacterIterator .Encapsulates InputStream, ... StreamCharacterIterator(InputStream) -
Constructor for class org.apache.regexp.StreamCharacterIterator
StringCharacterIterator - class org.apache.regexp.StringCharacterIterator .Encapsulates String StringCharacterIterator(String) -
Constructor for class org.apache.regexp.StringCharacterIterator
subst(String, String) -
Method in class org.apache.regexp.RE
Substitutes a string for this regular expression in another string.
subst(String, String, int) -
Method in class org.apache.regexp.RE
Substitutes a string for this regular expression in another string.
substring(int) -
Method in class org.apache.regexp.StreamCharacterIterator
substring(int) -
Method in class org.apache.regexp.CharacterArrayCharacterIterator
substring(int) -
Method in class org.apache.regexp.ReaderCharacterIterator
substring(int) -
Method in class org.apache.regexp.StringCharacterIterator
substring(int) -
Method in interface org.apache.regexp.CharacterIterator
substring(int, int) -
Method in class org.apache.regexp.StreamCharacterIterator
substring(int, int) -
Method in class org.apache.regexp.CharacterArrayCharacterIterator
substring(int, int) -
Method in class org.apache.regexp.ReaderCharacterIterator
substring(int, int) -
Method in class org.apache.regexp.StringCharacterIterator
substring(int, int) -
Method in interface org.apache.regexp.CharacterIterator
success(String) -
Method in class org.apache.regexp.RETest
Show a success
syntaxError(String) -
Method in class org.apache.regexp.RECompiler
Throws a new syntax error exception
T
terminal(int[]) -
Method in class org.apache.regexp.RECompiler
Match a terminal node.
test() -
Static method in class org.apache.regexp.RETest
Testing entrypoint.
textValueChanged(TextEvent) -
Method in class org.apache.regexp.REDemo
Called when text values change
throwableToString(Throwable) -
Method in class org.apache.regexp.REDemo
Convert throwable to string
U
updateMatch(String) -
Method in class org.apache.regexp.REDemo
Update matching info by matching the string against the current
compiled regular expression.
updateRE(String) -
Method in class org.apache.regexp.REDemo
Change regular expression
< A B C D E F G H I L M N O P R S T U
Copyright © 2000 Apache Software Foundation. All Rights Reserved.