| |
|
| java.lang.Object org.apache.oro.text.regex.Perl5Pattern
Perl5Pattern | final public class Perl5Pattern implements Pattern,Serializable,Cloneable(Code) | | 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: @version@ since: 1.0 See Also: Perl5Compiler See Also: Perl5Matcher |
Constructor Summary | |
| Perl5Pattern() A dummy constructor with default visibility to override the default
public constructor that would be created otherwise by the compiler. |
Method Summary | |
public int | getOptions() This method returns an integer containing the compilation options used
to compile this pattern. | public String | getPattern() This method returns the string representation of the pattern. |
_OPT_ANCH | final static int _OPT_ANCH(Code) | | |
_OPT_ANCH_BOL_OPT_ANCH_MBOL_OPT_SKIP_OPT_IMPLICIT | final static int _OPT_ANCH_BOL_OPT_ANCH_MBOL_OPT_SKIP_OPT_IMPLICIT(Code) | | |
_isCaseInsensitive_isExpensive | boolean _isCaseInsensitive_isExpensive(Code) | | |
_minLength | int _minLength(Code) | | |
_mustString_startString | char[] _mustString_startString(Code) | | |
_mustUtility | int _mustUtility(Code) | | |
_numParentheses | int _numParentheses(Code) | | |
_program | char[] _program(Code) | | |
_startClassOffset | int _startClassOffset(Code) | | |
Perl5Pattern | Perl5Pattern()(Code) | | A dummy constructor with default visibility to override the default
public constructor that would be created otherwise by the compiler.
|
getOptions | public int getOptions()(Code) | | This method returns an integer containing the compilation options used
to compile this pattern.
The compilation options used to compile the pattern. |
getPattern | public String getPattern()(Code) | | This method returns the string representation of the pattern.
The original string representation of the regular expressionpattern. |
|
|
|