APTCONVERT 1.1

fr.pixware.util
Interface REFactory

All Known Implementing Classes:
REFactoryImpl

public interface REFactory

An abstraction of a regular expression engine.


Field Summary
static int CASE_INSENSITIVE
          Matching should be case-insensitive.
static int MULTI_LINE
          Newlines should match as ^ and $.
static int SINGLE_LINE
          Newlines are matched by ..
 
Method Summary
 RE createRE(java.lang.String pattern, int options)
          Compiles the specified pattern into a regular expression matcher.
 

Field Detail

CASE_INSENSITIVE

public static final int CASE_INSENSITIVE
Matching should be case-insensitive.

See Also:
Constant Field Values

MULTI_LINE

public static final int MULTI_LINE
Newlines should match as ^ and $.

See Also:
Constant Field Values

SINGLE_LINE

public static final int SINGLE_LINE
Newlines are matched by ..

See Also:
Constant Field Values
Method Detail

createRE

public RE createRE(java.lang.String pattern,
                   int options)
            throws RESyntaxException
Compiles the specified pattern into a regular expression matcher.

Parameters:
pattern - the pattern to compile
options - one or more (OR-ed) flags parameterizing matching behaviour: CASE_INSENSITIVE, MULTI_LINE, SINGLE_LINE
Returns:
a regular expression matcher
Throws:
RESyntaxException - if the pattern contains syntax errors

APTCONVERT 1.1