public abstract class DifferenceMatchRecipe extends Object
AbstractDifferenceReferringTransform
that defines the match of
a configuration element and a difference.Modifier and Type | Field and Description |
---|---|
protected Map<String,Pattern> |
attachmentRegexes |
protected Map<String,String> |
attachments |
protected String |
code |
protected Pattern |
codeRegex |
protected org.jboss.dmr.ModelNode |
config |
protected String |
newElement |
protected Pattern |
newElementRegex |
protected String |
oldElement |
protected Pattern |
oldElementRegex |
protected boolean |
regex |
Modifier | Constructor and Description |
---|---|
protected |
DifferenceMatchRecipe(org.jboss.dmr.ModelNode config,
String... additionalReservedProperties) |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(org.revapi.Difference difference,
org.revapi.Element oldElement,
org.revapi.Element newElement) |
abstract org.revapi.Difference |
transformMatching(org.revapi.Difference difference,
org.revapi.Element oldElement,
org.revapi.Element newElement) |
protected final org.jboss.dmr.ModelNode config
protected final boolean regex
protected final String code
protected final Pattern codeRegex
protected final String oldElement
protected final Pattern oldElementRegex
protected final String newElement
protected final Pattern newElementRegex
protected DifferenceMatchRecipe(org.jboss.dmr.ModelNode config, String... additionalReservedProperties)
public boolean matches(org.revapi.Difference difference, @Nullable org.revapi.Element oldElement, @Nullable org.revapi.Element newElement)
public abstract org.revapi.Difference transformMatching(org.revapi.Difference difference, org.revapi.Element oldElement, org.revapi.Element newElement)
Copyright © 2014-2020 Lukas Krejci. All Rights Reserved.