randoop
Class Variable
Object
Variable
- All Implemented Interfaces:
- Serializable, Comparable<Variable>
public class Variable
extends Object
implements Comparable<Variable>, Serializable
Represents the result of a statement call in a sequence.
- See Also:
- Serialized Form
| Methods inherited from class Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
index
public final int index
sequence
public final Sequence sequence
Variable
public Variable(Sequence owner,
int i)
toString
public String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
getType
public Class<?> getType()
- The declared type of the value
getDeclaringStatement
public StatementKind getDeclaringStatement()
- The statement that produced this variable.
getDeclIndex
public int getDeclIndex()
- The index of the statement that creates this value.
copyWithIndexUpdated
public Variable copyWithIndexUpdated(Map<Integer,Integer> map)
statementIndexList
public static List<Integer> statementIndexList(List<Variable> values)
getName
public String getName()
compareTo
public int compareTo(Variable o)
- Specified by:
compareTo in interface Comparable<Variable>