Package net.thucydides.core.util
Class Inflector.Rule
java.lang.Object
net.thucydides.core.util.Inflector.Rule
- Enclosing class:
- Inflector
protected static class Inflector.Rule
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
expression
-
Constructor Summary
Constructors Modifier Constructor Description protected
Rule(java.lang.String expression, java.lang.String replacement)
-
Method Summary
Modifier and Type Method 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)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
expression
protected final java.lang.String expression
-
-
Constructor Details
-
Rule
protected Rule(java.lang.String expression, java.lang.String replacement)
-
-
Method Details
-
apply
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)- Parameters:
input
- the input string- Returns:
- the modified string if this rule applied, or null if the input was not modified by this rule
-