ORO, Inc. Logo  All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.oroinc.text.awk.AwkPattern

java.lang.Object
   |
   +----com.oroinc.text.awk.AwkPattern

public final class AwkPattern
extends Object
implements Pattern, Serializable
An implementation of the Pattern interface for Awk regular expressions. This class is compatible with the AwkCompiler and AwkMatcher classes. When an AwkCompiler instance compiles a regular expression pattern, it produces an AwkPattern instance containing internal data structures used by AwkMatcher to perform pattern matches. This class cannot be subclassed and cannot be directly instantiated by the programmer as it would not make sense. It is however serializable so that pre-compiled patterns may be saved to disk and re-read at a later time. AwkPattern instances should only be created through calls to an AwkCompiler instance's compile() methods

Copyright © 1997 Original Resuable Objects, Inc. All rights reserved.

See Also:
AwkCompiler, AwkMatcher

Method Index

 o getOptions()
This method returns an integer containing the compilation options used to compile this pattern.
 o getPattern()
This method returns the string representation of the pattern.

Methods

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

Returns:
The original string representation of the regular expression pattern.
 o 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.

ORO, Inc. Logo  All Packages  Class Hierarchy  This Package  Previous  Next  Index