类 ABIObject

java.lang.Object
org.fisco.bcos.sdk.abi.wrapper.ABIObject

public class ABIObject
extends java.lang.Object
  • 构造器详细资料

    • ABIObject

      public ABIObject​(ABIObject.ObjectType type)
    • ABIObject

      public ABIObject​(ABIObject.ValueType valueType)
    • ABIObject

      public ABIObject​(ABIObject.ValueType bytesValueType, int bytesLength)
    • ABIObject

      public ABIObject​(ABIObject.ListType listType)
    • ABIObject

      public ABIObject​(Uint256 uintValue)
    • ABIObject

      public ABIObject​(Int256 intValue)
    • ABIObject

      public ABIObject​(Address addressValue)
    • ABIObject

      public ABIObject​(Bool boolValue)
    • ABIObject

      public ABIObject​(Utf8String stringValue)
    • ABIObject

      public ABIObject​(DynamicBytes dynamicBytesValue)
    • ABIObject

      public ABIObject​(Bytes bytesValue)
    • ABIObject

      public ABIObject​(Bytes bytesValue, int bytesLength)
  • 方法详细资料

    • newObjectWithoutValue

      public ABIObject newObjectWithoutValue()
    • newObject

      public ABIObject newObject()
    • isDynamic

      public boolean isDynamic()
      Checks to see if the current type is dynamic
      返回:
      true/false
    • offset

      public int offset()
      dynamic offset of this object
      返回:
      the offset of the ABIObject
    • offsetAsByteLength

      public int offsetAsByteLength()
    • offsetAsHexLength

      public int offsetAsHexLength()
    • encode

      public java.lang.String encode()
      encode this object
      返回:
      the encoded object
    • decode

      public ABIObject decode​(java.lang.String input)
      decode this object
      参数:
      input - the string to be decoded into ABIObject
      返回:
      the decoded ABIObject
    • getType

      public ABIObject.ObjectType getType()
    • setType

      public void setType​(ABIObject.ObjectType type)
    • getName

      public java.lang.String getName()
    • setName

      public void setName​(java.lang.String name)
    • getValueType

      public ABIObject.ValueType getValueType()
    • getNumericValue

      public NumericType getNumericValue()
    • getBoolValue

      public Bool getBoolValue()
    • setBoolValue

      public void setBoolValue​(Bool boolValue)
    • setNumericValue

      public void setNumericValue​(NumericType numericValue)
    • getBytesValue

      public Bytes getBytesValue()
    • setBytesValue

      public void setBytesValue​(Bytes bytesValue)
    • getAddressValue

      public Address getAddressValue()
    • setAddressValue

      public void setAddressValue​(Address addressValue)
    • getStructFields

      public java.util.List<ABIObject> getStructFields()
    • setStructFields

      public void setStructFields​(java.util.List<ABIObject> structFields)
    • getListType

      public ABIObject.ListType getListType()
    • setListType

      public void setListType​(ABIObject.ListType listType)
    • getListValues

      public java.util.List<ABIObject> getListValues()
    • setListValues

      public void setListValues​(java.util.List<ABIObject> listValues)
    • setValueType

      public void setValueType​(ABIObject.ValueType valueType)
    • getDynamicBytesValue

      public DynamicBytes getDynamicBytesValue()
    • setDynamicBytesValue

      public void setDynamicBytesValue​(DynamicBytes dynamicBytesValue)
    • getStringValue

      public Utf8String getStringValue()
    • setStringValue

      public void setStringValue​(Utf8String stringValue)
    • getListValueType

      public ABIObject getListValueType()
    • setListValueType

      public void setListValueType​(ABIObject listValueType)
    • getListLength

      public int getListLength()
    • setListLength

      public void setListLength​(int listLength)
    • getBytesLength

      public int getBytesLength()
    • setBytesLength

      public void setBytesLength​(int bytesLength)
    • toString

      public java.lang.String toString()
      覆盖:
      toString 在类中 java.lang.Object