org.apache.oro.text.regex
Interface Pattern

All Known Implementing Classes:
Perl5Pattern

public interface Pattern

Untamed:


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

Method Detail

getPattern

public String getPattern()
Enabled: 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()
Enabled: This method returns an integer containing the compilation options used to compile this pattern.

Returns:
The compilation options used to compile the pattern.


comments?