Package org.radeox.regex
Class Compiler
- java.lang.Object
-
- org.radeox.regex.Compiler
-
- Direct Known Subclasses:
JdkCompiler
public abstract class Compiler extends Object
-
-
Constructor Summary
Constructors Constructor Description Compiler()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Patterncompile(String regex)Compile a String regular expression to a regex patternstatic Compilercreate()Create a new Compiler object depending on the used implementationabstract voidsetMultiline(boolean multiline)Whether the compiler should create multiline patterns or single line patterns.
-
-
-
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
-
-