Google

Jakarta-ORO 2.0.6 API: Interface Pattern
Jakarta ORO

org.apache.oro.text.regex
Interface Pattern

All Known Implementing Classes:
Perl5Pattern, AwkPattern

public interface Pattern

The Pattern interface allows multiple representations of a regular expression to be defined. In general, different regular expression compilers will produce different types of pattern representations. Some will produce state transition tables derived from syntax trees, others will produce byte code representations of an NFA, etc. The Pattern interface does not impose any specific internal pattern representation, and consequently, Pattern implementations are not meant to be interchangeable among differing PatternCompiler and PatternMatcher implementations. The documentation accompanying a specific implementation will define what other classes a Pattern can interact with.

Since:
1.0
Version:
2.0.6
Author:
Daniel F. Savarese
See Also:
PatternCompiler, PatternMatcher

Method Summary
 int getOptions()
          This method returns an integer containing the compilation options used to compile this pattern.
 java.lang.String getPattern()
          This method returns the string representation of the pattern.
 

Method Detail

getPattern

public java.lang.String getPattern()
This method returns the string representation of the pattern. Its purpose is to allow a pattern to be reconstructed after compilation. In other words, when you compile a pattern, the resulting data structures bear no relation to the string defining the pattern. It is often useful to be able to access the string defining a pattern after it has been compiled.

Returns:
The original string representation of the regular expression pattern.

getOptions

public int getOptions()
This method returns an integer containing the compilation options used to compile this pattern.

Returns:
The compilation options used to compile the pattern.

Jakarta ORO

Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.