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, withclear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizefinalize, getClass, notify, notifyAll, wait, wait, waiteq, getConstructorCodec, getEncodedLength, isEmpty, toHex, toJson, toU8a, toU8aprotected 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.IMethodpublic Types.ConstructorDef getArgsDef()
getArgsDef in interface Types.IMethodpublic byte[] getCallIndex()
The encoded [sectionIndex, methodIndex] identifier
getCallIndex in interface Types.IMethodpublic byte[] getData()
The encoded data
getData in interface Types.IMethodpublic boolean hasOrigin()
true if the Origin type is on the method (extrinsic method)
hasOrigin in interface Types.IMethodpublic Modules.FunctionMetadata getMeta()
The FunctionMetadata
getMeta in interface Types.IMethod