Class StubInfo


  • public final class StubInfo
    extends Object
    Stub information. This information belongs to each stub.
    • Constructor Detail

      • StubInfo

        public StubInfo()
        StubInfo empty constructor
      • StubInfo

        public StubInfo​(String newnamespace,
                        String newclassName,
                        String newparentClassName,
                        AccountID newapplicantID,
                        MetaClassID newclassID,
                        NamespaceID newnamespaceID,
                        Map<String,​ImplementationStubInfo> newimplementationsByID,
                        Map<String,​ImplementationStubInfo> newimplementations,
                        Map<String,​PropertyStubInfo> newproperties,
                        List<String> newpropertyListWithNulls,
                        Set<ContractID> newContracts)
        StubInfo constructor
        Parameters:
        newnamespace - Namespace of the stub
        newclassName - Name of class of the stub
        newparentClassName - Name of parent class of the stub (used to seek for impls)
        newapplicantID - ID of the account applicant of the contract.
        newclassID - ID of class
        newnamespaceID - ID of the namespace
        newimplementationsByID - Implementations by id
        newimplementations - Information of the implementations in the stub.
        newproperties - Information of the properties in the stub.
        newpropertyListWithNulls - Information of the property ordered list (plus null fields) in the stub.
        newContracts - The IDs of the contracts used for this stub.
    • Method Detail

      • getContracts

        public Set<ContractID> getContracts()
        Get the StubInfoForGeneration::contracts
        Returns:
        the contracts
      • setContracts

        public void setContracts​(Set<ContractID> newContracts)
        Set the StubInfoForGeneration::contracts
        Parameters:
        newContracts - New contracts
      • getImplementationByID

        public ImplementationStubInfo getImplementationByID​(String implID)
        Get implementation Stub Info from impl id
        Parameters:
        implID - ID of impl.
        Returns:
        Implementation stub info
      • getImplementationByNameAndSignature

        public ImplementationStubInfo getImplementationByNameAndSignature​(String implNameAndDesc)
        Get implementation Stub Info from op name and descriptor
        Parameters:
        implNameAndDesc - Implementation name and descriptor
        Returns:
        Implementation stub info
      • setImplementations

        public void setImplementations​(Map<String,​ImplementationStubInfo> newimplementations)
        Set the StubInfoForGeneration::implementations
        Parameters:
        newimplementations - the implementations to set
      • getProperties

        public Map<String,​PropertyStubInfo> getProperties()
        Get the StubInfo::properties
        Returns:
        the properties
      • setProperties

        public void setProperties​(Map<String,​PropertyStubInfo> newproperties)
        Set the StubInfo::properties
        Parameters:
        newproperties - the properties to set
      • getPropertyListWithNulls

        public List<String> getPropertyListWithNulls()
        Get the StubInfo::proeprtyListWithNulls
        Returns:
        the propertyListWithNulls
      • setPropertyListWithNulls

        public void setPropertyListWithNulls​(List<String> newpropertyListWithNulls)
        Set the StubInfo::propertyListWithNulls
        Parameters:
        newpropertyListWithNulls - the list of property names to set
      • containsProperty

        public boolean containsProperty​(String propertyName)
        Check if there is an PropertyStubInfo with name provided
        Parameters:
        propertyName - Property name
        Returns:
        TRUE if there is an Property with name provided. FALSE otherwise.
      • getApplicantID

        public AccountID getApplicantID()
        Get the StubInfoForGeneration::applicantID
        Returns:
        the applicantID
      • setApplicantID

        public void setApplicantID​(AccountID newapplicantID)
        Set the StubInfoForGeneration::applicantID
        Parameters:
        newapplicantID - the applicantID to set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getNamespace

        public String getNamespace()
        Get the StubInfo::namespace
        Returns:
        the namespace
      • setNamespace

        public void setNamespace​(String newnamespace)
        Set the StubInfo::namespace
        Parameters:
        newnamespace - the namespace to set
      • getClassName

        public String getClassName()
        Get the StubInfo::className
        Returns:
        the className
      • setClassName

        public void setClassName​(String newclassName)
        Set the StubInfo::className
        Parameters:
        newclassName - the className to set
      • getClassID

        public MetaClassID getClassID()
        Get the StubInfo::classID
        Returns:
        the classID
      • setClassID

        public void setClassID​(MetaClassID newclassID)
        Set the StubInfo::classID
        Parameters:
        newclassID - the classID to set
      • getNamespaceID

        public NamespaceID getNamespaceID()
        Get the StubInfo::namespaceID
        Returns:
        the namespaceID
      • setNamespaceID

        public void setNamespaceID​(NamespaceID newnamespaceID)
        Set the StubInfo::namespaceID
        Parameters:
        newnamespaceID - the namespaceID to set
      • getParentClassName

        public String getParentClassName()
        Get parentClassName
        Returns:
        the parentClassName
      • setParentClassName

        public void setParentClassName​(String newparentClassName)
        Set parentClassName
        Parameters:
        newparentClassName - the parentClassName to set
      • getPropertyWithName

        public PropertyStubInfo getPropertyWithName​(String name)
        Get property with name provided
        Parameters:
        name - Name of the propery
        Returns:
        Property stub info.
      • setImplementationsByID

        public void setImplementationsByID​(Map<String,​ImplementationStubInfo> newimplementationsByID)
        Set implementationsByID
        Parameters:
        newimplementationsByID - the implementationsByID to set