public class ObjectContractUtils
extends java.lang.Object
ObjectContract code.| Modifier | Constructor and Description |
|---|---|
private |
ObjectContractUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ExecutionOutcome |
execute(ObjectContract c,
java.lang.Object... objs)
Executes the given contract via reflection.
|
static java.lang.String |
localizeContractCode(java.lang.String str,
Variable... vars)
Replace dummy variables such as "x0" in the code by their real names.
|
public static ExecutionOutcome execute(ObjectContract c, java.lang.Object... objs)
c - the contract to executeobjs - the list of values to substitute for variablespublic static java.lang.String localizeContractCode(java.lang.String str,
Variable... vars)
str - the contract code as a string with dummy variablesvars - list of Variable objects