类 AwkPattern
java.lang.Object
org.apache.oro.text.awk.AwkPattern
- 所有已实现的接口:
Serializable,Pattern
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
- 从以下版本开始:
- 1.0
- 版本:
- @version@
- 另请参阅:
-
方法概要
修饰符和类型方法说明intThis method returns an integer containing the compilation options used to compile this pattern.This method returns the string representation of the pattern.
-
方法详细资料
-
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.
-