org.radeox.regex
Class Compiler

java.lang.Object
  extended byorg.radeox.regex.Compiler
Direct Known Subclasses:
JdkCompiler

public abstract class Compiler
extends java.lang.Object


Constructor Summary
Compiler()
           
 
Method Summary
abstract  Pattern compile(java.lang.String regex)
          Compile a String regular expression to a regex pattern
static Compiler create()
          Create a new Compiler object depending on the used implementation
abstract  void setMultiline(boolean multiline)
          Whether the compiler should create multiline patterns or single line patterns.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Compiler

public Compiler()
Method Detail

create

public static Compiler create()
Create a new Compiler object depending on the used implementation

Returns:
Compiler object with the used implementation

setMultiline

public abstract void setMultiline(boolean multiline)
Whether the compiler should create multiline patterns or single line patterns.

Parameters:
multiline - True if the pattern is multiline, otherwise false

compile

public abstract Pattern compile(java.lang.String regex)
Compile a String regular expression to a regex pattern

Parameters:
regex - String representation of a regular expression
Returns:
Compiled regular expression


Copyright © 2003 Matthias L. Jugel, Stephan J. Schmidt. All Rights Reserved.