java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.datatype.AbiType
The type Abi type.
-
Constructor Summary
ConstructorsConstructorDescriptionAbiType(AbiTypePrefix prefix) Instantiates a new Abi type.AbiType(AbiTypePrefix prefix, int size) Instantiates a new Abi type.AbiType(AbiTypePrefix prefix, int size, boolean isArray) Creates an instance of aAbiTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionabiName()Abi name string.static booleanarrayMatcher(String typeString) Array matcher boolean.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisArray()Returns the value of theisArrayrecord component.static AbiTypeOf abi type.prefix()Returns the value of theprefixrecord component.intsize()Returns the value of thesizerecord component.tech.deplant.java4ever.binding.Abi.AbiParamtoAbiParam(String paramName, tech.deplant.java4ever.binding.Abi.AbiParam[] components) To abi param abi . abi param.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AbiType
Instantiates a new Abi type.- Parameters:
prefix- the prefixsize- the size
-
AbiType
-
AbiType
Creates an instance of aAbiTyperecord class.- Parameters:
prefix- the value for theprefixrecord componentsize- the value for thesizerecord componentisArray- the value for theisArrayrecord component
-
-
Method Details
-
of
-
arrayMatcher
Array matcher boolean.- Parameters:
typeString- the type string- Returns:
- the boolean
-
toAbiParam
public tech.deplant.java4ever.binding.Abi.AbiParam toAbiParam(String paramName, tech.deplant.java4ever.binding.Abi.AbiParam[] components) To abi param abi . abi param.- Parameters:
paramName- the param namecomponents- the components- Returns:
- the abi . abi param
-
abiName
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
isArray
public boolean isArray()Returns the value of theisArrayrecord component.- Returns:
- the value of the
isArrayrecord component
-