类 Perl5Pattern

java.lang.Object
org.apache.oro.text.regex.Perl5Pattern
所有已实现的接口:
Serializable, Cloneable, Pattern

public final class Perl5Pattern extends Object implements Pattern, Serializable, Cloneable
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.
从以下版本开始:
1.0
版本:
@version@
另请参阅:
  • 方法详细资料

    • getPattern

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

      指定者:
      getPattern 在接口中 Pattern
      返回:
      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.

      指定者:
      getOptions 在接口中 Pattern
      返回:
      The compilation options used to compile the pattern.