Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.oro.text.awk
Class AwkPattern  view AwkPattern download AwkPattern.java

java.lang.Object
  extended byorg.apache.oro.text.awk.AwkPattern
All Implemented Interfaces:
org.apache.oro.text.regex.Pattern, java.io.Serializable

public final class AwkPattern
extends java.lang.Object
implements org.apache.oro.text.regex.Pattern, java.io.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

Since:
1.0
Version:
@version@

Field Summary
(package private)  java.util.Vector _Dtrans
           
(package private)  java.util.BitSet _emptySet
           
(package private)  int _endPosition
           
(package private)  java.util.BitSet _endStates
           
(package private)  java.lang.String _expression
           
(package private)  boolean[] _fastMap
           
(package private)  java.util.BitSet[] _followSet
           
(package private)  boolean _hasBeginAnchor
           
(package private)  boolean _hasEndAnchor
           
(package private) static int _INVALID_STATE
           
(package private)  boolean _matchesNullString
           
(package private)  java.util.Vector[] _nodeList
           
(package private)  int _numStates
           
(package private)  int _options
           
(package private) static int _START_STATE
           
(package private)  java.util.Vector _stateList
           
(package private)  java.util.Hashtable _stateMap
           
(package private)  java.util.BitSet _U
           
 
Constructor Summary
(package private) AwkPattern(java.lang.String expression, SyntaxTree tree)
           
 
Method Summary
(package private)  void _createNewState(int current, int token, int[] tstateArray)
           
(package private)  int[] _getStateArray(int state)
           
 int getOptions()
          This method returns an integer containing the compilation options used to compile this pattern.
 java.lang.String getPattern()
          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

_INVALID_STATE

static final int _INVALID_STATE
See Also:
Constant Field Values

_START_STATE

static final int _START_STATE
See Also:
Constant Field Values

_numStates

int _numStates

_endPosition

int _endPosition

_options

int _options

_expression

java.lang.String _expression

_Dtrans

java.util.Vector _Dtrans

_nodeList

java.util.Vector[] _nodeList

_stateList

java.util.Vector _stateList

_U

java.util.BitSet _U

_emptySet

java.util.BitSet _emptySet

_followSet

java.util.BitSet[] _followSet

_endStates

java.util.BitSet _endStates

_stateMap

java.util.Hashtable _stateMap

_matchesNullString

boolean _matchesNullString

_fastMap

boolean[] _fastMap

_hasBeginAnchor

boolean _hasBeginAnchor

_hasEndAnchor

boolean _hasEndAnchor
Constructor Detail

AwkPattern

AwkPattern(java.lang.String expression,
           SyntaxTree tree)
Method Detail

_createNewState

void _createNewState(int current,
                     int token,
                     int[] tstateArray)

_getStateArray

int[] _getStateArray(int state)

getPattern

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

Specified by:
getPattern in interface org.apache.oro.text.regex.Pattern

getOptions

public int getOptions()
This method returns an integer containing the compilation options used to compile this pattern.

Specified by:
getOptions in interface org.apache.oro.text.regex.Pattern