Class DummyVariable

java.lang.Object
randoop.sequence.Variable
randoop.sequence.DummyVariable
All Implemented Interfaces:
Comparable<Variable>

public class DummyVariable extends Variable
A dummy variable, to ensure that parameter lists are the expected length.
  • Field Details

    • DUMMY

      public static final DummyVariable DUMMY
      The only DummyVariable that exists.
  • Constructor Details

    • DummyVariable

      private DummyVariable()
      Create a DummyVariable.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Variable
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Variable
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Variable
    • getType

      public Type getType()
      Description copied from class: Variable
      Returns the type of this variable.
      Overrides:
      getType in class Variable
      Returns:
      the type of this variable
    • getDeclaringStatement

      public Statement getDeclaringStatement()
      Description copied from class: Variable
      The statement that produced this variable.
      Overrides:
      getDeclaringStatement in class Variable
      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 class Variable
      Returns:
      the statement index where this variable is created
    • getName

      public String getName()
      Description copied from class: Variable
      Returns the name of this variable.
      Overrides:
      getName in class Variable
      Returns:
      the name of this variable as a string
    • 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 class Variable
      Returns:
      whether this variable's value should be inlined as a literal at call sites