public abstract class SolidityType extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SolidityType.AddressType |
static class |
SolidityType.ArrayType |
static class |
SolidityType.BoolType |
static class |
SolidityType.Bytes32Type |
static class |
SolidityType.BytesType |
static class |
SolidityType.DynamicArrayType |
static class |
SolidityType.FunctionType |
static class |
SolidityType.IntType |
static class |
SolidityType.NumericType |
static class |
SolidityType.StaticArrayType |
static class |
SolidityType.StringType |
static class |
SolidityType.UnsignedIntType |
| Constructor and Description |
|---|
SolidityType(String name) |
| Modifier and Type | Method and Description |
|---|---|
Object |
decode(byte[] encoded) |
abstract Object |
decode(byte[] encoded,
int offset) |
abstract byte[] |
encode(Object value)
Encodes the value according to specific type rules
|
String |
getCanonicalName()
The canonical type name (used for the method signature creation)
E.g.
|
int |
getFixedSize() |
String |
getName()
The type name as it was specified in the interface description
|
static SolidityType |
getType(String typeName) |
boolean |
isDynamicType() |
String |
toString() |
protected String name
public SolidityType(String name)
public static SolidityType getType(String typeName)
public String getName()
public String getCanonicalName()
public abstract byte[] encode(Object value)
value - public abstract Object decode(byte[] encoded, int offset)
public Object decode(byte[] encoded)
public int getFixedSize()
public boolean isDynamicType()
Copyright © 2022 IoTeX Group. All rights reserved.