public class Method extends Struct implements Types.IMethod
Extrinsic function descriptor, as defined in https://github.com/paritytech/wiki/blob/master/Extrinsic.md#the-extrinsic-format-for-node
.
Modifier and Type | Class and Description |
---|---|
static class |
Method.DecodedMethod |
static class |
Method.DecodeMethodInput |
static class |
Method.MethodFunction |
static class |
Method.MethodIndex
A wrapper around the
[sectionIndex, methodIndex] value that uniquely identifies a method |
static class |
Method.Methods |
static class |
Method.ModulesWithMethods |
Modifier and Type | Field and Description |
---|---|
protected Modules.FunctionMetadata |
meta |
Constructor and Description |
---|
Method(java.lang.Object value,
Modules.FunctionMetadata meta) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<Modules.FunctionArgumentMetadata> |
filterOrigin(Modules.FunctionMetadata meta) |
java.util.List<Codec> |
getArgs()
The arguments for the function call
|
Types.ConstructorDef |
getArgsDef() |
byte[] |
getCallIndex()
The encoded
[sectionIndex, methodIndex] identifier |
byte[] |
getData()
The encoded data
|
Modules.FunctionMetadata |
getMeta()
The FunctionMetadata
|
boolean |
hasOrigin()
true if the Origin type is on the method (extrinsic method) |
static void |
injectMethods(Method.ModulesWithMethods moduleMethods) |
builder, eq, getEncodedLength, getField, isEmpty, toArray, toHex, toJson, toString, toU8a, with
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
finalize, getClass, notify, notifyAll, wait, wait, wait
eq, getConstructorCodec, getEncodedLength, isEmpty, toHex, toJson, toU8a, toU8a
protected Modules.FunctionMetadata meta
public Method(java.lang.Object value, Modules.FunctionMetadata meta)
public static java.util.List<Modules.FunctionArgumentMetadata> filterOrigin(Modules.FunctionMetadata meta)
public static void injectMethods(Method.ModulesWithMethods moduleMethods)
public java.util.List<Codec> getArgs()
The arguments for the function call
getArgs
in interface Types.IMethod
public Types.ConstructorDef getArgsDef()
getArgsDef
in interface Types.IMethod
public byte[] getCallIndex()
The encoded [sectionIndex, methodIndex]
identifier
getCallIndex
in interface Types.IMethod
public byte[] getData()
The encoded data
getData
in interface Types.IMethod
public boolean hasOrigin()
true
if the Origin
type is on the method (extrinsic method)
hasOrigin
in interface Types.IMethod
public Modules.FunctionMetadata getMeta()
The FunctionMetadata
getMeta
in interface Types.IMethod