randoop
Class Variable

Object
  extended by 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

Field Summary
Modifier and Type Field and Description
 int index
           
 Sequence sequence
           
 
Constructor Summary
Constructor and Description
Variable(Sequence owner, int i)
           
 
Method Summary
Modifier and Type Method and Description
 int compareTo(Variable o)
           
 Variable copyWithIndexUpdated(Map<Integer,Integer> map)
           
 boolean equals(Object o)
           
 StatementKind getDeclaringStatement()
          The statement that produced this variable.
 int getDeclIndex()
          The index of the statement that creates this value.
 String getName()
           
 Class<?> getType()
          The declared type of the value
 int hashCode()
           
static List<Integer> statementIndexList(List<Variable> values)
           
 String toString()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

index

public final int index

sequence

public final Sequence sequence
Constructor Detail

Variable

public Variable(Sequence owner,
                int i)
Method Detail

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>