Package com.klaytn.caver.abi
Class FunctionEncoder
- java.lang.Object
-
- com.klaytn.caver.abi.FunctionEncoder
-
- Direct Known Subclasses:
DefaultFunctionEncoder
public abstract class FunctionEncoder extends java.lang.Object
Delegates toDefaultFunctionEncoder
unless aFunctionEncoderProvider
SPI is found, in which case the first implementation found will be used.- See Also:
DefaultFunctionEncoder
,FunctionEncoderProvider
-
-
Constructor Summary
Constructors Constructor Description FunctionEncoder()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static java.lang.String
buildMethodId(java.lang.String methodSignature)
protected static java.lang.String
buildMethodSignature(java.lang.String methodName, java.util.List<Type> parameters)
static java.lang.String
encode(Function function)
static java.lang.String
encodeConstructor(java.util.List<Type> parameters)
protected abstract java.lang.String
encodeFunction(Function function)
protected abstract java.lang.String
encodeParameters(java.util.List<Type> parameters)
static Function
makeFunction(java.lang.String fnname, java.util.List<java.lang.String> solidityInputTypes, java.util.List<java.lang.Object> arguments, java.util.List<java.lang.String> solidityOutputTypes)
-
-
-
Method Detail
-
encode
public static java.lang.String encode(Function function)
-
encodeConstructor
public static java.lang.String encodeConstructor(java.util.List<Type> parameters)
-
makeFunction
public static Function makeFunction(java.lang.String fnname, java.util.List<java.lang.String> solidityInputTypes, java.util.List<java.lang.Object> arguments, java.util.List<java.lang.String> solidityOutputTypes) throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Throws:
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
encodeFunction
protected abstract java.lang.String encodeFunction(Function function)
-
encodeParameters
protected abstract java.lang.String encodeParameters(java.util.List<Type> parameters)
-
buildMethodSignature
protected static java.lang.String buildMethodSignature(java.lang.String methodName, java.util.List<Type> parameters)
-
buildMethodId
protected static java.lang.String buildMethodId(java.lang.String methodSignature)
-
-