com.stevesoft.pat
Class NullRule

java.lang.Object
  |
  +--com.stevesoft.pat.ReplaceRule
        |
        +--com.stevesoft.pat.NullRule

public class NullRule
extends ReplaceRule

The apply(StringBufferLike sb,RegRes res) method of this derivation of ReplaceRule appends nothing to the contents of the StringBuffer sb.

See Also:
ReplaceRule


Fields inherited from class com.stevesoft.pat.ReplaceRule
next
 
Constructor Summary
NullRule()
           
 
Method Summary
 void apply(StringBufferLike sb, RegRes res)
          This function appends to the StringBufferLike the text you want to replaced the portion of the String last matched.
 java.lang.String toString1()
          This tells how to convert just the current element (and none of the other items in the linked list) to a String.
 
Methods inherited from class com.stevesoft.pat.ReplaceRule
add, addRule, arg, clone, clone1, define, define, define, isDefined, perlCode, toString, undefine

 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullRule

public NullRule()
Method Detail

apply

public void apply(StringBufferLike sb,
                  RegRes res)
Description copied from class: ReplaceRule
This function appends to the StringBufferLike the text you want to replaced the portion of the String last matched.
Overrides:
apply in class ReplaceRule

toString1

public java.lang.String toString1()
Description copied from class: ReplaceRule
This tells how to convert just the current element (and none of the other items in the linked list) to a String. This method is called by toString() for each item in the linked list.
Overrides:
toString1 in class ReplaceRule