Alphabetical Index

A B C D E F G H I L M N O P R S T U

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
assertEquals(String,int,int) - method in class org.apache.regexp.RETest
assertEquals(String,String,String) - method in class org.apache.regexp.RETest
assertEquals(StringBuffer,String,int,int) - method in class org.apache.regexp.RETestCase
atom() - method in class org.apache.regexp.RECompiler
Absorb an atomic character string.

B

badPattern - field in class org.apache.regexp.RETestCase
bracket() - method in class org.apache.regexp.RECompiler
Match bracket {m,n} expression put results in bracket member variables
bracketEnd - field in class org.apache.regexp.RECompiler
bracketMin - field in class org.apache.regexp.RECompiler
bracketOpt - field in class org.apache.regexp.RECompiler
brackets - field in class org.apache.regexp.RECompiler
bracketStart - field in class org.apache.regexp.RECompiler
bracketUnbounded - static field 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 - field in class org.apache.regexp.ReaderCharacterIterator
Buffer of read chars
buff - field in class org.apache.regexp.StreamCharacterIterator
Buffer of read chars

C

Encapsulates char[] as CharacterIterator
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.CharacterArrayCharacterIterator
charAt(int) - method in class org.apache.regexp.CharacterIterator
charAt(int) - method in class org.apache.regexp.ReaderCharacterIterator
charAt(int) - method in class org.apache.regexp.StreamCharacterIterator
charAt(int) - method in class org.apache.regexp.StringCharacterIterator
charToString(char) - method in class org.apache.regexp.REDebugCompiler
Return a string describing a (possibly unprintable) character.
checkParens() - method in class org.apache.regexp.RETestCase
checkResult(boolean) - method in class org.apache.regexp.RETestCase
closed - field in class org.apache.regexp.ReaderCharacterIterator
read end?
closed - field in class org.apache.regexp.StreamCharacterIterator
read end?
closure(int[]) - method in class org.apache.regexp.RECompiler
Compile a possibly closured terminal
compareChars(char,char,boolean) - method in class org.apache.regexp.RE
Compares two characters.
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 - field in class org.apache.regexp.REDemo
compiler - field in class org.apache.regexp.RETest
complexPrefix - static field 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 field in class org.apache.regexp.RE
E_BOUND - static field in class org.apache.regexp.RE
E_DIGIT - static field in class org.apache.regexp.RE
E_NALNUM - static field in class org.apache.regexp.RE
E_NBOUND - static field in class org.apache.regexp.RE
E_NDIGIT - static field in class org.apache.regexp.RE
E_NSPACE - static field in class org.apache.regexp.RE
E_SPACE - static field in class org.apache.regexp.RE
emit(char) - method in class org.apache.regexp.RECompiler
Emit a single character into the program stream.
end0 - field in class org.apache.regexp.RE
end1 - field in class org.apache.regexp.RE
end2 - field in class org.apache.regexp.RE
endBackref - field in class org.apache.regexp.RE
endn - field in class org.apache.regexp.RE
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.
ensure(int) - method in class org.apache.regexp.StreamCharacterIterator
Reads chars up to the idx
ESC_BACKREF - static field in class org.apache.regexp.RECompiler
ESC_CLASS - static field in class org.apache.regexp.RECompiler
ESC_COMPLEX - static field in class org.apache.regexp.RECompiler
ESC_MASK - static field in class org.apache.regexp.RECompiler
escape() - method in class org.apache.regexp.RECompiler
Match an escape sequence.
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.
fail(StringBuffer,String) - method in class org.apache.regexp.RETest
Fail with an error.
failures - field in class org.apache.regexp.RETest
fieldMatch - field in class org.apache.regexp.REDemo
fieldRE - field in class org.apache.regexp.REDemo
Components
findNextTest(BufferedReader) - method in class org.apache.regexp.RETest
Finds next test description in a given script.
flags - field in class org.apache.regexp.REProgram

G

getExpectedResult(String) - method in class org.apache.regexp.RETest
Converts yesno string to boolean.
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.
getNextTestCase(BufferedReader) - method in class org.apache.regexp.RETest
Creates testcase for the next test description in the script file.
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 field in class org.apache.regexp.REDebugCompiler
Mapping from opcodes to descriptive strings
hashPOSIX - static field in class org.apache.regexp.RECompiler

I

idx - field in class org.apache.regexp.RECompiler
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 - field in class org.apache.regexp.RECompiler
instruction - field in class org.apache.regexp.REProgram
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 - field in class org.apache.regexp.StreamCharacterIterator
Underlying is
isEnd(int) - method in class org.apache.regexp.CharacterArrayCharacterIterator
isEnd(int) - method in class org.apache.regexp.CharacterIterator
isEnd(int) - method in class org.apache.regexp.ReaderCharacterIterator
isEnd(int) - method in class org.apache.regexp.StreamCharacterIterator
isEnd(int) - method in class org.apache.regexp.StringCharacterIterator
isNewline(int) - method in class org.apache.regexp.RE

L

