Class ASTSignatureChange

    • Constructor Detail

      • ASTSignatureChange

        public ASTSignatureChange​(Signature defSignature,
                                  Signature fixSignature)

        Constructor for ASTSignatureChange.

        Parameters:
        defSignature - a Signature object.
        fixSignature - a Signature object.
      • ASTSignatureChange

        public ASTSignatureChange​(ch.uzh.ifi.seal.changedistiller.model.entities.StructureEntityVersion strEntityVersion)

        Constructor for ASTSignatureChange.

        Parameters:
        strEntityVersion - a StructureEntityVersion object.
    • Method Detail

      • addChange

        public void addChange​(ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange scc)

        addChange.

        Parameters:
        scc - a SourceCodeChange object.
      • removeChange

        public void removeChange​(ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange scc)

        removeChange.

        Parameters:
        scc - a SourceCodeChange object.
      • toSourceCodeChanges

        public static Set<ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange> toSourceCodeChanges​(Set<Object> _objects)

        toSourceCodeChanges.

        Parameters:
        _objects - a Set object.
        Returns:
        a Set object.
      • getStructureEntity

        public ch.uzh.ifi.seal.changedistiller.model.entities.StructureEntityVersion getStructureEntity()

        Getter for the field structureEntity.

        Returns:
        a StructureEntityVersion object.
      • setStructureEntity

        public void setStructureEntity​(ch.uzh.ifi.seal.changedistiller.model.entities.StructureEntityVersion structureEntity)

        Setter for the field structureEntity.

        Parameters:
        structureEntity - a StructureEntityVersion object.
      • hashCode

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

        public static boolean isSameElements​(Collection<ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange> _a,
                                             Collection<ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange> _b)

        isSameElements.

        Parameters:
        _a - a Collection object.
        _b - a Collection object.
        Returns:
        a boolean.
      • getmDefSignature

        public Signature getmDefSignature()

        Getter for the field mDefSignature.

        Returns:
        a Signature object.
      • setmDefSignature

        public void setmDefSignature​(Signature mDefSignature)

        Setter for the field mDefSignature.

        Parameters:
        mDefSignature - a Signature object.
      • getmFixSignature

        public Signature getmFixSignature()

        Getter for the field mFixSignature.

        Returns:
        a Signature object.
      • setmFixSignature

        public void setmFixSignature​(Signature mFixSignature)

        Setter for the field mFixSignature.

        Parameters:
        mFixSignature - a Signature object.
      • getListOfChanges

        public Set<ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange> getListOfChanges()

        Getter for the field listOfChanges.

        Returns:
        a Set object.
      • setListOfChanges

        public void setListOfChanges​(Set<ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange> listOfChanges)

        Setter for the field listOfChanges.

        Parameters:
        listOfChanges - a Set object.
      • getmMethodName

        public String getmMethodName()

        Getter for the field mMethodName.

        Returns:
        a String object.
      • setmMethodName

        public void setmMethodName​(String mMethodName)

        Setter for the field mMethodName.

        Parameters:
        mMethodName - a String object.
      • getModifications

        public Set<Object> getModifications()
        Returns the set of edit operations required to change the defective AST int the fixed one. Attention: This method will change the defective signature passed as argument to the constructor.
        Specified by:
        getModifications in interface SignatureChange
      • toString

        public String toString()
        Returns a formatted 'SourceCodeChange' elements
        Overrides:
        toString in class Object
        Returns:
        a String object.