Jakarta ORO

org.apache.oro.text.regex
Interface PatternMatchingEngine

All Known Implementing Classes:
AwkEngine, GlobEngine, JavaEngine, Perl5Engine

public interface PatternMatchingEngine

PatternMatchingEngine is an interface that abstracts a regular expression implementation into a PatternCompiler, a PatternMatcher, and PatternCompilerOptions. Implementations of PatternMatchingEngine can wrap any regular expression implementation and make them usable using the jakarta-oro interfaces.

Since:
2.1
Version:
2.1-dev-1

Method Summary
 PatternCompiler createCompiler()
          Creates a new instance of a PatternCompiler that can compile patterns for a particular regular expression engine.
 PatternMatcher createMatcher()
          Creates a new instance of a PatternMatcher that can match patterns for a particular regular expression engine.
 PatternCompilerOptions getOptions()
          Returns a PatternCompilerOptions object that can map generic PatternCompilerOptions option constants into constants specific to a particular regular expression engine.
 

Method Detail

createCompiler

public PatternCompiler createCompiler()
Creates a new instance of a PatternCompiler that can compile patterns for a particular regular expression engine.

Returns:
A new PatternCompiler.

createMatcher

public PatternMatcher createMatcher()
Creates a new instance of a PatternMatcher that can match patterns for a particular regular expression engine.

Returns:
A new PatternMatcher.

getOptions

public PatternCompilerOptions getOptions()
Returns a PatternCompilerOptions object that can map generic PatternCompilerOptions option constants into constants specific to a particular regular expression engine.

Returns:
A PatternCompilerOptions object corresponding to an engine.

Jakarta ORO

Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.