org.apache.oro.text.regex
Class Perl5Pattern

java.lang.Object
  |
  +--org.apache.oro.text.regex.Perl5Pattern
All Implemented Interfaces:
Cloneable, Pattern, Serializable

public final class Perl5Pattern
extends Object
implements Pattern, Serializable, Cloneable

Untamed: An implementation of the Pattern interface for Perl5 regular expressions. This class is compatible with the Perl5Compiler and Perl5Matcher classes. When a Perl5Compiler instance compiles a regular expression pattern, it produces a Perl5Pattern instance containing internal data structures used by Perl5Matcher to perform pattern matches. This class cannot be subclassed and cannot be directly instantiated by the programmer as it would not make sense. Perl5Pattern instances should only be created through calls to a Perl5Compiler instance's compile() methods. The class implements the Serializable interface so that instances may be pre-compiled and saved to disk if desired.

Version:
$Id: Perl5Pattern.java,v 1.4 2001/12/02 06:01:41 markm Exp $
Author:
Daniel F. Savarese
See Also:
Perl5Compiler, Perl5Matcher, Serialized Form

Field Summary
(package private)  int _anchor
           
(package private)  int _back
           
(package private)  String _expression
           
(package private)  boolean _isCaseInsensitive
           
(package private)  boolean _isExpensive
           
(package private)  int _minLength
           
(package private)  char[] _mustString
           
(package private)  int _mustUtility
           
(package private)  int _numParentheses
           
(package private) static int _OPT_ANCH
           
(package private) static int _OPT_IMPLICIT
           
(package private) static int _OPT_SKIP
           
(package private)  int _options
           
(package private)  char[] _program
           
(package private)  int _startClassOffset
           
(package private)  char[] _startString
           
 
Constructor Summary
(package private) Perl5Pattern()
          A dummy constructor with default visibility to override the default public constructor that would be created otherwise by the compiler.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_OPT_ANCH

static final int _OPT_ANCH

_OPT_SKIP

static final int _OPT_SKIP

_OPT_IMPLICIT

static final int _OPT_IMPLICIT

_expression

String _expression

_program

char[] _program

_mustUtility

int _mustUtility

_back

int _back

_minLength

int _minLength

_numParentheses

int _numParentheses

_isCaseInsensitive

boolean _isCaseInsensitive

_isExpensive

boolean _isExpensive

_startClassOffset

int _startClassOffset

_anchor

int _anchor

_options

int _options

_mustString

char[] _mustString

_startString

char[] _startString
Constructor Detail

Perl5Pattern

Perl5Pattern()
A dummy constructor with default visibility to override the default public constructor that would be created otherwise by the compiler.

Method Detail

getPattern

public String getPattern()
Enabled: This method returns the string representation of the pattern.

Specified by:
getPattern in interface Pattern
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.

Specified by:
getOptions in interface Pattern
Returns:
The compilation options used to compile the pattern.


comments?