Class ContractIOType


  • public class ContractIOType
    extends java.lang.Object
    Representing a Contract's method or event parameter information.
    • Constructor Summary

      Constructors 
      Constructor Description
      ContractIOType()
      Creates a ContractIOType instance.
      ContractIOType​(java.lang.String name, java.lang.String type, boolean indexed)
      Creates a ContractIOType instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<ContractIOType> getComponents()
      Getter function for components.
      java.lang.String getName()
      Getter function for name
      java.lang.String getType()
      Getter function for type
      java.lang.String getTypeAsString()
      Returns a type string.
      boolean isIndexed()
      Getter function for indexed
      void setComponents​(java.util.List<ContractIOType> components)
      Setter function for components
      void setIndexed​(boolean indexed)
      Setter function for indexed
      void setName​(java.lang.String name)
      Setter function for name
      void setType​(java.lang.String type)
      Setter function for type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContractIOType

        public ContractIOType()
        Creates a ContractIOType instance.
      • ContractIOType

        public ContractIOType​(java.lang.String name,
                              java.lang.String type,
                              boolean indexed)
        Creates a ContractIOType instance.
        Parameters:
        name - The name of the parameter.
        type - A solidity type of parameter.
        indexed - The location of parameter. True if the field is part of the log’s topics, false if it one of the log’s data segment.
    • Method Detail

      • getName

        public java.lang.String getName()
        Getter function for name
        Returns:
        String
      • getType

        public java.lang.String getType()
        Getter function for type
        Returns:
        String
      • getComponents

        public java.util.List<ContractIOType> getComponents()
        Getter function for components.
        Returns:
        List
      • isIndexed

        public boolean isIndexed()
        Getter function for indexed
        Returns:
        indexed.
      • setName

        public void setName​(java.lang.String name)
        Setter function for name
        Parameters:
        name - parameter name
      • setType

        public void setType​(java.lang.String type)
        Setter function for type.
        Parameters:
        type - solidity type.
      • setIndexed

        public void setIndexed​(boolean indexed)
        Setter function for indexed
        Parameters:
        indexed - The location of parameter. True if the field is part of the log’s topics, false if it one of the log’s data segment.
      • setComponents

        public void setComponents​(java.util.List<ContractIOType> components)
        Setter function for components
        Parameters:
        components - The tuple's components list.
      • getTypeAsString

        public java.lang.String getTypeAsString()
        Returns a type string. If type string has a tuple, the components of the tuple are listed and returned.
        Returns:
        String