Package randoop.sequence
Class DummyVariable
java.lang.Object
randoop.sequence.Variable
randoop.sequence.DummyVariable
- All Implemented Interfaces:
Comparable<Variable>
A dummy variable, to ensure that parameter lists are the expected length.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The statement that produced this variable.int
The index of the statement that creates this value.getName()
Returns the name of this variable.getType()
Returns the type of this variable.int
hashCode()
boolean
True if this variable's value should be inlined as a literal at call sites, rather than referencing the variable.toString()
Methods inherited from class randoop.sequence.Variable
classToVariableName, compareTo
-
Field Details
-
DUMMY
The only DummyVariable that exists.
-
-
Constructor Details
-
DummyVariable
private DummyVariable()Create a DummyVariable.
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
getType
Description copied from class:Variable
Returns the type of this variable. -
getDeclaringStatement
Description copied from class:Variable
The statement that produced this variable.- Overrides:
getDeclaringStatement
in classVariable
- Returns:
- the statement to which this variable belongs
-
getDeclIndex
public int getDeclIndex()Description copied from class:Variable
The index of the statement that creates this value.- Overrides:
getDeclIndex
in classVariable
- Returns:
- the statement index where this variable is created
-
getName
Description copied from class:Variable
Returns the name of this variable. -
shouldInlineLiterals
public boolean shouldInlineLiterals()Description copied from class:Variable
True if this variable's value should be inlined as a literal at call sites, rather than referencing the variable.- Overrides:
shouldInlineLiterals
in classVariable
- Returns:
- whether this variable's value should be inlined as a literal at call sites
-