public enum HostFunctionType extends java.lang.Enum<HostFunctionType> implements XdrElement
enum HostFunctionType { HOST_FUNCTION_TYPE_INVOKE_CONTRACT = 0, HOST_FUNCTION_TYPE_CREATE_CONTRACT = 1, HOST_FUNCTION_TYPE_UPLOAD_CONTRACT_WASM = 2, HOST_FUNCTION_TYPE_CREATE_CONTRACT_V2 = 3 };
Enum Constant and Description |
---|
HOST_FUNCTION_TYPE_CREATE_CONTRACT |
HOST_FUNCTION_TYPE_CREATE_CONTRACT_V2 |
HOST_FUNCTION_TYPE_INVOKE_CONTRACT |
HOST_FUNCTION_TYPE_UPLOAD_CONTRACT_WASM |
Modifier and Type | Method and Description |
---|---|
static HostFunctionType |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static HostFunctionType |
fromXdrBase64(java.lang.String xdr) |
static HostFunctionType |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static HostFunctionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HostFunctionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
toXdrBase64, toXdrByteArray
public static final HostFunctionType HOST_FUNCTION_TYPE_INVOKE_CONTRACT
public static final HostFunctionType HOST_FUNCTION_TYPE_CREATE_CONTRACT
public static final HostFunctionType HOST_FUNCTION_TYPE_UPLOAD_CONTRACT_WASM
public static final HostFunctionType HOST_FUNCTION_TYPE_CREATE_CONTRACT_V2
public static HostFunctionType[] values()
for (HostFunctionType c : HostFunctionType.values()) System.out.println(c);
public static HostFunctionType 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 int getValue()
public static HostFunctionType decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static HostFunctionType fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static HostFunctionType fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException