Package com.klaytn.caver.abi
Class TypeDecoder
- java.lang.Object
-
- com.klaytn.caver.abi.TypeDecoder
-
public class TypeDecoder extends java.lang.Object
Contract Application Binary Interface (ABI) decoding for types. Decoding is not documented, but is the reverse of the encoding details located here.
-
-
Constructor Summary
Constructors Constructor Description TypeDecoder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Array>
Tdecode(java.lang.String input, int offset, TypeReference<T> typeReference)
static <T extends Type>
TdecodeStaticStruct(java.lang.String input, int offset, TypeReference<T> typeReference)
static Type
instantiateType(TypeReference ref, java.lang.Object value)
static Type
instantiateType(java.lang.String solidityType, java.lang.Object value)
-
-
-
Method Detail
-
instantiateType
public static Type instantiateType(java.lang.String solidityType, java.lang.Object value) throws java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
- Throws:
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
-
instantiateType
public static Type instantiateType(TypeReference ref, java.lang.Object value) throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.InstantiationException, java.lang.ClassNotFoundException
- Throws:
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.InstantiationException
java.lang.ClassNotFoundException
-
decode
public static <T extends Array> T decode(java.lang.String input, int offset, TypeReference<T> typeReference)
-
decodeStaticStruct
public static <T extends Type> T decodeStaticStruct(java.lang.String input, int offset, TypeReference<T> typeReference) throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
-
-