public class SubstitutionDiff
extends java.lang.Object
Substitutions.| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_COMPLEXITY |
| Constructor and Description |
|---|
SubstitutionDiff() |
| Modifier and Type | Method and Description |
|---|---|
static SubstitutionDiff |
compare(Substitution oldSubstitution,
Substitution newSubstitution) |
java.util.Set<java.lang.String> |
getClasses() |
int |
getComplexity() |
Substitution |
getNewSubstitution() |
Substitution |
getOldSubstitution() |
java.lang.String |
getText() |
void |
setNewSubstitution(Substitution newSubstitution) |
void |
setOldSubstitution(Substitution oldSubstitution) |
void |
setText(java.lang.String text) |
public static final int MAX_COMPLEXITY
public static SubstitutionDiff compare(Substitution oldSubstitution, Substitution newSubstitution)
public Substitution getOldSubstitution()
public void setOldSubstitution(Substitution oldSubstitution)
public Substitution getNewSubstitution()
public void setNewSubstitution(Substitution newSubstitution)
public java.lang.String getText()
public void setText(java.lang.String text)
public int getComplexity()
SubstitutionDiff. This is incremented by 1 for each field
that is not equal between the old and the new Substitution.public java.util.Set<java.lang.String> getClasses()
SubstitutionDiff affects. Throws an IllegalArgumentException if the
classes of the old and the new Substitution are not equal.