protected class Inflector.Rule
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
expression |
protected java.util.regex.Pattern |
expressionPattern |
protected java.lang.String |
replacement |
| Modifier | Constructor and Description |
|---|---|
protected |
Rule(java.lang.String expression,
java.lang.String replacement) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
apply(java.lang.String input)
Apply the rule against the input string, returning the modified string or null if the rule didn't apply (and no
modifications were made)
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
protected final java.lang.String expression
protected final java.util.regex.Pattern expressionPattern
protected final java.lang.String replacement
protected java.lang.String apply(java.lang.String input)
input - the input stringpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object