public class TypeDecoder extends Object
| 构造器和说明 |
|---|
TypeDecoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T extends Type> |
decode(String input,
Class<T> type) |
static <T extends Type> |
decode(String input,
int offset,
Class<T> type) |
static <T extends Array> |
decode(String input,
int offset,
TypeReference<T> typeReference) |
static Address |
decodeAddress(String input) |
static Bool |
decodeBool(String rawInput,
int offset) |
static <T extends Bytes> |
decodeBytes(String input,
Class<T> type) |
static <T extends Bytes> |
decodeBytes(String input,
int offset,
Class<T> type) |
static <T extends Type> |
decodeDynamicArray(String input,
int offset,
TypeReference<T> typeReference) |
static DynamicBytes |
decodeDynamicBytes(String input,
int offset) |
static <T extends Type> |
decodeDynamicStruct(String input,
int offset,
TypeReference<T> typeReference) |
static <T extends NumericType> |
decodeNumeric(String input,
Class<T> type) |
static <T extends Type> |
decodeStaticArray(String input,
int offset,
TypeReference<T> typeReference,
int length) |
static <T extends Type> |
decodeStaticStruct(String input,
int offset,
TypeReference<T> typeReference) |
static Utf8String |
decodeUtf8String(String input,
int offset) |
static Type |
instantiateType(String solidityType,
Object value) |
static Type |
instantiateType(TypeReference ref,
Object value) |
public static Type instantiateType(String solidityType, Object value) throws InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException, ClassNotFoundException
public static Type instantiateType(TypeReference ref, Object value) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException, ClassNotFoundException
public static <T extends Array> T decode(String input, int offset, TypeReference<T> typeReference)
public static <T extends NumericType> T decodeNumeric(String input, Class<T> type)
public static DynamicBytes decodeDynamicBytes(String input, int offset)
public static Utf8String decodeUtf8String(String input, int offset)
public static <T extends Type> T decodeStaticArray(String input, int offset, TypeReference<T> typeReference, int length)
public static <T extends Type> T decodeStaticStruct(String input, int offset, TypeReference<T> typeReference)
public static <T extends Type> T decodeDynamicArray(String input, int offset, TypeReference<T> typeReference)
public static <T extends Type> T decodeDynamicStruct(String input, int offset, TypeReference<T> typeReference)
Copyright © 2025. All rights reserved.