public class ChangeRule extends SpecialRule
next| Constructor and Description |
|---|
ChangeRule(ChangeRule c) |
ChangeRule(String nm,
Regex rr) |
ChangeRule(String nm,
Transformer tr) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(StringBufferLike sb,
RegRes rr)
This function appends to the StringBufferLike the text you want
to replaced the portion of the String last matched.
|
Object |
clone1()
A rule describing how to clone only the current ReplaceRule,
and none of the others in this linked list.
|
String |
toString1()
This tells how to convert just the current element (and none
of the other items in the linked list) to a String.
|
public ChangeRule(ChangeRule c)
public ChangeRule(String nm, Transformer tr)
public Object clone1()
ReplaceRuleclone1 in class ReplaceRulepublic String toString1()
ReplaceRuletoString1 in class ReplaceRulepublic void apply(StringBufferLike sb, RegRes rr)
ReplaceRuleapply in class SpecialRule