randoop
Class ObjectContractUtils

Object
  extended by ObjectContractUtils

public class ObjectContractUtils
extends Object

Utility methods for safely executing and printing ObjectContract code.


Constructor Summary
Constructor and Description
ObjectContractUtils()
           
 
Method Summary
Modifier and Type Method and Description
static ExecutionOutcome execute(ObjectContract c, Object... objs)
          Executes the given contract via reflection.
static String localizeContractCode(String str, Variable... vars)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectContractUtils

public ObjectContractUtils()
Method Detail

execute

public static ExecutionOutcome execute(ObjectContract c,
                                       Object... objs)
Executes the given contract via reflection.


localizeContractCode

public static String localizeContractCode(String str,
                                          Variable... vars)