| Enum Constant and Description |
|---|
ANY
Indicates the type is not known
|
BOOL
boolean primitive
|
BYTE_ARRAY
Byte array prefixed with U32 length (FixedList)
|
I32
signed 32-bit integer primitive
|
I64
signed 64-bit integer primitive
|
KEY
global state key
|
LIST
List of values of the given type (e.g.
|
MAP
Map(CLType, CLType), // key-value association where keys and values have the given types
|
OPTION
optional value of the given type Option(CLType)
|
PUBLIC_KEY
NO DEF IN SPEC https://docs.casperlabs.io/en/latest/implementation/serialization-standard.html
|
RESULT
co-product of the the given types; one variant meaning success, the other failure
|
STRING
e.g.
|
TUPLE_1
Tuple1(CLType) single value of the given type
|
TUPLE_2
Tuple2(CLType, CLType), // pair consisting of elements of the given types
|
TUPLE_3
Tuple3(CLType, CLType, CLType), // triple consisting of elements of the given types
|
U128
unsigned 128-bit integer primitive
|
U256
unsigned 256-bit integer primitive
|
U32
unsigned 32-bit integer primitive
|
U512
unsigned 512-bit integer primitive
|
U64
unsigned 64-bit integer primitive
|
U8
unsigned 8-bit integer primitive
|
UNIT
singleton value without additional semantics
|
UREF
unforgeable reference
|
| Modifier and Type | Method and Description |
|---|---|
static CLType |
fromString(java.lang.String jsonName) |
byte |
getClType() |
java.lang.String |
getJsonName()
Obtains the JSON name of the field.
|
static boolean |
isNumeric(CLType clType) |
static CLType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CLType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CLType BOOL
public static final CLType I32
public static final CLType I64
public static final CLType U8
public static final CLType U32
public static final CLType U64
public static final CLType U128
public static final CLType U256
public static final CLType U512
public static final CLType UNIT
public static final CLType STRING
public static final CLType KEY
public static final CLType UREF
public static final CLType OPTION
public static final CLType LIST
public static final CLType BYTE_ARRAY
public static final CLType RESULT
public static final CLType MAP
public static final CLType TUPLE_1
public static final CLType TUPLE_2
public static final CLType TUPLE_3
public static final CLType ANY
public static final CLType PUBLIC_KEY
public static CLType[] values()
for (CLType c : CLType.values()) System.out.println(c);
public static CLType 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 static CLType fromString(java.lang.String jsonName)
public static boolean isNumeric(CLType clType)
public byte getClType()
public java.lang.String getJsonName()
CLName annotation exists on the CLType returns its value
otherwise the name.