Package com.klaytn.caver.contract
Class ContractIOType
- java.lang.Object
-
- com.klaytn.caver.contract.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 namejava.lang.String
getType()
Getter function for typejava.lang.String
getTypeAsString()
Returns a type string.boolean
isIndexed()
Getter function for indexedvoid
setComponents(java.util.List<ContractIOType> components)
Setter function for componentsvoid
setIndexed(boolean indexed)
Setter function for indexedvoid
setName(java.lang.String name)
Setter function for namevoid
setType(java.lang.String type)
Setter function for type.
-
-
-
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
-
-