com.stevesoft.pat
Class PushRule

java.lang.Object
  |
  +--com.stevesoft.pat.ReplaceRule
        |
        +--com.stevesoft.pat.SpecialRule
              |
              +--com.stevesoft.pat.PushRule

public class PushRule
extends SpecialRule

See the example file trans3.java for further examples of how this is used. You will probably not want to call it directly.


Fields inherited from class com.stevesoft.pat.ReplaceRule
next
 
Constructor Summary
PushRule(PushRule p)
           
PushRule(java.lang.String nm, Regex rr)
           
PushRule(java.lang.String nm, Transformer tr)
           
 
Method Summary
 void apply(StringBufferLike sbl, RegRes rr)
          This function appends to the StringBufferLike the text you want to replaced the portion of the String last matched.
 java.lang.Object clone1()
          A rule describing how to clone only the current ReplaceRule, and none of the others in this linked list.
 java.lang.String String1()
           
 
Methods inherited from class com.stevesoft.pat.ReplaceRule
add, addRule, arg, clone, define, define, define, isDefined, perlCode, toString, toString1, undefine
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PushRule

public PushRule(PushRule p)

PushRule

public PushRule(java.lang.String nm,
                Regex rr)

PushRule

public PushRule(java.lang.String nm,
                Transformer tr)
Method Detail

clone1

public java.lang.Object clone1()
Description copied from class: ReplaceRule
A rule describing how to clone only the current ReplaceRule, and none of the others in this linked list. It is called by clone() for each item in the list.
Overrides:
clone1 in class ReplaceRule

String1

public java.lang.String String1()

apply

public void apply(StringBufferLike sbl,
                  RegRes rr)
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 SpecialRule