public final class MutationIdentifier extends Object implements Comparable<MutationIdentifier>, Serializable
Constructor and Description |
---|
MutationIdentifier(Location location,
Collection<Integer> indexes,
String mutatorUniqueId) |
MutationIdentifier(Location location,
int index,
String mutatorUniqueId) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MutationIdentifier other) |
boolean |
equals(Object obj) |
ClassName |
getClassName()
Returns the class in which this mutation is located
|
int |
getFirstIndex()
Returns the index to the first instruction on which this mutation occurs.
|
List<Integer> |
getIndexes()
Returns the list of instruction indexes to which this mutation applies
|
Location |
getLocation()
Returns the location of the mutations
|
String |
getMutator()
Returns the name of the mutator that created this mutation
|
int |
hashCode() |
boolean |
matches(MutationIdentifier id)
Returns true if this mutation has a matching identifier
|
String |
toString() |
public MutationIdentifier(Location location, Collection<Integer> indexes, String mutatorUniqueId)
public Location getLocation()
public String getMutator()
public List<Integer> getIndexes()
public int getFirstIndex()
public boolean matches(MutationIdentifier id)
id
- the MutationIdentifier to matchpublic ClassName getClassName()
public int compareTo(MutationIdentifier other)
compareTo
in interface Comparable<MutationIdentifier>
Copyright © 2021 org.pitest. All rights reserved.