Package org.eclipse.steady.java.sign
Class ASTSignatureChange
- java.lang.Object
-
- org.eclipse.steady.java.sign.DistillerUtil
-
- org.eclipse.steady.java.sign.ASTSignatureChange
-
- All Implemented Interfaces:
Serializable,SignatureChange
public class ASTSignatureChange extends DistillerUtil implements SignatureChange, Serializable
ASTSignatureChange class.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classASTSignatureChange.OperationType
-
Field Summary
-
Fields inherited from class org.eclipse.steady.java.sign.DistillerUtil
mDistiller, mInjector
-
-
Constructor Summary
Constructors Constructor Description ASTSignatureChange(ch.uzh.ifi.seal.changedistiller.model.entities.StructureEntityVersion strEntityVersion)Constructor for ASTSignatureChange.ASTSignatureChange(Signature defSignature, Signature fixSignature)Constructor for ASTSignatureChange.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChange(ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange scc)addChange.booleanequals(Object obj)Set<ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange>getListOfChanges()Getter for the fieldlistOfChanges.SignaturegetmDefSignature()Getter for the fieldmDefSignature.SignaturegetmFixSignature()Getter for the fieldmFixSignature.StringgetmMethodName()Getter for the fieldmMethodName.Set<Object>getModifications()Returns the set of edit operations required to change the defective AST int the fixed one.ch.uzh.ifi.seal.changedistiller.model.entities.StructureEntityVersiongetStructureEntity()Getter for the fieldstructureEntity.inthashCode()booleanisEmpty()static booleanisSameElements(Collection<ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange> _a, Collection<ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange> _b)isSameElements.StringoperationTypetoJSON(ASTSignatureChange.OperationType t)operationTypetoJSON.voidremoveChange(ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange scc)removeChange.voidsetListOfChanges(Set<ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange> listOfChanges)Setter for the fieldlistOfChanges.voidsetmDefSignature(Signature mDefSignature)Setter for the fieldmDefSignature.voidsetmFixSignature(Signature mFixSignature)Setter for the fieldmFixSignature.voidsetmMethodName(String mMethodName)Setter for the fieldmMethodName.voidsetStructureEntity(ch.uzh.ifi.seal.changedistiller.model.entities.StructureEntityVersion structureEntity)Setter for the fieldstructureEntity.StringtoJSON()static Set<ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange>toSourceCodeChanges(Set<Object> _objects)toSourceCodeChanges.StringtoString()Returns a formatted 'SourceCodeChange' elements
-
-
-
Constructor Detail
-
ASTSignatureChange
public ASTSignatureChange(Signature defSignature, Signature fixSignature)
Constructor for ASTSignatureChange.
-
ASTSignatureChange
public ASTSignatureChange(ch.uzh.ifi.seal.changedistiller.model.entities.StructureEntityVersion strEntityVersion)
Constructor for ASTSignatureChange.
- Parameters:
strEntityVersion- aStructureEntityVersionobject.
-
-
Method Detail
-
addChange
public void addChange(ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange scc)
addChange.
- Parameters:
scc- aSourceCodeChangeobject.
-
removeChange
public void removeChange(ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange scc)
removeChange.
- Parameters:
scc- aSourceCodeChangeobject.
-
toSourceCodeChanges
public static Set<ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange> toSourceCodeChanges(Set<Object> _objects)
toSourceCodeChanges.
-
getStructureEntity
public ch.uzh.ifi.seal.changedistiller.model.entities.StructureEntityVersion getStructureEntity()
Getter for the field
structureEntity.- Returns:
- a
StructureEntityVersionobject.
-
setStructureEntity
public void setStructureEntity(ch.uzh.ifi.seal.changedistiller.model.entities.StructureEntityVersion structureEntity)
Setter for the field
structureEntity.- Parameters:
structureEntity- aStructureEntityVersionobject.
-
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- aCollectionobject._b- aCollectionobject.- Returns:
- a boolean.
-
getmDefSignature
public Signature getmDefSignature()
Getter for the field
mDefSignature.- Returns:
- a
Signatureobject.
-
setmDefSignature
public void setmDefSignature(Signature mDefSignature)
Setter for the field
mDefSignature.- Parameters:
mDefSignature- aSignatureobject.
-
getmFixSignature
public Signature getmFixSignature()
Getter for the field
mFixSignature.- Returns:
- a
Signatureobject.
-
setmFixSignature
public void setmFixSignature(Signature mFixSignature)
Setter for the field
mFixSignature.- Parameters:
mFixSignature- aSignatureobject.
-
getListOfChanges
public Set<ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange> getListOfChanges()
Getter for the field
listOfChanges.- Returns:
- a
Setobject.
-
setListOfChanges
public void setListOfChanges(Set<ch.uzh.ifi.seal.changedistiller.model.entities.SourceCodeChange> listOfChanges)
Setter for the field
listOfChanges.- Parameters:
listOfChanges- aSetobject.
-
getmMethodName
public String getmMethodName()
Getter for the field
mMethodName.- Returns:
- a
Stringobject.
-
setmMethodName
public void setmMethodName(String mMethodName)
Setter for the field
mMethodName.- Parameters:
mMethodName- aStringobject.
-
operationTypetoJSON
public String operationTypetoJSON(ASTSignatureChange.OperationType t)
operationTypetoJSON.
- Parameters:
t- aASTSignatureChange.OperationTypeobject.- Returns:
- a
Stringobject.
-
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:
getModificationsin interfaceSignatureChange
-
toJSON
public String toJSON()
- Specified by:
toJSONin interfaceSignatureChange
-
toString
public String toString()
Returns a formatted 'SourceCodeChange' elements
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceSignatureChange
-
-