public static enum ContractRunner.INVOCATION_TYPE extends java.lang.Enum<ContractRunner.INVOCATION_TYPE>
Enum Constant and Description |
---|
BLOCK |
REQUEST |
TRANSACTION |
VOUCHER |
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<ContractRunner.INVOCATION_TYPE> |
getByMethodName(java.lang.String methodName) |
java.lang.Class |
getContextClass() |
java.lang.String |
getMethodName() |
org.apache.commons.math3.stat.descriptive.StatisticalSummary |
getStatErr(java.lang.String contractClassName) |
org.apache.commons.math3.stat.descriptive.StatisticalSummary |
getStatNormal(java.lang.String contractClassName) |
abstract JO |
invokeMethod(Contract contract,
AbstractContractContext context) |
static ContractRunner.INVOCATION_TYPE |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ContractRunner.INVOCATION_TYPE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContractRunner.INVOCATION_TYPE TRANSACTION
public static final ContractRunner.INVOCATION_TYPE BLOCK
public static final ContractRunner.INVOCATION_TYPE REQUEST
public static final ContractRunner.INVOCATION_TYPE VOUCHER
public static ContractRunner.INVOCATION_TYPE[] values()
for (ContractRunner.INVOCATION_TYPE c : ContractRunner.INVOCATION_TYPE.values()) System.out.println(c);
public static ContractRunner.INVOCATION_TYPE valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getMethodName()
public java.lang.Class getContextClass()
public org.apache.commons.math3.stat.descriptive.StatisticalSummary getStatErr(java.lang.String contractClassName)
public org.apache.commons.math3.stat.descriptive.StatisticalSummary getStatNormal(java.lang.String contractClassName)
public static java.util.Optional<ContractRunner.INVOCATION_TYPE> getByMethodName(java.lang.String methodName)
public abstract JO invokeMethod(Contract contract, AbstractContractContext context) throws NxtException
NxtException