randoop
Class DummyStatement

Object
  extended by DummyStatement
All Implemented Interfaces:
Serializable, StatementKind

public class DummyStatement
extends Object
implements StatementKind, Serializable

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
static String ID
          ID for parsing purposes (see StatementKinds.parse method)
 
Constructor Summary
Constructor and Description
DummyStatement()
           
DummyStatement(String name)
           
 
Method Summary
Modifier and Type Method and Description
 void appendCode(Variable newVar, List<Variable> inputVars, StringBuilder b)
          Produces a Java source code representation of this statement and append it to the given StringBuilder.
 boolean equals(Object o)
           
 ExecutionOutcome execute(Object[] statementInput, PrintStream out)
          Executes this statement, given the inputs to the statement.
 List<Class<?>> getInputTypes()
          Returns the (ordered) list of input types for this statement kind.
 Class<?> getOutputType()
          Returns the type of this statement kind's output.
 int hashCode()
           
static StatementKind parse(String description)
          A string representing this dummy statement.
 String toParseableString()
          Returns a string representation of this StatementKind, which can subsequently be used in this class's parse method.
 String toString()
           
 String toStringShort()
           
 String toStringVerbose()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final String ID
ID for parsing purposes (see StatementKinds.parse method)

See Also:
Constant Field Values
Constructor Detail

DummyStatement

public DummyStatement()

DummyStatement

public DummyStatement(String name)
Method Detail

getInputTypes

public List<Class<?>> getInputTypes()
Description copied from interface: StatementKind
Returns the (ordered) list of input types for this statement kind.

Specified by:
getInputTypes in interface StatementKind

execute

public ExecutionOutcome execute(Object[] statementInput,
                                PrintStream out)
Description copied from interface: StatementKind
Executes this statement, given the inputs to the statement. Returns the results of execution as an ResultOrException object and can output results to specified PrintStream.

Specified by:
execute in interface StatementKind
Parameters:
statementInput - array containing appropriate inputs to statement
out - stream to output results of execution; can be null if you don't want to print.
Returns:
results of executing this statement

toString

public String toString()
Overrides:
toString in class Object

toStringShort

public String toStringShort()

toStringVerbose

public String toStringVerbose()

getOutputType

public Class<?> getOutputType()
Description copied from interface: StatementKind
Returns the type of this statement kind's output.

Specified by:
getOutputType in interface StatementKind

appendCode

public void appendCode(Variable newVar,
                       List<Variable> inputVars,
                       StringBuilder b)
Description copied from interface: StatementKind
Produces a Java source code representation of this statement and append it to the given StringBuilder.

Specified by:
appendCode in interface StatementKind

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toParseableString

public String toParseableString()
Description copied from interface: StatementKind
Returns a string representation of this StatementKind, which can subsequently be used in this class's parse method. For a class C implementing the StatementKind interface, this method should return a String s such that parsing the string returns an object equivalent to this object, i.e. C.parse(this.s).equals(this).

Specified by:
toParseableString in interface StatementKind

parse

public static StatementKind parse(String description)
A string representing this dummy statement. The string is of the form: (NAME) Where NAME is the name of the dummy statement. Example: (foobar)