@Plugin(name="equals", category="Converter") public final class EqualsReplacementConverter extends EqualsBaseReplacementConverter
LOGGERCATEGORY| Modifier | Constructor and Description |
|---|---|
private |
EqualsReplacementConverter(java.util.List<PatternFormatter> formatters,
java.lang.String testString,
java.lang.String substitution,
PatternParser parser)
Construct the converter.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
equals(java.lang.String str,
java.lang.StringBuilder buff,
int from,
int len)
Returns true if the specified String equals the specified section of the specified StringBuilder.
|
static EqualsReplacementConverter |
newInstance(Configuration config,
java.lang.String[] options)
Gets an instance of the class.
|
format, parseSubstitutionformat, handlesThrowable, isVariablegetName, getStyleClassprivate EqualsReplacementConverter(java.util.List<PatternFormatter> formatters, java.lang.String testString, java.lang.String substitution, PatternParser parser)
formatters - The PatternFormatters to generate the text to manipulate.testString - The test string.substitution - The substitution string.parser - The PatternParser.public static EqualsReplacementConverter newInstance(Configuration config, java.lang.String[] options)
config - The current Configuration.options - pattern options, an array of three elements: pattern, testString, and substitution.protected boolean equals(java.lang.String str,
java.lang.StringBuilder buff,
int from,
int len)
EqualsBaseReplacementConverterequals in class EqualsBaseReplacementConverterstr - the String to comparebuff - the StringBuilder to compare a section offrom - start index in the StringBuilderlen - length of the section in the StringBuilder