public static interface SubstitutionContentsTransformer.Condition
evaluate(String, CharSequence, int)
Modifier and Type | Field and Description |
---|---|
static SubstitutionContentsTransformer.Condition |
ALWAYS
A
SubstitutionContentsTransformer.Condition that is always true . |
static SubstitutionContentsTransformer.Condition |
NEVER
A
SubstitutionContentsTransformer.Condition that is always false . |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(String path,
CharSequence match,
int occurrence) |
static final SubstitutionContentsTransformer.Condition ALWAYS
SubstitutionContentsTransformer.Condition
that is always true
.static final SubstitutionContentsTransformer.Condition NEVER
SubstitutionContentsTransformer.Condition
that is always false
.boolean evaluate(String path, CharSequence match, int occurrence)
path
- The 'path' of the file or ZIP entry that contains the matchmatch
- The matching textoccurrence
- The index of the occurrence within the document, starting at zeroSubstitutionContentsTransformer(Charset, Charset, Pattern,
String, Condition)
Copyright © 2022 Arno Unkrig. All rights reserved.