Modifier and Type | Method and Description |
---|---|
(package private) int |
RECompiler.atom()
Absorb an atomic character string.
|
(package private) void |
RECompiler.bracket()
Match bracket {m,n} expression put results in bracket member variables
|
(package private) int |
RECompiler.branch(int[] flags)
Compile body of one branch of an or operator (implements concatenation)
|
(package private) int |
RECompiler.characterClass()
Compile a character class
|
(package private) int |
RECompiler.closure(int[] flags)
Compile a possibly closured terminal
|
REProgram |
RECompiler.compile(java.lang.String pattern)
Compiles a regular expression pattern into a program runnable by the pattern
matcher class 'RE'.
|
static RE |
REUtil.createRE(java.lang.String expression)
Creates a regular expression, permitting simple or complex syntax
|
static RE |
REUtil.createRE(java.lang.String expression,
int matchFlags)
Creates a regular expression, permitting simple or complex syntax
|
(package private) int |
RECompiler.escape()
Match an escape sequence.
|
(package private) int |
RECompiler.expr(int[] flags)
Compile an expression with possible parens around it.
|
(package private) void |
RECompiler.syntaxError(java.lang.String s)
Throws a new syntax error exception
|
(package private) int |
RECompiler.terminal(int[] flags)
Match a terminal node.
|
Constructor and Description |
---|
RE(java.lang.String pattern)
Constructs a regular expression matcher from a String by compiling it
using a new instance of RECompiler.
|
RE(java.lang.String pattern,
int matchFlags)
Constructs a regular expression matcher from a String by compiling it
using a new instance of RECompiler.
|
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.