- 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.
- getPrefix() - Method in class org.apache.regexp.REProgram
-
Returns a copy of the prefix of current regular expression program
in a character array.
- 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.
- 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(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(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_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 .
- 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
- MAX_PAREN - Static variable in class org.apache.regexp.RE
-
- maxNode - Static variable in class org.apache.regexp.RE
-
- maxParen - Variable in class org.apache.regexp.RE
-
- maxParens - Variable in class org.apache.regexp.REProgram
-
- 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
-
- r - Variable in class org.apache.regexp.REDemo
-
Matcher and compiler objects
- RE - Class in org.apache.regexp
-
RE is an efficient, lightweight regular expression evaluator/matcher
class.
- 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.
- RE(REProgram, int) - Constructor for class org.apache.regexp.RE
-
Construct a matcher for a pre-compiled regular expression from program
(bytecode) data.
- RE(REProgram) - Constructor for class org.apache.regexp.RE
-
Construct a matcher for a pre-compiled regular expression from program
(bytecode) data.
- RE() - Constructor for class org.apache.regexp.RE
-
Constructs a regular expression matcher with no initial program.
- 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 - Variable in class org.apache.regexp.ReaderCharacterIterator
-
Underlying reader
- ReaderCharacterIterator - Class in org.apache.regexp
-
Encapsulates java.io.Reader as CharacterIterator
- ReaderCharacterIterator(Reader) - Constructor for class org.apache.regexp.ReaderCharacterIterator
-
- recompile - Class in org.apache.regexp
-
'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 in org.apache.regexp
-
A regular expression compiler class.
- RECompiler() - Constructor for class org.apache.regexp.RECompiler
-
Constructor.
- RECompiler.RERange - Class in org.apache.regexp
-
Local, nested class for maintaining character ranges for character classes.
- REDebugCompiler - Class in org.apache.regexp
-
A subclass of RECompiler which can dump a regular expression program
for debugging purposes.
- REDebugCompiler() - Constructor for class org.apache.regexp.REDebugCompiler
-
- REDemo - Class in org.apache.regexp
-
Interactive demonstration and testing harness for regular expressions classes.
- REDemo() - Constructor for class org.apache.regexp.REDemo
-
- regexp - Variable 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 variable in class org.apache.regexp.RE
-
Flag bit that indicates that subst should replace all occurrences of this
regular expression.
- REPLACE_BACKREFERENCES - Static variable in class org.apache.regexp.RE
-
Flag bit that indicates that subst should replace backreferences
- 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 in org.apache.regexp
-
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(int, 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
- RERange() - Constructor for class org.apache.regexp.RECompiler.RERange
-
- RESyntaxException - Exception in org.apache.regexp
-
Exception thrown to indicate a syntax error in a regular expression.
- RESyntaxException(String) - Constructor for exception org.apache.regexp.RESyntaxException
-
Constructor.
- RETest - Class in org.apache.regexp
-
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 in org.apache.regexp
-
- RETestCase(RETest, String, String, String, boolean, boolean, String[]) - Constructor for class org.apache.regexp.RETestCase
-
- REUtil - Class in org.apache.regexp
-
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
- runTest() - Method in class org.apache.regexp.RETestCase
-
- 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.
- shouldMatch - Variable in class org.apache.regexp.RETestCase
-
- 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 in org.apache.regexp
-
Encapsulates java.io.InputStream as CharacterIterator.
- StreamCharacterIterator(InputStream) - Constructor for class org.apache.regexp.StreamCharacterIterator
-
- StringCharacterIterator - Class in org.apache.regexp
-
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, int) - Method in class org.apache.regexp.CharacterArrayCharacterIterator
-
- substring(int) - Method in class org.apache.regexp.CharacterArrayCharacterIterator
-
- substring(int, int) - Method in interface org.apache.regexp.CharacterIterator
-
- substring(int) - Method in interface org.apache.regexp.CharacterIterator
-
- substring(int, int) - Method in class org.apache.regexp.ReaderCharacterIterator
-
- substring(int) - Method in class org.apache.regexp.ReaderCharacterIterator
-
- substring(int, int) - Method in class org.apache.regexp.StreamCharacterIterator
-
- substring(int) - Method in class org.apache.regexp.StreamCharacterIterator
-
- substring(int, int) - Method in class org.apache.regexp.StringCharacterIterator
-
- substring(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