len - field in class org.apache.regexp.CharacterArrayCharacterIterator
used portion of the array
len - field in class org.apache.regexp.RECompiler
lenInstruction - field in class org.apache.regexp.RECompiler
lenInstruction - field in class org.apache.regexp.REProgram
log - field in class org.apache.regexp.RETestCase

M

main(String[]) - static method in class org.apache.regexp.recompile
Main application entrypoint.
main(String[]) - static method in class org.apache.regexp.REDemo
Main application entrypoint.
main(String[]) - static method in class org.apache.regexp.RETest
Main program entrypoint.
match(org.apache.regexp.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.
MATCH_CASEINDEPENDENT - static field in class org.apache.regexp.RE
Flag to indicate that matching should be case-independent (folded)
MATCH_MULTILINE - static field in class org.apache.regexp.RE
Newlines should match as BOL/EOL (^ and $)
MATCH_NORMAL - static field in class org.apache.regexp.RE
Specifies normal, case-sensitive matching behaviour.
MATCH_SINGLELINE - static field in class org.apache.regexp.RE
Consider all input a single body of text - newlines are matched by .
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 - field 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
MAX_PAREN - static field in class org.apache.regexp.RE
maxBrackets - field in class org.apache.regexp.RECompiler
maxNode - static field in class org.apache.regexp.RE
maxParen - field in class org.apache.regexp.RE
maxParens - field in class org.apache.regexp.REProgram
maxRange - field 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 - field in class org.apache.regexp.RECompiler.RERange

N

NEW_LINE - static field in class org.apache.regexp.RETest
node(char,int) - method in class org.apache.regexp.RECompiler
Adds a new node
NODE_NORMAL - static field in class org.apache.regexp.RECompiler
NODE_NULLABLE - static field in class org.apache.regexp.RECompiler
NODE_TOPLEVEL - static field in class org.apache.regexp.RECompiler
nodeInsert(char,int,int) - method in class org.apache.regexp.RECompiler
Inserts a node with a given opcode and opdata at insertAt.
nodeSize - static field 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 - field in class org.apache.regexp.RECompiler.RERange
number - field in class org.apache.regexp.RETestCase

O

off - field in class org.apache.regexp.CharacterArrayCharacterIterator
offset in the char array
offsetNext - static field in class org.apache.regexp.RE
offsetOpcode - static field in class org.apache.regexp.RE
offsetOpdata - static field in class org.apache.regexp.RE
OP_ANY - static field in class org.apache.regexp.RE
OP_ANYOF - static field in class org.apache.regexp.RE
OP_ATOM - static field in class org.apache.regexp.RE
OP_BACKREF - static field in class org.apache.regexp.RE
OP_BOL - static field in class org.apache.regexp.RE
OP_BRANCH - static field in class org.apache.regexp.RE
OP_CLOSE - static field in class org.apache.regexp.RE
OP_CLOSE_CLUSTER - static field in class org.apache.regexp.RE
OP_END - static field 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 field in class org.apache.regexp.RE
OP_ESCAPE - static field in class org.apache.regexp.RE
OP_GOTO - static field in class org.apache.regexp.RE
OP_MAYBE - static field in class org.apache.regexp.RE
OP_NOTHING - static field in class org.apache.regexp.RE
OP_OPEN - static field in class org.apache.regexp.RE
OP_OPEN_CLUSTER - static field in class org.apache.regexp.RE
OP_PLUS - static field in class org.apache.regexp.RE
OP_POSIXCLASS - static field in class org.apache.regexp.RE
OP_RELUCTANTMAYBE - static field in class org.apache.regexp.RE
OP_RELUCTANTPLUS - static field in class org.apache.regexp.RE
OP_RELUCTANTSTAR - static field in class org.apache.regexp.RE
OP_STAR - static field 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 field in class org.apache.regexp.REProgram
OPT_HASBOL - static field in class org.apache.regexp.REProgram
outMatch - field in class org.apache.regexp.REDemo
outRE - field in class org.apache.regexp.REDemo

P

parenCount - field in class org.apache.regexp.RE
parens - field in class org.apache.regexp.RECompiler
parens - field in class org.apache.regexp.RETestCase
pattern - field in class org.apache.regexp.RECompiler
pattern - field in class org.apache.regexp.RETestCase
POSIX_CLASS_ALNUM - static field in class org.apache.regexp.RE
POSIX_CLASS_ALPHA - static field in class org.apache.regexp.RE
POSIX_CLASS_BLANK - static field in class org.apache.regexp.RE
POSIX_CLASS_CNTRL - static field in class org.apache.regexp.RE
POSIX_CLASS_DIGIT - static field in class org.apache.regexp.RE
POSIX_CLASS_GRAPH - static field in class org.apache.regexp.RE
POSIX_CLASS_JPART - static field in class org.apache.regexp.RE
POSIX_CLASS_JSTART - static field in class org.apache.regexp.RE
POSIX_CLASS_LOWER - static field in class org.apache.regexp.RE
POSIX_CLASS_PRINT - static field in class org.apache.regexp.RE
POSIX_CLASS_PUNCT - static field in class org.apache.regexp.RE
POSIX_CLASS_SPACE - static field in class org.apache.regexp.RE
POSIX_CLASS_UPPER - static field in class org.apache.regexp.RE
POSIX_CLASS_XDIGIT - static field in class org.apache.regexp.RE
prefix - field in class org.apache.regexp.REProgram
program - field in class org.apache.regexp.RE

R

r - field 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(org.apache.regexp.REProgram) - constructor for class org.apache.regexp.RE
Construct a matcher for a pre-compiled regular expression from program (bytecode) data.
RE(org.apache.regexp.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.
read(int) - method in class org.apache.regexp.ReaderCharacterIterator
Reads n characters from the stream and appends them to the buffer
read(int) - method in class org.apache.regexp.StreamCharacterIterator
Reads n characters from the stream and appends them to the buffer
readAll() - method in class org.apache.regexp.ReaderCharacterIterator
Reads rest of the stream.
readAll() - method in class org.apache.regexp.StreamCharacterIterator
Reads rest of the stream.
reader - field in class org.apache.regexp.ReaderCharacterIterator
Underlying reader
Encapsulates java.io.Reader as CharacterIterator
ReaderCharacterIterator(Reader) - constructor for class org.apache.regexp.ReaderCharacterIterator
reallocBrackets() - method in class org.apache.regexp.RECompiler
Enlarge storage for brackets only as needed.
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'.
RECompiler - class org.apache.regexp.RECompiler
A regular expression compiler class.
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.
REDemo - class org.apache.regexp.REDemo
Interactive demonstration and testing harness for regular expressions classes.
regexp - field in class org.apache.regexp.RETestCase
remove(int,int) - method in class org.apache.regexp.RECompiler.RERange
Removes a range by deleting or shrinking all other ranges
REPLACE_ALL - static field in class org.apache.regexp.RE
Flag bit that indicates that subst should replace all occurrences of this regular expression.
REPLACE_BACKREFERENCES - static field in class org.apache.regexp.RE
Flag bit that indicates that subst should replace backreferences
REPLACE_FIRSTONLY - static field 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
REProgram(int,char[]) - constructor for class org.apache.regexp.REProgram
Constructs a program object from a character array
RECompiler.RERange - class org.apache.regexp.RECompiler.RERange
Local, nested class for maintaining character ranges for character classes.
RESyntaxException - class 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
RETestCase - class org.apache.regexp.RETestCase
REUtil - class org.apache.regexp.REUtil
This is a class that contains utility helper methods for this package.
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
runTest() - method in class org.apache.regexp.RETestCase

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 - field 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(org.apache.regexp.REProgram) - method in class org.apache.regexp.RE
Sets the current regular expression program used by this matcher object.
shouldMatch - field in class org.apache.regexp.RETestCase
showParens(org.apache.regexp.RE) - method in class org.apache.regexp.RETest
Dump parenthesized subexpressions found by a regular expression matcher object
showSuccesses - static field 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 - field 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 - field in class org.apache.regexp.CharacterArrayCharacterIterator
encapsulated
src - field in class org.apache.regexp.StringCharacterIterator
encapsulated
start0 - field in class org.apache.regexp.RE
start1 - field in class org.apache.regexp.RE
start2 - field in class org.apache.regexp.RE
startBackref - field in class org.apache.regexp.RE
startn - field in class org.apache.regexp.RE
Encapsulates java.io.InputStream as CharacterIterator.
StreamCharacterIterator(InputStream) - constructor for class org.apache.regexp.StreamCharacterIterator
Encapsulates String as CharacterIterator.
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.CharacterArrayCharacterIterator
substring(int) - method in class org.apache.regexp.CharacterIterator
substring(int) - method in class org.apache.regexp.ReaderCharacterIterator
substring(int) - method in class org.apache.regexp.StreamCharacterIterator
substring(int) - method in class org.apache.regexp.StringCharacterIterator
substring(int,int) - method in class org.apache.regexp.CharacterArrayCharacterIterator
substring(int,int) - method in class org.apache.regexp.CharacterIterator
substring(int,int) - method in class org.apache.regexp.ReaderCharacterIterator
substring(int,int) - method in class org.apache.regexp.StreamCharacterIterator
substring(int,int) - method in class org.apache.regexp.StringCharacterIterator
success(String) - method in class org.apache.regexp.RETestCase
Show a success
syntaxError(String) - method in class org.apache.regexp.RECompiler
Throws a new syntax error exception

T

tag - field in class org.apache.regexp.RETestCase
terminal(int[]) - method in class org.apache.regexp.RECompiler
Match a terminal node.
test - field in class org.apache.regexp.RETestCase
test(String[]) - static method in class org.apache.regexp.RETest
Testing entrypoint.
testCount - field in class org.apache.regexp.RETest
testCreation() - method in class org.apache.regexp.RETestCase
testMatch() - method in class org.apache.regexp.RETestCase
testOther() - method in class org.apache.regexp.RETest
Run automated unit test
testPrecompiledRE() - method in class org.apache.regexp.RETest
testSplitAndGrep() - method in class org.apache.regexp.RETest
testSubst() - method in class org.apache.regexp.RETest
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
toMatch - field in class org.apache.regexp.RETestCase

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

Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.