com.stevesoft.pat
Class NoPattern

java.lang.Object
  |
  +--com.stevesoft.pat.Pattern
        |
        +--com.stevesoft.pat.NoPattern

public class NoPattern
extends Pattern

The idea behind this class is simply to eliminate the need for testing to see if Regex.thePattern is null. Every instruction we can eliminate from _search will help.


Fields inherited from class com.stevesoft.pat.Pattern
ESC

 
Constructor Summary
NoPattern()
           
 
Method Summary
 int matchInternal(int i, Pthings p)
          The interal match function, it must be provided by any class which wishes to extend Pattern.
 java.lang.String toString()
           
 
Methods inherited from class com.stevesoft.pat.Pattern
add, countMaxChars, countMinChars, equals, getNext, match, matchAt, maxChars, minChars, nextMatch, nextString, setParent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

NoPattern

public NoPattern()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class Pattern

matchInternal

public int matchInternal(int i,
                         Pthings p)
Description copied from class: Pattern
The interal match function, it must be provided by any class which wishes to extend Pattern.
Overrides:
matchInternal in class Pattern