Package org.fisco.bcos.sdk.abi.wrapper
Class ABIObject
java.lang.Object
org.fisco.bcos.sdk.abi.wrapper.ABIObject
public class ABIObject
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classABIObject.ListTypestatic classABIObject.ObjectTypestatic classABIObject.ValueType -
Constructor Summary
Constructors Constructor Description ABIObject(Address addressValue)ABIObject(Bool boolValue)ABIObject(Bytes bytesValue)ABIObject(DynamicBytes dynamicBytesValue)ABIObject(Int256 intValue)ABIObject(Uint256 uintValue)ABIObject(Utf8String stringValue)ABIObject(ABIObject.ListType listType)ABIObject(ABIObject.ObjectType type)ABIObject(ABIObject.ValueType valueType) -
Method Summary
-
Constructor Details
-
Method Details
-
newObjectWithoutValue
-
newObject
-
isDynamic
public boolean isDynamic()Checks to see if the current type is dynamic- Returns:
- true/false
-
offset
public int offset()dynamic offset of this object- Returns:
- the offset of the ABIObject
-
offsetAsByteLength
public int offsetAsByteLength() -
offsetAsHexLength
public int offsetAsHexLength() -
encode
public java.lang.String encode()encode this object- Returns:
- the encoded object
-
decode
decode this object- Parameters:
input- the string to be decoded into ABIObject- Returns:
- the decoded ABIObject
-
getType
-
setType
-
getName
public java.lang.String getName() -
setName
public void setName(java.lang.String name) -
getValueType
-
getNumericValue
-
getBoolValue
-
setBoolValue
-
setNumericValue
-
getBytesValue
-
setBytesValue
-
getAddressValue
-
setAddressValue
-
getStructFields
-
setStructFields
-
getListType
-
setListType
-
getListValues
-
setListValues
-
setValueType
-
getDynamicBytesValue
-
setDynamicBytesValue
-
getStringValue
-
setStringValue
-
getListValueType
-
setListValueType
-
getListLength
public int getListLength() -
setListLength
public void setListLength(int listLength) -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-