diff --git a/gen/org/moosetechnology/model/famix/famix/AbstractFileAnchor.java b/gen/org/moosetechnology/model/famix/famix/AbstractFileAnchor.java deleted file mode 100644 index 50da503..0000000 --- a/gen/org/moosetechnology/model/famix/famix/AbstractFileAnchor.java +++ /dev/null @@ -1,77 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixtraits.TFile; -import org.moosetechnology.model.famix.famixtraits.TFileAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; - - -@FamePackage("FAMIX") -@FameDescription("AbstractFileAnchor") -public class AbstractFileAnchor extends SourceAnchor implements TFileAnchor, TSourceAnchor { - - private TFile correspondingFile; - - private TSourceEntity element; - - private String encoding; - - private String fileName; - - - - @FameProperty(name = "correspondingFile") - public TFile getCorrespondingFile() { - return correspondingFile; - } - - public void setCorrespondingFile(TFile correspondingFile) { - this.correspondingFile = correspondingFile; - } - - @FameProperty(name = "element", opposite = "sourceAnchor") - public TSourceEntity getElement() { - return element; - } - - public void setElement(TSourceEntity element) { - if (this.element == null ? element != null : !this.element.equals(element)) { - TSourceEntity old_element = this.element; - this.element = element; - if (old_element != null) old_element.setSourceAnchor(null); - if (element != null) element.setSourceAnchor(this); - } - } - - @FameProperty(name = "encoding") - public String getEncoding() { - return encoding; - } - - public void setEncoding(String encoding) { - this.encoding = encoding; - } - - @FameProperty(name = "fileName") - public String getFileName() { - return fileName; - } - - public void setFileName(String fileName) { - this.fileName = fileName; - } - - @FameProperty(name = "lineCount", derived = true) - public Number getLineCount() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Access.java b/gen/org/moosetechnology/model/famix/famix/Access.java deleted file mode 100644 index c4d8ee4..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Access.java +++ /dev/null @@ -1,266 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TAccessible; -import org.moosetechnology.model.famix.famixtraits.TAssociation; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("Access") -public class Access extends Entity implements TAccess, TAssociation, TAssociationMetaLevelDependency, TSourceEntity, TWithComments, TWithSourceLanguage { - - private TWithAccesses accessor; - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private Boolean isStub; - - private TAssociation next; - - private Number numberOfLinesOfCode; - - private TAssociation previous; - - private TSourceAnchor sourceAnchor; - - private TAccessible variable; - - - - @FameProperty(name = "accessor", opposite = "accesses") - public TWithAccesses getAccessor() { - return accessor; - } - - public void setAccessor(TWithAccesses accessor) { - if (this.accessor != null) { - if (this.accessor.equals(accessor)) return; - this.accessor.getAccesses().remove(this); - } - this.accessor = accessor; - if (accessor == null) return; - accessor.getAccesses().add(this); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(Access.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isRead", derived = true) - public Boolean getIsRead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isReadWriteUnknown", derived = true) - public Boolean getIsReadWriteUnknown() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "isWrite", derived = true) - public Boolean getIsWrite() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "next", opposite = "previous", derived = true) - public TAssociation getNext() { - return next; - } - - public void setNext(TAssociation next) { - if (this.next == null ? next != null : !this.next.equals(next)) { - TAssociation old_next = this.next; - this.next = next; - if (old_next != null) old_next.setPrevious(null); - if (next != null) next.setPrevious(this); - } - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "previous", opposite = "next") - public TAssociation getPrevious() { - return previous; - } - - public void setPrevious(TAssociation previous) { - if (this.previous == null ? previous != null : !this.previous.equals(previous)) { - TAssociation old_previous = this.previous; - this.previous = previous; - if (old_previous != null) old_previous.setNext(null); - if (previous != null) previous.setNext(this); - } - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "variable", opposite = "incomingAccesses") - public TAccessible getVariable() { - return variable; - } - - public void setVariable(TAccessible variable) { - if (this.variable != null) { - if (this.variable.equals(variable)) return; - this.variable.getIncomingAccesses().remove(this); - } - this.variable = variable; - if (variable == null) return; - variable.getIncomingAccesses().add(this); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/AnnotationInstance.java b/gen/org/moosetechnology/model/famix/famix/AnnotationInstance.java deleted file mode 100644 index 7da5f11..0000000 --- a/gen/org/moosetechnology/model/famix/famix/AnnotationInstance.java +++ /dev/null @@ -1,144 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixtraits.TAnnotationInstance; -import org.moosetechnology.model.famix.famixtraits.TAnnotationInstanceAttribute; -import org.moosetechnology.model.famix.famixtraits.TAnnotationType; -import org.moosetechnology.model.famix.famixtraits.TTypedAnnotationInstance; -import org.moosetechnology.model.famix.famixtraits.TWithAnnotationInstanceAttributes; -import org.moosetechnology.model.famix.famixtraits.TWithAnnotationInstances; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("AnnotationInstance") -public class AnnotationInstance extends SourcedEntity implements TAnnotationInstance, TEntityMetaLevelDependency, TTypedAnnotationInstance, TWithAnnotationInstanceAttributes { - - private TWithAnnotationInstances annotatedEntity; - - private TAnnotationType annotationType; - - private Collection attributes; - - - - @FameProperty(name = "annotatedEntity", opposite = "annotationInstances", container = true) - public TWithAnnotationInstances getAnnotatedEntity() { - return annotatedEntity; - } - - public void setAnnotatedEntity(TWithAnnotationInstances annotatedEntity) { - if (this.annotatedEntity != null) { - if (this.annotatedEntity.equals(annotatedEntity)) return; - this.annotatedEntity.getAnnotationInstances().remove(this); - } - this.annotatedEntity = annotatedEntity; - if (annotatedEntity == null) return; - annotatedEntity.getAnnotationInstances().add(this); - } - - @FameProperty(name = "annotationType", opposite = "instances") - public TAnnotationType getAnnotationType() { - return annotationType; - } - - public void setAnnotationType(TAnnotationType annotationType) { - if (this.annotationType != null) { - if (this.annotationType.equals(annotationType)) return; - this.annotationType.getInstances().remove(this); - } - this.annotationType = annotationType; - if (annotationType == null) return; - annotationType.getInstances().add(this); - } - - @FameProperty(name = "attributes", opposite = "parentAnnotationInstance", derived = true) - public Collection getAttributes() { - if (attributes == null) { - attributes = new MultivalueSet() { - @Override - protected void clearOpposite(TAnnotationInstanceAttribute e) { - e.setParentAnnotationInstance(null); - } - @Override - protected void setOpposite(TAnnotationInstanceAttribute e) { - e.setParentAnnotationInstance(AnnotationInstance.this); - } - }; - } - return attributes; - } - - public void setAttributes(Collection attributes) { - this.getAttributes().clear(); - this.getAttributes().addAll(attributes); - } - - - public void addAttributes(TAnnotationInstanceAttribute one) { - this.getAttributes().add(one); - } - - public void addAttributes(TAnnotationInstanceAttribute one, TAnnotationInstanceAttribute... many) { - this.getAttributes().add(one); - for (TAnnotationInstanceAttribute each : many) - this.getAttributes().add(each); - } - - public void addAttributes(Iterable many) { - for (TAnnotationInstanceAttribute each : many) - this.getAttributes().add(each); - } - - public void addAttributes(TAnnotationInstanceAttribute[] many) { - for (TAnnotationInstanceAttribute each : many) - this.getAttributes().add(each); - } - - public int numberOfAttributes() { - return getAttributes().size(); - } - - public boolean hasAttributes() { - return !getAttributes().isEmpty(); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/AnnotationInstanceAttribute.java b/gen/org/moosetechnology/model/famix/famix/AnnotationInstanceAttribute.java deleted file mode 100644 index b10c2ea..0000000 --- a/gen/org/moosetechnology/model/famix/famix/AnnotationInstanceAttribute.java +++ /dev/null @@ -1,98 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixtraits.TAnnotationInstanceAttribute; -import org.moosetechnology.model.famix.famixtraits.TAnnotationTypeAttribute; -import org.moosetechnology.model.famix.famixtraits.TTypedAnnotationInstanceAttribute; -import org.moosetechnology.model.famix.famixtraits.TWithAnnotationInstanceAttributes; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("AnnotationInstanceAttribute") -public class AnnotationInstanceAttribute extends SourcedEntity implements TAnnotationInstanceAttribute, TEntityMetaLevelDependency, TTypedAnnotationInstanceAttribute { - - private TAnnotationTypeAttribute annotationTypeAttribute; - - private TWithAnnotationInstanceAttributes parentAnnotationInstance; - - private String value; - - - - @FameProperty(name = "annotationTypeAttribute", opposite = "annotationAttributeInstances") - public TAnnotationTypeAttribute getAnnotationTypeAttribute() { - return annotationTypeAttribute; - } - - public void setAnnotationTypeAttribute(TAnnotationTypeAttribute annotationTypeAttribute) { - if (this.annotationTypeAttribute != null) { - if (this.annotationTypeAttribute.equals(annotationTypeAttribute)) return; - this.annotationTypeAttribute.getAnnotationAttributeInstances().remove(this); - } - this.annotationTypeAttribute = annotationTypeAttribute; - if (annotationTypeAttribute == null) return; - annotationTypeAttribute.getAnnotationAttributeInstances().add(this); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parentAnnotationInstance", opposite = "attributes", container = true) - public TWithAnnotationInstanceAttributes getParentAnnotationInstance() { - return parentAnnotationInstance; - } - - public void setParentAnnotationInstance(TWithAnnotationInstanceAttributes parentAnnotationInstance) { - if (this.parentAnnotationInstance != null) { - if (this.parentAnnotationInstance.equals(parentAnnotationInstance)) return; - this.parentAnnotationInstance.getAttributes().remove(this); - } - this.parentAnnotationInstance = parentAnnotationInstance; - if (parentAnnotationInstance == null) return; - parentAnnotationInstance.getAttributes().add(this); - } - - @FameProperty(name = "value") - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value; - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/AnnotationType.java b/gen/org/moosetechnology/model/famix/famix/AnnotationType.java deleted file mode 100644 index 8b4c2a0..0000000 --- a/gen/org/moosetechnology/model/famix/famix/AnnotationType.java +++ /dev/null @@ -1,93 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixtraits.TAnnotationType; -import org.moosetechnology.model.famix.famixtraits.TTypedAnnotationInstance; -import org.moosetechnology.model.famix.famixtraits.TWithAnnotationTypes; - - -@FamePackage("FAMIX") -@FameDescription("AnnotationType") -public class AnnotationType extends Type implements TAnnotationType { - - private TWithAnnotationTypes annotationTypesContainer; - - private Collection instances; - - - - @FameProperty(name = "annotationTypesContainer", opposite = "definedAnnotationTypes", container = true) - public TWithAnnotationTypes getAnnotationTypesContainer() { - return annotationTypesContainer; - } - - public void setAnnotationTypesContainer(TWithAnnotationTypes annotationTypesContainer) { - if (this.annotationTypesContainer != null) { - if (this.annotationTypesContainer.equals(annotationTypesContainer)) return; - this.annotationTypesContainer.getDefinedAnnotationTypes().remove(this); - } - this.annotationTypesContainer = annotationTypesContainer; - if (annotationTypesContainer == null) return; - annotationTypesContainer.getDefinedAnnotationTypes().add(this); - } - - @FameProperty(name = "instances", opposite = "annotationType", derived = true) - public Collection getInstances() { - if (instances == null) { - instances = new MultivalueSet() { - @Override - protected void clearOpposite(TTypedAnnotationInstance e) { - e.setAnnotationType(null); - } - @Override - protected void setOpposite(TTypedAnnotationInstance e) { - e.setAnnotationType(AnnotationType.this); - } - }; - } - return instances; - } - - public void setInstances(Collection instances) { - this.getInstances().clear(); - this.getInstances().addAll(instances); - } - - - public void addInstances(TTypedAnnotationInstance one) { - this.getInstances().add(one); - } - - public void addInstances(TTypedAnnotationInstance one, TTypedAnnotationInstance... many) { - this.getInstances().add(one); - for (TTypedAnnotationInstance each : many) - this.getInstances().add(each); - } - - public void addInstances(Iterable many) { - for (TTypedAnnotationInstance each : many) - this.getInstances().add(each); - } - - public void addInstances(TTypedAnnotationInstance[] many) { - for (TTypedAnnotationInstance each : many) - this.getInstances().add(each); - } - - public int numberOfInstances() { - return getInstances().size(); - } - - public boolean hasInstances() { - return !getInstances().isEmpty(); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/AnnotationTypeAttribute.java b/gen/org/moosetechnology/model/famix/famix/AnnotationTypeAttribute.java deleted file mode 100644 index bde5046..0000000 --- a/gen/org/moosetechnology/model/famix/famix/AnnotationTypeAttribute.java +++ /dev/null @@ -1,507 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TAccessible; -import org.moosetechnology.model.famix.famixtraits.TAnnotationTypeAttribute; -import org.moosetechnology.model.famix.famixtraits.TAttribute; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TInvocation; -import org.moosetechnology.model.famix.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedAnnotationInstanceAttribute; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.famixtraits.TWithAttributes; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("AnnotationTypeAttribute") -public class AnnotationTypeAttribute extends Attribute implements TAccessible, TAnnotationTypeAttribute, TAttribute, TEntityMetaLevelDependency, TInvocationsReceiver, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedAnnotationInstanceAttribute, TTypedEntity, TWithComments, TWithSourceLanguage { - - private Collection annotationAttributeInstances; - - private TAnnotationTypeAttribute annotationTypeAttribute; - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private TType declaredType; - - private Collection incomingAccesses; - - private Boolean isClassSide; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TWithAttributes parentType; - - private Collection receivingInvocations; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "parentAnnotationType", derived = true) - public AnnotationType getParentAnnotationType() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "accessors", derived = true) - public Collection getAccessors() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "annotationAttributeInstances", opposite = "annotationTypeAttribute", derived = true) - public Collection getAnnotationAttributeInstances() { - if (annotationAttributeInstances == null) { - annotationAttributeInstances = new MultivalueSet() { - @Override - protected void clearOpposite(TTypedAnnotationInstanceAttribute e) { - e.setAnnotationTypeAttribute(null); - } - @Override - protected void setOpposite(TTypedAnnotationInstanceAttribute e) { - e.setAnnotationTypeAttribute(AnnotationTypeAttribute.this); - } - }; - } - return annotationAttributeInstances; - } - - public void setAnnotationAttributeInstances(Collection annotationAttributeInstances) { - this.getAnnotationAttributeInstances().clear(); - this.getAnnotationAttributeInstances().addAll(annotationAttributeInstances); - } - - - public void addAnnotationAttributeInstances(TTypedAnnotationInstanceAttribute one) { - this.getAnnotationAttributeInstances().add(one); - } - - public void addAnnotationAttributeInstances(TTypedAnnotationInstanceAttribute one, TTypedAnnotationInstanceAttribute... many) { - this.getAnnotationAttributeInstances().add(one); - for (TTypedAnnotationInstanceAttribute each : many) - this.getAnnotationAttributeInstances().add(each); - } - - public void addAnnotationAttributeInstances(Iterable many) { - for (TTypedAnnotationInstanceAttribute each : many) - this.getAnnotationAttributeInstances().add(each); - } - - public void addAnnotationAttributeInstances(TTypedAnnotationInstanceAttribute[] many) { - for (TTypedAnnotationInstanceAttribute each : many) - this.getAnnotationAttributeInstances().add(each); - } - - public int numberOfAnnotationAttributeInstances() { - return getAnnotationAttributeInstances().size(); - } - - public boolean hasAnnotationAttributeInstances() { - return !getAnnotationAttributeInstances().isEmpty(); - } - - @FameProperty(name = "annotationTypeAttribute", opposite = "annotationAttributeInstances") - public TAnnotationTypeAttribute getAnnotationTypeAttribute() { - return annotationTypeAttribute; - } - - public void setAnnotationTypeAttribute(TAnnotationTypeAttribute annotationTypeAttribute) { - if (this.annotationTypeAttribute != null) { - if (this.annotationTypeAttribute.equals(annotationTypeAttribute)) return; - this.annotationTypeAttribute.getAnnotationAttributeInstances().remove(this); - } - this.annotationTypeAttribute = annotationTypeAttribute; - if (annotationTypeAttribute == null) return; - annotationTypeAttribute.getAnnotationAttributeInstances().add(this); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(AnnotationTypeAttribute.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType() { - return declaredType; - } - - public void setDeclaredType(TType declaredType) { - if (this.declaredType != null) { - if (this.declaredType.equals(declaredType)) return; - this.declaredType.getTypedEntities().remove(this); - } - this.declaredType = declaredType; - if (declaredType == null) return; - declaredType.getTypedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasClassScope", derived = true) - public Boolean getHasClassScope() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hierarchyNestingLevel", derived = true) - public Number getHierarchyNestingLevel() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingAccesses", opposite = "variable", derived = true) - public Collection getIncomingAccesses() { - if (incomingAccesses == null) { - incomingAccesses = new MultivalueSet() { - @Override - protected void clearOpposite(TAccess e) { - e.setVariable(null); - } - @Override - protected void setOpposite(TAccess e) { - e.setVariable(AnnotationTypeAttribute.this); - } - }; - } - return incomingAccesses; - } - - public void setIncomingAccesses(Collection incomingAccesses) { - this.getIncomingAccesses().clear(); - this.getIncomingAccesses().addAll(incomingAccesses); - } - - - public void addIncomingAccesses(TAccess one) { - this.getIncomingAccesses().add(one); - } - - public void addIncomingAccesses(TAccess one, TAccess... many) { - this.getIncomingAccesses().add(one); - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(Iterable many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(TAccess[] many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public int numberOfIncomingAccesses() { - return getIncomingAccesses().size(); - } - - public boolean hasIncomingAccesses() { - return !getIncomingAccesses().isEmpty(); - } - - @FameProperty(name = "isClassSide") - public Boolean getIsClassSide() { - return isClassSide; - } - - public void setIsClassSide(Boolean isClassSide) { - this.isClassSide = isClassSide; - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAccesses", derived = true) - public Number getNumberOfAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingClasses", derived = true) - public Number getNumberOfAccessingClasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingMethods", derived = true) - public Number getNumberOfAccessingMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfGlobalAccesses", derived = true) - public Number getNumberOfGlobalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLocalAccesses", derived = true) - public Number getNumberOfLocalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parentType", opposite = "attributes", container = true) - public TWithAttributes getParentType() { - return parentType; - } - - public void setParentType(TWithAttributes parentType) { - if (this.parentType != null) { - if (this.parentType.equals(parentType)) return; - this.parentType.getAttributes().remove(this); - } - this.parentType = parentType; - if (parentType == null) return; - parentType.getAttributes().add(this); - } - - @FameProperty(name = "receivingInvocations", opposite = "receiver", derived = true) - public Collection getReceivingInvocations() { - if (receivingInvocations == null) { - receivingInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocation e) { - e.setReceiver(null); - } - @Override - protected void setOpposite(TInvocation e) { - e.setReceiver(AnnotationTypeAttribute.this); - } - }; - } - return receivingInvocations; - } - - public void setReceivingInvocations(Collection receivingInvocations) { - this.getReceivingInvocations().clear(); - this.getReceivingInvocations().addAll(receivingInvocations); - } - - - public void addReceivingInvocations(TInvocation one) { - this.getReceivingInvocations().add(one); - } - - public void addReceivingInvocations(TInvocation one, TInvocation... many) { - this.getReceivingInvocations().add(one); - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(Iterable many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(TInvocation[] many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public int numberOfReceivingInvocations() { - return getReceivingInvocations().size(); - } - - public boolean hasReceivingInvocations() { - return !getReceivingInvocations().isEmpty(); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Attribute.java b/gen/org/moosetechnology/model/famix/famix/Attribute.java deleted file mode 100644 index d45fd36..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Attribute.java +++ /dev/null @@ -1,430 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TAccessible; -import org.moosetechnology.model.famix.famixtraits.TAttribute; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TInvocation; -import org.moosetechnology.model.famix.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.famixtraits.TWithAttributes; -import org.moosetechnology.model.famix.famixtraits.TWithClassScope; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("Attribute") -public class Attribute extends StructuralEntity implements TAccessible, TAttribute, TEntityMetaLevelDependency, TInvocationsReceiver, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity, TWithClassScope, TWithComments, TWithSourceLanguage { - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private TType declaredType; - - private Collection incomingAccesses; - - private Boolean isClassSide; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TWithAttributes parentType; - - private Collection receivingInvocations; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "accessors", derived = true) - public Collection getAccessors() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(Attribute.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType() { - return declaredType; - } - - public void setDeclaredType(TType declaredType) { - if (this.declaredType != null) { - if (this.declaredType.equals(declaredType)) return; - this.declaredType.getTypedEntities().remove(this); - } - this.declaredType = declaredType; - if (declaredType == null) return; - declaredType.getTypedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasClassScope", derived = true) - public Boolean getHasClassScope() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hierarchyNestingLevel", derived = true) - public Number getHierarchyNestingLevel() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingAccesses", opposite = "variable", derived = true) - public Collection getIncomingAccesses() { - if (incomingAccesses == null) { - incomingAccesses = new MultivalueSet() { - @Override - protected void clearOpposite(TAccess e) { - e.setVariable(null); - } - @Override - protected void setOpposite(TAccess e) { - e.setVariable(Attribute.this); - } - }; - } - return incomingAccesses; - } - - public void setIncomingAccesses(Collection incomingAccesses) { - this.getIncomingAccesses().clear(); - this.getIncomingAccesses().addAll(incomingAccesses); - } - - - public void addIncomingAccesses(TAccess one) { - this.getIncomingAccesses().add(one); - } - - public void addIncomingAccesses(TAccess one, TAccess... many) { - this.getIncomingAccesses().add(one); - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(Iterable many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(TAccess[] many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public int numberOfIncomingAccesses() { - return getIncomingAccesses().size(); - } - - public boolean hasIncomingAccesses() { - return !getIncomingAccesses().isEmpty(); - } - - @FameProperty(name = "isClassSide") - public Boolean getIsClassSide() { - return isClassSide; - } - - public void setIsClassSide(Boolean isClassSide) { - this.isClassSide = isClassSide; - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAccesses", derived = true) - public Number getNumberOfAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingClasses", derived = true) - public Number getNumberOfAccessingClasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingMethods", derived = true) - public Number getNumberOfAccessingMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfGlobalAccesses", derived = true) - public Number getNumberOfGlobalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLocalAccesses", derived = true) - public Number getNumberOfLocalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parentType", opposite = "attributes", container = true) - public TWithAttributes getParentType() { - return parentType; - } - - public void setParentType(TWithAttributes parentType) { - if (this.parentType != null) { - if (this.parentType.equals(parentType)) return; - this.parentType.getAttributes().remove(this); - } - this.parentType = parentType; - if (parentType == null) return; - parentType.getAttributes().add(this); - } - - @FameProperty(name = "receivingInvocations", opposite = "receiver", derived = true) - public Collection getReceivingInvocations() { - if (receivingInvocations == null) { - receivingInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocation e) { - e.setReceiver(null); - } - @Override - protected void setOpposite(TInvocation e) { - e.setReceiver(Attribute.this); - } - }; - } - return receivingInvocations; - } - - public void setReceivingInvocations(Collection receivingInvocations) { - this.getReceivingInvocations().clear(); - this.getReceivingInvocations().addAll(receivingInvocations); - } - - - public void addReceivingInvocations(TInvocation one) { - this.getReceivingInvocations().add(one); - } - - public void addReceivingInvocations(TInvocation one, TInvocation... many) { - this.getReceivingInvocations().add(one); - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(Iterable many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(TInvocation[] many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public int numberOfReceivingInvocations() { - return getReceivingInvocations().size(); - } - - public boolean hasReceivingInvocations() { - return !getReceivingInvocations().isEmpty(); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/BehaviouralEntity.java b/gen/org/moosetechnology/model/famix/famix/BehaviouralEntity.java deleted file mode 100644 index 6f19f79..0000000 --- a/gen/org/moosetechnology/model/famix/famix/BehaviouralEntity.java +++ /dev/null @@ -1,712 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TDereferencedInvocation; -import org.moosetechnology.model.famix.famixtraits.THasSignature; -import org.moosetechnology.model.famix.famixtraits.TImplicitVariable; -import org.moosetechnology.model.famix.famixtraits.TInvocable; -import org.moosetechnology.model.famix.famixtraits.TInvocation; -import org.moosetechnology.model.famix.famixtraits.TLocalVariable; -import org.moosetechnology.model.famix.famixtraits.TParameter; -import org.moosetechnology.model.famix.famixtraits.TReference; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithDereferencedInvocations; -import org.moosetechnology.model.famix.famixtraits.TWithImplicitVariables; -import org.moosetechnology.model.famix.famixtraits.TWithInvocations; -import org.moosetechnology.model.famix.famixtraits.TWithLocalVariables; -import org.moosetechnology.model.famix.famixtraits.TWithParameters; -import org.moosetechnology.model.famix.famixtraits.TWithReferences; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TWithStatements; - - -@FamePackage("FAMIX") -@FameDescription("BehaviouralEntity") -public class BehaviouralEntity extends ContainerEntity implements THasSignature, TInvocable, TSourceEntity, TTypedEntity, TWithAccesses, TWithComments, TWithDereferencedInvocations, TWithImplicitVariables, TWithInvocations, TWithLocalVariables, TWithParameters, TWithReferences, TWithSourceLanguage, TWithStatements { - - private Collection accesses; - - private Collection comments; - - private Number cyclomaticComplexity; - - private TSourceLanguage declaredSourceLanguage; - - private TType declaredType; - - private Collection dereferencedInvocations; - - private Collection implicitVariables; - - private Collection incomingInvocations; - - private Boolean isStub; - - private Collection localVariables; - - private Number numberOfLinesOfCode; - - private Collection outgoingInvocations; - - private Collection outgoingReferences; - - private Collection parameters; - - private String signature; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "clientBehaviours", derived = true) - public Collection getClientBehaviours() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccesses", derived = true) - public Number getNumberOfAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfConditionals", derived = true) - public Number getNumberOfConditionals() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfMessageSends", derived = true) - public Number getNumberOfMessageSends() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfOutgoingInvocations", derived = true) - public Number getNumberOfOutgoingInvocations() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfStatements", derived = true) - public Number getNumberOfStatements() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "providerBehaviours", derived = true) - public Collection getProviderBehaviours() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "accesses", opposite = "accessor", derived = true) - public Collection getAccesses() { - if (accesses == null) { - accesses = new MultivalueSet() { - @Override - protected void clearOpposite(TAccess e) { - e.setAccessor(null); - } - @Override - protected void setOpposite(TAccess e) { - e.setAccessor(BehaviouralEntity.this); - } - }; - } - return accesses; - } - - public void setAccesses(Collection accesses) { - this.getAccesses().clear(); - this.getAccesses().addAll(accesses); - } - - - public void addAccesses(TAccess one) { - this.getAccesses().add(one); - } - - public void addAccesses(TAccess one, TAccess... many) { - this.getAccesses().add(one); - for (TAccess each : many) - this.getAccesses().add(each); - } - - public void addAccesses(Iterable many) { - for (TAccess each : many) - this.getAccesses().add(each); - } - - public void addAccesses(TAccess[] many) { - for (TAccess each : many) - this.getAccesses().add(each); - } - - public int numberOfAccesses() { - return getAccesses().size(); - } - - public boolean hasAccesses() { - return !getAccesses().isEmpty(); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(BehaviouralEntity.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "cyclomaticComplexity") - public Number getCyclomaticComplexity() { - return cyclomaticComplexity; - } - - public void setCyclomaticComplexity(Number cyclomaticComplexity) { - this.cyclomaticComplexity = cyclomaticComplexity; - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType() { - return declaredType; - } - - public void setDeclaredType(TType declaredType) { - if (this.declaredType != null) { - if (this.declaredType.equals(declaredType)) return; - this.declaredType.getTypedEntities().remove(this); - } - this.declaredType = declaredType; - if (declaredType == null) return; - declaredType.getTypedEntities().add(this); - } - - @FameProperty(name = "dereferencedInvocations", opposite = "referencer", derived = true) - public Collection getDereferencedInvocations() { - if (dereferencedInvocations == null) { - dereferencedInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TDereferencedInvocation e) { - e.setReferencer(null); - } - @Override - protected void setOpposite(TDereferencedInvocation e) { - e.setReferencer(BehaviouralEntity.this); - } - }; - } - return dereferencedInvocations; - } - - public void setDereferencedInvocations(Collection dereferencedInvocations) { - this.getDereferencedInvocations().clear(); - this.getDereferencedInvocations().addAll(dereferencedInvocations); - } - - - public void addDereferencedInvocations(TDereferencedInvocation one) { - this.getDereferencedInvocations().add(one); - } - - public void addDereferencedInvocations(TDereferencedInvocation one, TDereferencedInvocation... many) { - this.getDereferencedInvocations().add(one); - for (TDereferencedInvocation each : many) - this.getDereferencedInvocations().add(each); - } - - public void addDereferencedInvocations(Iterable many) { - for (TDereferencedInvocation each : many) - this.getDereferencedInvocations().add(each); - } - - public void addDereferencedInvocations(TDereferencedInvocation[] many) { - for (TDereferencedInvocation each : many) - this.getDereferencedInvocations().add(each); - } - - public int numberOfDereferencedInvocations() { - return getDereferencedInvocations().size(); - } - - public boolean hasDereferencedInvocations() { - return !getDereferencedInvocations().isEmpty(); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "implicitVariables", opposite = "parentBehaviouralEntity", derived = true) - public Collection getImplicitVariables() { - if (implicitVariables == null) { - implicitVariables = new MultivalueSet() { - @Override - protected void clearOpposite(TImplicitVariable e) { - e.setParentBehaviouralEntity(null); - } - @Override - protected void setOpposite(TImplicitVariable e) { - e.setParentBehaviouralEntity(BehaviouralEntity.this); - } - }; - } - return implicitVariables; - } - - public void setImplicitVariables(Collection implicitVariables) { - this.getImplicitVariables().clear(); - this.getImplicitVariables().addAll(implicitVariables); - } - - - public void addImplicitVariables(TImplicitVariable one) { - this.getImplicitVariables().add(one); - } - - public void addImplicitVariables(TImplicitVariable one, TImplicitVariable... many) { - this.getImplicitVariables().add(one); - for (TImplicitVariable each : many) - this.getImplicitVariables().add(each); - } - - public void addImplicitVariables(Iterable many) { - for (TImplicitVariable each : many) - this.getImplicitVariables().add(each); - } - - public void addImplicitVariables(TImplicitVariable[] many) { - for (TImplicitVariable each : many) - this.getImplicitVariables().add(each); - } - - public int numberOfImplicitVariables() { - return getImplicitVariables().size(); - } - - public boolean hasImplicitVariables() { - return !getImplicitVariables().isEmpty(); - } - - @FameProperty(name = "incomingInvocations", opposite = "candidates", derived = true) - public Collection getIncomingInvocations() { - if (incomingInvocations == null) { - incomingInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocation e) { - e.getCandidates().remove(BehaviouralEntity.this); - } - @Override - protected void setOpposite(TInvocation e) { - e.getCandidates().add(BehaviouralEntity.this); - } - }; - } - return incomingInvocations; - } - - public void setIncomingInvocations(Collection incomingInvocations) { - this.getIncomingInvocations().clear(); - this.getIncomingInvocations().addAll(incomingInvocations); - } - - public void addIncomingInvocations(TInvocation one) { - this.getIncomingInvocations().add(one); - } - - public void addIncomingInvocations(TInvocation one, TInvocation... many) { - this.getIncomingInvocations().add(one); - for (TInvocation each : many) - this.getIncomingInvocations().add(each); - } - - public void addIncomingInvocations(Iterable many) { - for (TInvocation each : many) - this.getIncomingInvocations().add(each); - } - - public void addIncomingInvocations(TInvocation[] many) { - for (TInvocation each : many) - this.getIncomingInvocations().add(each); - } - - public int numberOfIncomingInvocations() { - return getIncomingInvocations().size(); - } - - public boolean hasIncomingInvocations() { - return !getIncomingInvocations().isEmpty(); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "localVariables", opposite = "parentBehaviouralEntity", derived = true) - public Collection getLocalVariables() { - if (localVariables == null) { - localVariables = new MultivalueSet() { - @Override - protected void clearOpposite(TLocalVariable e) { - e.setParentBehaviouralEntity(null); - } - @Override - protected void setOpposite(TLocalVariable e) { - e.setParentBehaviouralEntity(BehaviouralEntity.this); - } - }; - } - return localVariables; - } - - public void setLocalVariables(Collection localVariables) { - this.getLocalVariables().clear(); - this.getLocalVariables().addAll(localVariables); - } - - - public void addLocalVariables(TLocalVariable one) { - this.getLocalVariables().add(one); - } - - public void addLocalVariables(TLocalVariable one, TLocalVariable... many) { - this.getLocalVariables().add(one); - for (TLocalVariable each : many) - this.getLocalVariables().add(each); - } - - public void addLocalVariables(Iterable many) { - for (TLocalVariable each : many) - this.getLocalVariables().add(each); - } - - public void addLocalVariables(TLocalVariable[] many) { - for (TLocalVariable each : many) - this.getLocalVariables().add(each); - } - - public int numberOfLocalVariables() { - return getLocalVariables().size(); - } - - public boolean hasLocalVariables() { - return !getLocalVariables().isEmpty(); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfParameters", derived = true) - public Number getNumberOfParameters() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOflinesOfDeadCode", derived = true) - public Number getNumberOflinesOfDeadCode() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "outgoingInvocations", opposite = "sender", derived = true) - public Collection getOutgoingInvocations() { - if (outgoingInvocations == null) { - outgoingInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocation e) { - e.setSender(null); - } - @Override - protected void setOpposite(TInvocation e) { - e.setSender(BehaviouralEntity.this); - } - }; - } - return outgoingInvocations; - } - - public void setOutgoingInvocations(Collection outgoingInvocations) { - this.getOutgoingInvocations().clear(); - this.getOutgoingInvocations().addAll(outgoingInvocations); - } - - - public void addOutgoingInvocations(TInvocation one) { - this.getOutgoingInvocations().add(one); - } - - public void addOutgoingInvocations(TInvocation one, TInvocation... many) { - this.getOutgoingInvocations().add(one); - for (TInvocation each : many) - this.getOutgoingInvocations().add(each); - } - - public void addOutgoingInvocations(Iterable many) { - for (TInvocation each : many) - this.getOutgoingInvocations().add(each); - } - - public void addOutgoingInvocations(TInvocation[] many) { - for (TInvocation each : many) - this.getOutgoingInvocations().add(each); - } - - public int numberOfOutgoingInvocations() { - return getOutgoingInvocations().size(); - } - - public boolean hasOutgoingInvocations() { - return !getOutgoingInvocations().isEmpty(); - } - - @FameProperty(name = "outgoingReferences", opposite = "referencer", derived = true) - public Collection getOutgoingReferences() { - if (outgoingReferences == null) { - outgoingReferences = new MultivalueSet() { - @Override - protected void clearOpposite(TReference e) { - e.setReferencer(null); - } - @Override - protected void setOpposite(TReference e) { - e.setReferencer(BehaviouralEntity.this); - } - }; - } - return outgoingReferences; - } - - public void setOutgoingReferences(Collection outgoingReferences) { - this.getOutgoingReferences().clear(); - this.getOutgoingReferences().addAll(outgoingReferences); - } - - - public void addOutgoingReferences(TReference one) { - this.getOutgoingReferences().add(one); - } - - public void addOutgoingReferences(TReference one, TReference... many) { - this.getOutgoingReferences().add(one); - for (TReference each : many) - this.getOutgoingReferences().add(each); - } - - public void addOutgoingReferences(Iterable many) { - for (TReference each : many) - this.getOutgoingReferences().add(each); - } - - public void addOutgoingReferences(TReference[] many) { - for (TReference each : many) - this.getOutgoingReferences().add(each); - } - - public int numberOfOutgoingReferences() { - return getOutgoingReferences().size(); - } - - public boolean hasOutgoingReferences() { - return !getOutgoingReferences().isEmpty(); - } - - @FameProperty(name = "parameters", opposite = "parentBehaviouralEntity", derived = true) - public Collection getParameters() { - if (parameters == null) { - parameters = new MultivalueSet() { - @Override - protected void clearOpposite(TParameter e) { - e.setParentBehaviouralEntity(null); - } - @Override - protected void setOpposite(TParameter e) { - e.setParentBehaviouralEntity(BehaviouralEntity.this); - } - }; - } - return parameters; - } - - public void setParameters(Collection parameters) { - this.getParameters().clear(); - this.getParameters().addAll(parameters); - } - - - public void addParameters(TParameter one) { - this.getParameters().add(one); - } - - public void addParameters(TParameter one, TParameter... many) { - this.getParameters().add(one); - for (TParameter each : many) - this.getParameters().add(each); - } - - public void addParameters(Iterable many) { - for (TParameter each : many) - this.getParameters().add(each); - } - - public void addParameters(TParameter[] many) { - for (TParameter each : many) - this.getParameters().add(each); - } - - public int numberOfParameters() { - return getParameters().size(); - } - - public boolean hasParameters() { - return !getParameters().isEmpty(); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "signature") - public String getSignature() { - return signature; - } - - public void setSignature(String signature) { - this.signature = signature; - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/CFile.java b/gen/org/moosetechnology/model/famix/famix/CFile.java deleted file mode 100644 index 3b9b33e..0000000 --- a/gen/org/moosetechnology/model/famix/famix/CFile.java +++ /dev/null @@ -1,140 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixtraits.TFileInclude; -import org.moosetechnology.model.famix.famixtraits.TWithFileIncludes; - - -@FamePackage("FAMIX") -@FameDescription("CFile") -public class CFile extends File implements TWithFileIncludes { - - private Collection incomingIncludeRelations; - - private Collection outgoingIncludeRelations; - - - - @FameProperty(name = "includedFiles", derived = true) - public Collection getIncludedFiles() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "includingFiles", derived = true) - public Collection getIncludingFiles() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingIncludeRelations", opposite = "target", derived = true) - public Collection getIncomingIncludeRelations() { - if (incomingIncludeRelations == null) { - incomingIncludeRelations = new MultivalueSet() { - @Override - protected void clearOpposite(TFileInclude e) { - e.setTarget(null); - } - @Override - protected void setOpposite(TFileInclude e) { - e.setTarget(CFile.this); - } - }; - } - return incomingIncludeRelations; - } - - public void setIncomingIncludeRelations(Collection incomingIncludeRelations) { - this.getIncomingIncludeRelations().clear(); - this.getIncomingIncludeRelations().addAll(incomingIncludeRelations); - } - - - public void addIncomingIncludeRelations(TFileInclude one) { - this.getIncomingIncludeRelations().add(one); - } - - public void addIncomingIncludeRelations(TFileInclude one, TFileInclude... many) { - this.getIncomingIncludeRelations().add(one); - for (TFileInclude each : many) - this.getIncomingIncludeRelations().add(each); - } - - public void addIncomingIncludeRelations(Iterable many) { - for (TFileInclude each : many) - this.getIncomingIncludeRelations().add(each); - } - - public void addIncomingIncludeRelations(TFileInclude[] many) { - for (TFileInclude each : many) - this.getIncomingIncludeRelations().add(each); - } - - public int numberOfIncomingIncludeRelations() { - return getIncomingIncludeRelations().size(); - } - - public boolean hasIncomingIncludeRelations() { - return !getIncomingIncludeRelations().isEmpty(); - } - - @FameProperty(name = "outgoingIncludeRelations", opposite = "source", derived = true) - public Collection getOutgoingIncludeRelations() { - if (outgoingIncludeRelations == null) { - outgoingIncludeRelations = new MultivalueSet() { - @Override - protected void clearOpposite(TFileInclude e) { - e.setSource(null); - } - @Override - protected void setOpposite(TFileInclude e) { - e.setSource(CFile.this); - } - }; - } - return outgoingIncludeRelations; - } - - public void setOutgoingIncludeRelations(Collection outgoingIncludeRelations) { - this.getOutgoingIncludeRelations().clear(); - this.getOutgoingIncludeRelations().addAll(outgoingIncludeRelations); - } - - - public void addOutgoingIncludeRelations(TFileInclude one) { - this.getOutgoingIncludeRelations().add(one); - } - - public void addOutgoingIncludeRelations(TFileInclude one, TFileInclude... many) { - this.getOutgoingIncludeRelations().add(one); - for (TFileInclude each : many) - this.getOutgoingIncludeRelations().add(each); - } - - public void addOutgoingIncludeRelations(Iterable many) { - for (TFileInclude each : many) - this.getOutgoingIncludeRelations().add(each); - } - - public void addOutgoingIncludeRelations(TFileInclude[] many) { - for (TFileInclude each : many) - this.getOutgoingIncludeRelations().add(each); - } - - public int numberOfOutgoingIncludeRelations() { - return getOutgoingIncludeRelations().size(); - } - - public boolean hasOutgoingIncludeRelations() { - return !getOutgoingIncludeRelations().isEmpty(); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/CSourceLanguage.java b/gen/org/moosetechnology/model/famix/famix/CSourceLanguage.java deleted file mode 100644 index d92905e..0000000 --- a/gen/org/moosetechnology/model/famix/famix/CSourceLanguage.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("FAMIX") -@FameDescription("CSourceLanguage") -public class CSourceLanguage extends SourceLanguage { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/CaughtException.java b/gen/org/moosetechnology/model/famix/famix/CaughtException.java deleted file mode 100644 index 127d81a..0000000 --- a/gen/org/moosetechnology/model/famix/famix/CaughtException.java +++ /dev/null @@ -1,37 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixtraits.TCaughtException; -import org.moosetechnology.model.famix.famixtraits.TWithCaughtExceptions; - - -@FamePackage("FAMIX") -@FameDescription("CaughtException") -public class CaughtException extends Exception implements TCaughtException { - - private TWithCaughtExceptions definingEntity; - - - - @FameProperty(name = "definingEntity", opposite = "caughtExceptions") - public TWithCaughtExceptions getDefiningEntity() { - return definingEntity; - } - - public void setDefiningEntity(TWithCaughtExceptions definingEntity) { - if (this.definingEntity != null) { - if (this.definingEntity.equals(definingEntity)) return; - this.definingEntity.getCaughtExceptions().remove(this); - } - this.definingEntity = definingEntity; - if (definingEntity == null) return; - definingEntity.getCaughtExceptions().add(this); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Class.java b/gen/org/moosetechnology/model/famix/famix/Class.java deleted file mode 100644 index b8ff60f..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Class.java +++ /dev/null @@ -1,888 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAttribute; -import org.moosetechnology.model.famix.famixtraits.TClass; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TException; -import org.moosetechnology.model.famix.famixtraits.TInheritance; -import org.moosetechnology.model.famix.famixtraits.TInvocation; -import org.moosetechnology.model.famix.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famix.famixtraits.TMethod; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TPackage; -import org.moosetechnology.model.famix.famixtraits.TPackageable; -import org.moosetechnology.model.famix.famixtraits.TReference; -import org.moosetechnology.model.famix.famixtraits.TReferenceable; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAttributes; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithExceptions; -import org.moosetechnology.model.famix.famixtraits.TWithInheritances; -import org.moosetechnology.model.famix.famixtraits.TWithMethods; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TWithTypes; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; -import org.moosetechnology.model.famix.moosequery.TOODependencyQueries; - - -@FamePackage("FAMIX") -@FameDescription("Class") -public class Class extends Type implements TClass, TEntityMetaLevelDependency, TInvocationsReceiver, TNamedEntity, TOODependencyQueries, TPackageable, TReferenceable, TSourceEntity, TType, TWithAttributes, TWithComments, TWithExceptions, TWithInheritances, TWithMethods, TWithSourceLanguage { - - private Boolean isInterface; - - private Collection attributes; - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private Collection exceptions; - - private Collection incomingReferences; - - private Boolean isStub; - - private Collection methods; - - private String name; - - private Number numberOfLinesOfCode; - - private TPackage parentPackage; - - private Collection receivingInvocations; - - private TSourceAnchor sourceAnchor; - - private Collection subInheritances; - - private Collection superInheritances; - - private TWithTypes typeContainer; - - private Collection typedEntities; - - - - @FameProperty(name = "isIgnored", derived = true) - public Collection getIsIgnored() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isInterface") - public Boolean getIsInterface() { - return isInterface; - } - - public void setIsInterface(Boolean isInterface) { - this.isInterface = isInterface; - } - - @FameProperty(name = "attributes", opposite = "parentType", derived = true) - public Collection getAttributes() { - if (attributes == null) { - attributes = new MultivalueSet() { - @Override - protected void clearOpposite(TAttribute e) { - e.setParentType(null); - } - @Override - protected void setOpposite(TAttribute e) { - e.setParentType(Class.this); - } - }; - } - return attributes; - } - - public void setAttributes(Collection attributes) { - this.getAttributes().clear(); - this.getAttributes().addAll(attributes); - } - - - public void addAttributes(TAttribute one) { - this.getAttributes().add(one); - } - - public void addAttributes(TAttribute one, TAttribute... many) { - this.getAttributes().add(one); - for (TAttribute each : many) - this.getAttributes().add(each); - } - - public void addAttributes(Iterable many) { - for (TAttribute each : many) - this.getAttributes().add(each); - } - - public void addAttributes(TAttribute[] many) { - for (TAttribute each : many) - this.getAttributes().add(each); - } - - public int numberOfAttributes() { - return getAttributes().size(); - } - - public boolean hasAttributes() { - return !getAttributes().isEmpty(); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(Class.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "exceptions", opposite = "exceptionClass", derived = true) - public Collection getExceptions() { - if (exceptions == null) { - exceptions = new MultivalueSet() { - @Override - protected void clearOpposite(TException e) { - e.setExceptionClass(null); - } - @Override - protected void setOpposite(TException e) { - e.setExceptionClass(Class.this); - } - }; - } - return exceptions; - } - - public void setExceptions(Collection exceptions) { - this.getExceptions().clear(); - this.getExceptions().addAll(exceptions); - } - - - public void addExceptions(TException one) { - this.getExceptions().add(one); - } - - public void addExceptions(TException one, TException... many) { - this.getExceptions().add(one); - for (TException each : many) - this.getExceptions().add(each); - } - - public void addExceptions(Iterable many) { - for (TException each : many) - this.getExceptions().add(each); - } - - public void addExceptions(TException[] many) { - for (TException each : many) - this.getExceptions().add(each); - } - - public int numberOfExceptions() { - return getExceptions().size(); - } - - public boolean hasExceptions() { - return !getExceptions().isEmpty(); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hierarchyNestingLevel", derived = true) - public Number getHierarchyNestingLevel() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingReferences", opposite = "referredType", derived = true) - public Collection getIncomingReferences() { - if (incomingReferences == null) { - incomingReferences = new MultivalueSet() { - @Override - protected void clearOpposite(TReference e) { - e.setReferredType(null); - } - @Override - protected void setOpposite(TReference e) { - e.setReferredType(Class.this); - } - }; - } - return incomingReferences; - } - - public void setIncomingReferences(Collection incomingReferences) { - this.getIncomingReferences().clear(); - this.getIncomingReferences().addAll(incomingReferences); - } - - - public void addIncomingReferences(TReference one) { - this.getIncomingReferences().add(one); - } - - public void addIncomingReferences(TReference one, TReference... many) { - this.getIncomingReferences().add(one); - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public void addIncomingReferences(Iterable many) { - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public void addIncomingReferences(TReference[] many) { - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public int numberOfIncomingReferences() { - return getIncomingReferences().size(); - } - - public boolean hasIncomingReferences() { - return !getIncomingReferences().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "isTestCase", derived = true) - public Boolean getIsTestCase() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "methods", opposite = "parentType", derived = true) - public Collection getMethods() { - if (methods == null) { - methods = new MultivalueSet() { - @Override - protected void clearOpposite(TMethod e) { - e.setParentType(null); - } - @Override - protected void setOpposite(TMethod e) { - e.setParentType(Class.this); - } - }; - } - return methods; - } - - public void setMethods(Collection methods) { - this.getMethods().clear(); - this.getMethods().addAll(methods); - } - - - public void addMethods(TMethod one) { - this.getMethods().add(one); - } - - public void addMethods(TMethod one, TMethod... many) { - this.getMethods().add(one); - for (TMethod each : many) - this.getMethods().add(each); - } - - public void addMethods(Iterable many) { - for (TMethod each : many) - this.getMethods().add(each); - } - - public void addMethods(TMethod[] many) { - for (TMethod each : many) - this.getMethods().add(each); - } - - public int numberOfMethods() { - return getMethods().size(); - } - - public boolean hasMethods() { - return !getMethods().isEmpty(); - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAbstractMethods", derived = true) - public Number getNumberOfAbstractMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessesToForeignData", derived = true) - public Number getNumberOfAccessesToForeignData() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessorMethods", derived = true) - public Number getNumberOfAccessorMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAttributes", derived = true) - public Number getNumberOfAttributes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAttributesInherited", derived = true) - public Number getNumberOfAttributesInherited() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfConstructorMethods", derived = true) - public Number getNumberOfConstructorMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDirectSubclasses", derived = true) - public Number getNumberOfDirectSubclasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDuplicatedLinesOfCodeInternally", derived = true) - public Number getNumberOfDuplicatedLinesOfCodeInternally() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfMessageSends", derived = true) - public Number getNumberOfMessageSends() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfMethods", derived = true) - public Number getNumberOfMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfMethodsAdded", derived = true) - public Number getNumberOfMethodsAdded() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfMethodsInHierarchy", derived = true) - public Number getNumberOfMethodsInHierarchy() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfMethodsInherited", derived = true) - public Number getNumberOfMethodsInherited() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfMethodsOverriden", derived = true) - public Number getNumberOfMethodsOverriden() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfPrivateAttributes", derived = true) - public Number getNumberOfPrivateAttributes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfPrivateMethods", derived = true) - public Number getNumberOfPrivateMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfProtectedAttributes", derived = true) - public Number getNumberOfProtectedAttributes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfProtectedMethods", derived = true) - public Number getNumberOfProtectedMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfPublicAttributes", derived = true) - public Number getNumberOfPublicAttributes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfPublicMethods", derived = true) - public Number getNumberOfPublicMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfRevealedAttributes", derived = true) - public Number getNumberOfRevealedAttributes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfSubclasses", derived = true) - public Number getNumberOfSubclasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parentPackage", opposite = "childEntities", container = true) - public TPackage getParentPackage() { - return parentPackage; - } - - public void setParentPackage(TPackage parentPackage) { - if (this.parentPackage != null) { - if (this.parentPackage.equals(parentPackage)) return; - this.parentPackage.getChildEntities().remove(this); - } - this.parentPackage = parentPackage; - if (parentPackage == null) return; - parentPackage.getChildEntities().add(this); - } - - @FameProperty(name = "receivingInvocations", opposite = "receiver", derived = true) - public Collection getReceivingInvocations() { - if (receivingInvocations == null) { - receivingInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocation e) { - e.setReceiver(null); - } - @Override - protected void setOpposite(TInvocation e) { - e.setReceiver(Class.this); - } - }; - } - return receivingInvocations; - } - - public void setReceivingInvocations(Collection receivingInvocations) { - this.getReceivingInvocations().clear(); - this.getReceivingInvocations().addAll(receivingInvocations); - } - - - public void addReceivingInvocations(TInvocation one) { - this.getReceivingInvocations().add(one); - } - - public void addReceivingInvocations(TInvocation one, TInvocation... many) { - this.getReceivingInvocations().add(one); - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(Iterable many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(TInvocation[] many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public int numberOfReceivingInvocations() { - return getReceivingInvocations().size(); - } - - public boolean hasReceivingInvocations() { - return !getReceivingInvocations().isEmpty(); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "subInheritances", opposite = "superclass", derived = true) - public Collection getSubInheritances() { - if (subInheritances == null) { - subInheritances = new MultivalueSet() { - @Override - protected void clearOpposite(TInheritance e) { - e.setSuperclass(null); - } - @Override - protected void setOpposite(TInheritance e) { - e.setSuperclass(Class.this); - } - }; - } - return subInheritances; - } - - public void setSubInheritances(Collection subInheritances) { - this.getSubInheritances().clear(); - this.getSubInheritances().addAll(subInheritances); - } - - - public void addSubInheritances(TInheritance one) { - this.getSubInheritances().add(one); - } - - public void addSubInheritances(TInheritance one, TInheritance... many) { - this.getSubInheritances().add(one); - for (TInheritance each : many) - this.getSubInheritances().add(each); - } - - public void addSubInheritances(Iterable many) { - for (TInheritance each : many) - this.getSubInheritances().add(each); - } - - public void addSubInheritances(TInheritance[] many) { - for (TInheritance each : many) - this.getSubInheritances().add(each); - } - - public int numberOfSubInheritances() { - return getSubInheritances().size(); - } - - public boolean hasSubInheritances() { - return !getSubInheritances().isEmpty(); - } - - @FameProperty(name = "subclassHierarchyDepth", derived = true) - public Number getSubclassHierarchyDepth() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "superInheritances", opposite = "subclass", derived = true) - public Collection getSuperInheritances() { - if (superInheritances == null) { - superInheritances = new MultivalueSet() { - @Override - protected void clearOpposite(TInheritance e) { - e.setSubclass(null); - } - @Override - protected void setOpposite(TInheritance e) { - e.setSubclass(Class.this); - } - }; - } - return superInheritances; - } - - public void setSuperInheritances(Collection superInheritances) { - this.getSuperInheritances().clear(); - this.getSuperInheritances().addAll(superInheritances); - } - - - public void addSuperInheritances(TInheritance one) { - this.getSuperInheritances().add(one); - } - - public void addSuperInheritances(TInheritance one, TInheritance... many) { - this.getSuperInheritances().add(one); - for (TInheritance each : many) - this.getSuperInheritances().add(each); - } - - public void addSuperInheritances(Iterable many) { - for (TInheritance each : many) - this.getSuperInheritances().add(each); - } - - public void addSuperInheritances(TInheritance[] many) { - for (TInheritance each : many) - this.getSuperInheritances().add(each); - } - - public int numberOfSuperInheritances() { - return getSuperInheritances().size(); - } - - public boolean hasSuperInheritances() { - return !getSuperInheritances().isEmpty(); - } - - @FameProperty(name = "tightClassCohesion", derived = true) - public Number getTightClassCohesion() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "totalNumberOfSubclasses", derived = true) - public Number getTotalNumberOfSubclasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "typeContainer", opposite = "types", container = true) - public TWithTypes getTypeContainer() { - return typeContainer; - } - - public void setTypeContainer(TWithTypes typeContainer) { - if (this.typeContainer != null) { - if (this.typeContainer.equals(typeContainer)) return; - this.typeContainer.getTypes().remove(this); - } - this.typeContainer = typeContainer; - if (typeContainer == null) return; - typeContainer.getTypes().add(this); - } - - @FameProperty(name = "typedEntities", opposite = "declaredType", derived = true) - public Collection getTypedEntities() { - if (typedEntities == null) { - typedEntities = new MultivalueSet() { - @Override - protected void clearOpposite(TTypedEntity e) { - e.setDeclaredType(null); - } - @Override - protected void setOpposite(TTypedEntity e) { - e.setDeclaredType(Class.this); - } - }; - } - return typedEntities; - } - - public void setTypedEntities(Collection typedEntities) { - this.getTypedEntities().clear(); - this.getTypedEntities().addAll(typedEntities); - } - - - public void addTypedEntities(TTypedEntity one) { - this.getTypedEntities().add(one); - } - - public void addTypedEntities(TTypedEntity one, TTypedEntity... many) { - this.getTypedEntities().add(one); - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public void addTypedEntities(Iterable many) { - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public void addTypedEntities(TTypedEntity[] many) { - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public int numberOfTypedEntities() { - return getTypedEntities().size(); - } - - public boolean hasTypedEntities() { - return !getTypedEntities().isEmpty(); - } - - @FameProperty(name = "weightOfAClass", derived = true) - public Number getWeightOfAClass() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "weightedMethodCount", derived = true) - public Number getWeightedMethodCount() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Comment.java b/gen/org/moosetechnology/model/famix/famix/Comment.java deleted file mode 100644 index 6d1531f..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Comment.java +++ /dev/null @@ -1,48 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TWithComments; - - -@FamePackage("FAMIX") -@FameDescription("Comment") -public class Comment extends SourcedEntity implements TComment { - - private TWithComments container; - - private String content; - - - - @FameProperty(name = "container", opposite = "comments") - public TWithComments getContainer() { - return container; - } - - public void setContainer(TWithComments container) { - if (this.container != null) { - if (this.container.equals(container)) return; - this.container.getComments().remove(this); - } - this.container = container; - if (container == null) return; - container.getComments().add(this); - } - - @FameProperty(name = "content") - public String getContent() { - return content; - } - - public void setContent(String content) { - this.content = content; - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/CompilationUnit.java b/gen/org/moosetechnology/model/famix/famix/CompilationUnit.java deleted file mode 100644 index 95d7f27..0000000 --- a/gen/org/moosetechnology/model/famix/famix/CompilationUnit.java +++ /dev/null @@ -1,172 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixtraits.TCompilationUnit; -import org.moosetechnology.model.famix.famixtraits.TDefinedInModule; -import org.moosetechnology.model.famix.famixtraits.TFile; -import org.moosetechnology.model.famix.famixtraits.TFileSystemEntity; -import org.moosetechnology.model.famix.famixtraits.TFolder; -import org.moosetechnology.model.famix.famixtraits.TModule; -import org.moosetechnology.model.famix.famixtraits.TWithCompilationUnit; -import org.moosetechnology.model.famix.famixtraits.TWithFiles; - - -@FamePackage("FAMIX") -@FameDescription("CompilationUnit") -public class CompilationUnit extends CFile implements TCompilationUnit, TDefinedInModule, TFile, TFileSystemEntity { - - private TWithCompilationUnit compilationUnitOwner; - - private Collection entities; - - private TFolder parentFolder; - - private TModule parentModule; - - - - @FameProperty(name = "averageNumberOfCharactersPerLine", derived = true) - public Number getAverageNumberOfCharactersPerLine() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "compilationUnitOwner", opposite = "compilationUnit") - public TWithCompilationUnit getCompilationUnitOwner() { - return compilationUnitOwner; - } - - public void setCompilationUnitOwner(TWithCompilationUnit compilationUnitOwner) { - if (this.compilationUnitOwner == null ? compilationUnitOwner != null : !this.compilationUnitOwner.equals(compilationUnitOwner)) { - TWithCompilationUnit old_compilationUnitOwner = this.compilationUnitOwner; - this.compilationUnitOwner = compilationUnitOwner; - if (old_compilationUnitOwner != null) old_compilationUnitOwner.setCompilationUnit(null); - if (compilationUnitOwner != null) compilationUnitOwner.setCompilationUnit(this); - } - } - - @FameProperty(name = "entities", opposite = "containerFiles", derived = true) - public Collection getEntities() { - if (entities == null) { - entities = new MultivalueSet() { - @Override - protected void clearOpposite(TWithFiles e) { - e.getContainerFiles().remove(CompilationUnit.this); - } - @Override - protected void setOpposite(TWithFiles e) { - e.getContainerFiles().add(CompilationUnit.this); - } - }; - } - return entities; - } - - public void setEntities(Collection entities) { - this.getEntities().clear(); - this.getEntities().addAll(entities); - } - - public void addEntities(TWithFiles one) { - this.getEntities().add(one); - } - - public void addEntities(TWithFiles one, TWithFiles... many) { - this.getEntities().add(one); - for (TWithFiles each : many) - this.getEntities().add(each); - } - - public void addEntities(Iterable many) { - for (TWithFiles each : many) - this.getEntities().add(each); - } - - public void addEntities(TWithFiles[] many) { - for (TWithFiles each : many) - this.getEntities().add(each); - } - - public int numberOfEntities() { - return getEntities().size(); - } - - public boolean hasEntities() { - return !getEntities().isEmpty(); - } - - @FameProperty(name = "numberOfBytes", derived = true) - public Number getNumberOfBytes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfCharacters", derived = true) - public Number getNumberOfCharacters() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfEmptyLinesOfText", derived = true) - public Number getNumberOfEmptyLinesOfText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfKiloBytes", derived = true) - public Number getNumberOfKiloBytes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfText", derived = true) - public Number getNumberOfLinesOfText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parentFolder", opposite = "childrenFileSystemEntities", container = true) - public TFolder getParentFolder() { - return parentFolder; - } - - public void setParentFolder(TFolder parentFolder) { - if (this.parentFolder != null) { - if (this.parentFolder.equals(parentFolder)) return; - this.parentFolder.getChildrenFileSystemEntities().remove(this); - } - this.parentFolder = parentFolder; - if (parentFolder == null) return; - parentFolder.getChildrenFileSystemEntities().add(this); - } - - @FameProperty(name = "parentModule", opposite = "moduleEntities") - public TModule getParentModule() { - return parentModule; - } - - public void setParentModule(TModule parentModule) { - if (this.parentModule != null) { - if (this.parentModule.equals(parentModule)) return; - this.parentModule.getModuleEntities().remove(this); - } - this.parentModule = parentModule; - if (parentModule == null) return; - parentModule.getModuleEntities().add(this); - } - - @FameProperty(name = "totalNumberOfLinesOfText", derived = true) - public Number getTotalNumberOfLinesOfText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/ContainerEntity.java b/gen/org/moosetechnology/model/famix/famix/ContainerEntity.java deleted file mode 100644 index 4a11e30..0000000 --- a/gen/org/moosetechnology/model/famix/famix/ContainerEntity.java +++ /dev/null @@ -1,224 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixtraits.TAnnotationType; -import org.moosetechnology.model.famix.famixtraits.TFunction; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TWithAnnotationTypes; -import org.moosetechnology.model.famix.famixtraits.TWithClasses; -import org.moosetechnology.model.famix.famixtraits.TWithFunctions; -import org.moosetechnology.model.famix.famixtraits.TWithTypes; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; -import org.moosetechnology.model.famix.moosequery.TOODependencyQueries; - - -@FamePackage("FAMIX") -@FameDescription("ContainerEntity") -public class ContainerEntity extends NamedEntity implements TEntityMetaLevelDependency, TOODependencyQueries, TWithAnnotationTypes, TWithClasses, TWithFunctions, TWithTypes { - - private Collection definedAnnotationTypes; - - private Collection functions; - - private Collection types; - - - - @FameProperty(name = "definedAnnotationTypes", opposite = "annotationTypesContainer", derived = true) - public Collection getDefinedAnnotationTypes() { - if (definedAnnotationTypes == null) { - definedAnnotationTypes = new MultivalueSet() { - @Override - protected void clearOpposite(TAnnotationType e) { - e.setAnnotationTypesContainer(null); - } - @Override - protected void setOpposite(TAnnotationType e) { - e.setAnnotationTypesContainer(ContainerEntity.this); - } - }; - } - return definedAnnotationTypes; - } - - public void setDefinedAnnotationTypes(Collection definedAnnotationTypes) { - this.getDefinedAnnotationTypes().clear(); - this.getDefinedAnnotationTypes().addAll(definedAnnotationTypes); - } - - - public void addDefinedAnnotationTypes(TAnnotationType one) { - this.getDefinedAnnotationTypes().add(one); - } - - public void addDefinedAnnotationTypes(TAnnotationType one, TAnnotationType... many) { - this.getDefinedAnnotationTypes().add(one); - for (TAnnotationType each : many) - this.getDefinedAnnotationTypes().add(each); - } - - public void addDefinedAnnotationTypes(Iterable many) { - for (TAnnotationType each : many) - this.getDefinedAnnotationTypes().add(each); - } - - public void addDefinedAnnotationTypes(TAnnotationType[] many) { - for (TAnnotationType each : many) - this.getDefinedAnnotationTypes().add(each); - } - - public int numberOfDefinedAnnotationTypes() { - return getDefinedAnnotationTypes().size(); - } - - public boolean hasDefinedAnnotationTypes() { - return !getDefinedAnnotationTypes().isEmpty(); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "functions", opposite = "functionOwner", derived = true) - public Collection getFunctions() { - if (functions == null) { - functions = new MultivalueSet() { - @Override - protected void clearOpposite(TFunction e) { - e.setFunctionOwner(null); - } - @Override - protected void setOpposite(TFunction e) { - e.setFunctionOwner(ContainerEntity.this); - } - }; - } - return functions; - } - - public void setFunctions(Collection functions) { - this.getFunctions().clear(); - this.getFunctions().addAll(functions); - } - - - public void addFunctions(TFunction one) { - this.getFunctions().add(one); - } - - public void addFunctions(TFunction one, TFunction... many) { - this.getFunctions().add(one); - for (TFunction each : many) - this.getFunctions().add(each); - } - - public void addFunctions(Iterable many) { - for (TFunction each : many) - this.getFunctions().add(each); - } - - public void addFunctions(TFunction[] many) { - for (TFunction each : many) - this.getFunctions().add(each); - } - - public int numberOfFunctions() { - return getFunctions().size(); - } - - public boolean hasFunctions() { - return !getFunctions().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfClasses", derived = true) - public Number getNumberOfClasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "types", opposite = "typeContainer", derived = true) - public Collection getTypes() { - if (types == null) { - types = new MultivalueSet() { - @Override - protected void clearOpposite(TType e) { - e.setTypeContainer(null); - } - @Override - protected void setOpposite(TType e) { - e.setTypeContainer(ContainerEntity.this); - } - }; - } - return types; - } - - public void setTypes(Collection types) { - this.getTypes().clear(); - this.getTypes().addAll(types); - } - - - public void addTypes(TType one) { - this.getTypes().add(one); - } - - public void addTypes(TType one, TType... many) { - this.getTypes().add(one); - for (TType each : many) - this.getTypes().add(each); - } - - public void addTypes(Iterable many) { - for (TType each : many) - this.getTypes().add(each); - } - - public void addTypes(TType[] many) { - for (TType each : many) - this.getTypes().add(each); - } - - public int numberOfTypes() { - return getTypes().size(); - } - - public boolean hasTypes() { - return !getTypes().isEmpty(); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/CppSourceLanguage.java b/gen/org/moosetechnology/model/famix/famix/CppSourceLanguage.java deleted file mode 100644 index 27ef359..0000000 --- a/gen/org/moosetechnology/model/famix/famix/CppSourceLanguage.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("FAMIX") -@FameDescription("CppSourceLanguage") -public class CppSourceLanguage extends CSourceLanguage { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/CustomSourceLanguage.java b/gen/org/moosetechnology/model/famix/famix/CustomSourceLanguage.java deleted file mode 100644 index a040f3d..0000000 --- a/gen/org/moosetechnology/model/famix/famix/CustomSourceLanguage.java +++ /dev/null @@ -1,220 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("CustomSourceLanguage") -public class CustomSourceLanguage extends SourceLanguage implements TEntityMetaLevelDependency, TNamedEntity, TSourceEntity, TWithComments, TWithSourceLanguage { - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(CustomSourceLanguage.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/DeclaredException.java b/gen/org/moosetechnology/model/famix/famix/DeclaredException.java deleted file mode 100644 index 903a87c..0000000 --- a/gen/org/moosetechnology/model/famix/famix/DeclaredException.java +++ /dev/null @@ -1,37 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixtraits.TDeclaredException; -import org.moosetechnology.model.famix.famixtraits.TWithDeclaredExceptions; - - -@FamePackage("FAMIX") -@FameDescription("DeclaredException") -public class DeclaredException extends Exception implements TDeclaredException { - - private TWithDeclaredExceptions definingEntity; - - - - @FameProperty(name = "definingEntity", opposite = "declaredExceptions") - public TWithDeclaredExceptions getDefiningEntity() { - return definingEntity; - } - - public void setDefiningEntity(TWithDeclaredExceptions definingEntity) { - if (this.definingEntity != null) { - if (this.definingEntity.equals(definingEntity)) return; - this.definingEntity.getDeclaredExceptions().remove(this); - } - this.definingEntity = definingEntity; - if (definingEntity == null) return; - definingEntity.getDeclaredExceptions().add(this); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/DereferencedInvocation.java b/gen/org/moosetechnology/model/famix/famix/DereferencedInvocation.java deleted file mode 100644 index ca55b8f..0000000 --- a/gen/org/moosetechnology/model/famix/famix/DereferencedInvocation.java +++ /dev/null @@ -1,320 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAssociation; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TDereferencedInvocation; -import org.moosetechnology.model.famix.famixtraits.TInvocable; -import org.moosetechnology.model.famix.famixtraits.TInvocation; -import org.moosetechnology.model.famix.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithDereferencedInvocations; -import org.moosetechnology.model.famix.famixtraits.TWithInvocations; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("DereferencedInvocation") -public class DereferencedInvocation extends Invocation implements TAssociation, TAssociationMetaLevelDependency, TDereferencedInvocation, TInvocation, TSourceEntity, TWithComments, TWithSourceLanguage { - - private Collection candidates; - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private Boolean isStub; - - private TAssociation next; - - private Number numberOfLinesOfCode; - - private TAssociation previous; - - private TInvocationsReceiver receiver; - - private TWithDereferencedInvocations referencer; - - private TWithInvocations sender; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "candidates", opposite = "incomingInvocations") - public Collection getCandidates() { - if (candidates == null) { - candidates = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocable e) { - e.getIncomingInvocations().remove(DereferencedInvocation.this); - } - @Override - protected void setOpposite(TInvocable e) { - e.getIncomingInvocations().add(DereferencedInvocation.this); - } - }; - } - return candidates; - } - - public void setCandidates(Collection candidates) { - this.getCandidates().clear(); - this.getCandidates().addAll(candidates); - } - - public void addCandidates(TInvocable one) { - this.getCandidates().add(one); - } - - public void addCandidates(TInvocable one, TInvocable... many) { - this.getCandidates().add(one); - for (TInvocable each : many) - this.getCandidates().add(each); - } - - public void addCandidates(Iterable many) { - for (TInvocable each : many) - this.getCandidates().add(each); - } - - public void addCandidates(TInvocable[] many) { - for (TInvocable each : many) - this.getCandidates().add(each); - } - - public int numberOfCandidates() { - return getCandidates().size(); - } - - public boolean hasCandidates() { - return !getCandidates().isEmpty(); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(DereferencedInvocation.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "next", opposite = "previous", derived = true) - public TAssociation getNext() { - return next; - } - - public void setNext(TAssociation next) { - if (this.next == null ? next != null : !this.next.equals(next)) { - TAssociation old_next = this.next; - this.next = next; - if (old_next != null) old_next.setPrevious(null); - if (next != null) next.setPrevious(this); - } - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "previous", opposite = "next") - public TAssociation getPrevious() { - return previous; - } - - public void setPrevious(TAssociation previous) { - if (this.previous == null ? previous != null : !this.previous.equals(previous)) { - TAssociation old_previous = this.previous; - this.previous = previous; - if (old_previous != null) old_previous.setNext(null); - if (previous != null) previous.setNext(this); - } - } - - @FameProperty(name = "receiver", opposite = "receivingInvocations") - public TInvocationsReceiver getReceiver() { - return receiver; - } - - public void setReceiver(TInvocationsReceiver receiver) { - if (this.receiver != null) { - if (this.receiver.equals(receiver)) return; - this.receiver.getReceivingInvocations().remove(this); - } - this.receiver = receiver; - if (receiver == null) return; - receiver.getReceivingInvocations().add(this); - } - - @FameProperty(name = "referencer", opposite = "dereferencedInvocations") - public TWithDereferencedInvocations getReferencer() { - return referencer; - } - - public void setReferencer(TWithDereferencedInvocations referencer) { - if (this.referencer != null) { - if (this.referencer.equals(referencer)) return; - this.referencer.getDereferencedInvocations().remove(this); - } - this.referencer = referencer; - if (referencer == null) return; - referencer.getDereferencedInvocations().add(this); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sender", opposite = "outgoingInvocations") - public TWithInvocations getSender() { - return sender; - } - - public void setSender(TWithInvocations sender) { - if (this.sender != null) { - if (this.sender.equals(sender)) return; - this.sender.getOutgoingInvocations().remove(this); - } - this.sender = sender; - if (sender == null) return; - sender.getOutgoingInvocations().add(this); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Entity.java b/gen/org/moosetechnology/model/famix/famix/Entity.java deleted file mode 100644 index 3613dea..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Entity.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("FAMIX") -@FameDescription("Entity") -public class Entity extends org.moosetechnology.model.famix.moose.Entity { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Enum.java b/gen/org/moosetechnology/model/famix/famix/Enum.java deleted file mode 100644 index 3c8ac11..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Enum.java +++ /dev/null @@ -1,416 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TEnum; -import org.moosetechnology.model.famix.famixtraits.TEnumValue; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TReference; -import org.moosetechnology.model.famix.famixtraits.TReferenceable; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithEnumValues; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TWithTypes; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("Enum") -public class Enum extends Type implements TEntityMetaLevelDependency, TEnum, TNamedEntity, TReferenceable, TSourceEntity, TType, TWithComments, TWithEnumValues, TWithSourceLanguage { - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private Collection enumValues; - - private Collection incomingReferences; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TSourceAnchor sourceAnchor; - - private TWithTypes typeContainer; - - private Collection typedEntities; - - - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(Enum.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "enumValues", opposite = "parentEnum", derived = true) - public Collection getEnumValues() { - if (enumValues == null) { - enumValues = new MultivalueSet() { - @Override - protected void clearOpposite(TEnumValue e) { - e.setParentEnum(null); - } - @Override - protected void setOpposite(TEnumValue e) { - e.setParentEnum(Enum.this); - } - }; - } - return enumValues; - } - - public void setEnumValues(Collection enumValues) { - this.getEnumValues().clear(); - this.getEnumValues().addAll(enumValues); - } - - - public void addEnumValues(TEnumValue one) { - this.getEnumValues().add(one); - } - - public void addEnumValues(TEnumValue one, TEnumValue... many) { - this.getEnumValues().add(one); - for (TEnumValue each : many) - this.getEnumValues().add(each); - } - - public void addEnumValues(Iterable many) { - for (TEnumValue each : many) - this.getEnumValues().add(each); - } - - public void addEnumValues(TEnumValue[] many) { - for (TEnumValue each : many) - this.getEnumValues().add(each); - } - - public int numberOfEnumValues() { - return getEnumValues().size(); - } - - public boolean hasEnumValues() { - return !getEnumValues().isEmpty(); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingReferences", opposite = "referredType", derived = true) - public Collection getIncomingReferences() { - if (incomingReferences == null) { - incomingReferences = new MultivalueSet() { - @Override - protected void clearOpposite(TReference e) { - e.setReferredType(null); - } - @Override - protected void setOpposite(TReference e) { - e.setReferredType(Enum.this); - } - }; - } - return incomingReferences; - } - - public void setIncomingReferences(Collection incomingReferences) { - this.getIncomingReferences().clear(); - this.getIncomingReferences().addAll(incomingReferences); - } - - - public void addIncomingReferences(TReference one) { - this.getIncomingReferences().add(one); - } - - public void addIncomingReferences(TReference one, TReference... many) { - this.getIncomingReferences().add(one); - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public void addIncomingReferences(Iterable many) { - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public void addIncomingReferences(TReference[] many) { - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public int numberOfIncomingReferences() { - return getIncomingReferences().size(); - } - - public boolean hasIncomingReferences() { - return !getIncomingReferences().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAccessesToForeignData", derived = true) - public Number getNumberOfAccessesToForeignData() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDuplicatedLinesOfCodeInternally", derived = true) - public Number getNumberOfDuplicatedLinesOfCodeInternally() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "typeContainer", opposite = "types", container = true) - public TWithTypes getTypeContainer() { - return typeContainer; - } - - public void setTypeContainer(TWithTypes typeContainer) { - if (this.typeContainer != null) { - if (this.typeContainer.equals(typeContainer)) return; - this.typeContainer.getTypes().remove(this); - } - this.typeContainer = typeContainer; - if (typeContainer == null) return; - typeContainer.getTypes().add(this); - } - - @FameProperty(name = "typedEntities", opposite = "declaredType", derived = true) - public Collection getTypedEntities() { - if (typedEntities == null) { - typedEntities = new MultivalueSet() { - @Override - protected void clearOpposite(TTypedEntity e) { - e.setDeclaredType(null); - } - @Override - protected void setOpposite(TTypedEntity e) { - e.setDeclaredType(Enum.this); - } - }; - } - return typedEntities; - } - - public void setTypedEntities(Collection typedEntities) { - this.getTypedEntities().clear(); - this.getTypedEntities().addAll(typedEntities); - } - - - public void addTypedEntities(TTypedEntity one) { - this.getTypedEntities().add(one); - } - - public void addTypedEntities(TTypedEntity one, TTypedEntity... many) { - this.getTypedEntities().add(one); - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public void addTypedEntities(Iterable many) { - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public void addTypedEntities(TTypedEntity[] many) { - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public int numberOfTypedEntities() { - return getTypedEntities().size(); - } - - public boolean hasTypedEntities() { - return !getTypedEntities().isEmpty(); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/EnumValue.java b/gen/org/moosetechnology/model/famix/famix/EnumValue.java deleted file mode 100644 index 3ff34ad..0000000 --- a/gen/org/moosetechnology/model/famix/famix/EnumValue.java +++ /dev/null @@ -1,37 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixtraits.TEnumValue; -import org.moosetechnology.model.famix.famixtraits.TWithEnumValues; - - -@FamePackage("FAMIX") -@FameDescription("EnumValue") -public class EnumValue extends StructuralEntity implements TEnumValue { - - private TWithEnumValues parentEnum; - - - - @FameProperty(name = "parentEnum", opposite = "enumValues", container = true) - public TWithEnumValues getParentEnum() { - return parentEnum; - } - - public void setParentEnum(TWithEnumValues parentEnum) { - if (this.parentEnum != null) { - if (this.parentEnum.equals(parentEnum)) return; - this.parentEnum.getEnumValues().remove(this); - } - this.parentEnum = parentEnum; - if (parentEnum == null) return; - parentEnum.getEnumValues().add(this); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Exception.java b/gen/org/moosetechnology/model/famix/famix/Exception.java deleted file mode 100644 index 15ee770..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Exception.java +++ /dev/null @@ -1,48 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixtraits.TException; -import org.moosetechnology.model.famix.famixtraits.TWithExceptions; - - -@FamePackage("FAMIX") -@FameDescription("Exception") -public class Exception extends Entity implements TException { - - private Method definingMethod; - - private TWithExceptions exceptionClass; - - - - @FameProperty(name = "definingMethod") - public Method getDefiningMethod() { - return definingMethod; - } - - public void setDefiningMethod(Method definingMethod) { - this.definingMethod = definingMethod; - } - - @FameProperty(name = "exceptionClass", opposite = "exceptions") - public TWithExceptions getExceptionClass() { - return exceptionClass; - } - - public void setExceptionClass(TWithExceptions exceptionClass) { - if (this.exceptionClass != null) { - if (this.exceptionClass.equals(exceptionClass)) return; - this.exceptionClass.getExceptions().remove(this); - } - this.exceptionClass = exceptionClass; - if (exceptionClass == null) return; - exceptionClass.getExceptions().add(this); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/FAMIXModel.java b/gen/org/moosetechnology/model/famix/famix/FAMIXModel.java deleted file mode 100644 index 8ea6f7d..0000000 --- a/gen/org/moosetechnology/model/famix/famix/FAMIXModel.java +++ /dev/null @@ -1,86 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.MetaRepository; - -public class FAMIXModel { - - public static MetaRepository metamodel() { - MetaRepository metamodel = new MetaRepository(); - importInto(metamodel); - return metamodel; - } - - public static void importInto(MetaRepository metamodel) { - metamodel.with(org.moosetechnology.model.famix.famix.AbstractFileAnchor.class); - metamodel.with(org.moosetechnology.model.famix.famix.Access.class); - metamodel.with(org.moosetechnology.model.famix.famix.AnnotationInstance.class); - metamodel.with(org.moosetechnology.model.famix.famix.AnnotationInstanceAttribute.class); - metamodel.with(org.moosetechnology.model.famix.famix.AnnotationType.class); - metamodel.with(org.moosetechnology.model.famix.famix.AnnotationTypeAttribute.class); - metamodel.with(org.moosetechnology.model.famix.famix.Attribute.class); - metamodel.with(org.moosetechnology.model.famix.famix.BehaviouralEntity.class); - metamodel.with(org.moosetechnology.model.famix.famix.CFile.class); - metamodel.with(org.moosetechnology.model.famix.famix.CSourceLanguage.class); - metamodel.with(org.moosetechnology.model.famix.famix.CaughtException.class); - metamodel.with(org.moosetechnology.model.famix.famix.Class.class); - metamodel.with(org.moosetechnology.model.famix.famix.Comment.class); - metamodel.with(org.moosetechnology.model.famix.famix.CompilationUnit.class); - metamodel.with(org.moosetechnology.model.famix.famix.ContainerEntity.class); - metamodel.with(org.moosetechnology.model.famix.famix.CppSourceLanguage.class); - metamodel.with(org.moosetechnology.model.famix.famix.CustomSourceLanguage.class); - metamodel.with(org.moosetechnology.model.famix.famix.DeclaredException.class); - metamodel.with(org.moosetechnology.model.famix.famix.DereferencedInvocation.class); - metamodel.with(org.moosetechnology.model.famix.famix.Entity.class); - metamodel.with(org.moosetechnology.model.famix.famix.Enum.class); - metamodel.with(org.moosetechnology.model.famix.famix.EnumValue.class); - metamodel.with(org.moosetechnology.model.famix.famix.Exception.class); - metamodel.with(org.moosetechnology.model.famix.famix.File.class); - metamodel.with(org.moosetechnology.model.famix.famix.FileAnchor.class); - metamodel.with(org.moosetechnology.model.famix.famix.Folder.class); - metamodel.with(org.moosetechnology.model.famix.famix.Function.class); - metamodel.with(org.moosetechnology.model.famix.famix.GlobalVariable.class); - metamodel.with(org.moosetechnology.model.famix.famix.Header.class); - metamodel.with(org.moosetechnology.model.famix.famix.ImplicitVariable.class); - metamodel.with(org.moosetechnology.model.famix.famix.Include.class); - metamodel.with(org.moosetechnology.model.famix.famix.IndexedFileAnchor.class); - metamodel.with(org.moosetechnology.model.famix.famix.Inheritance.class); - metamodel.with(org.moosetechnology.model.famix.famix.Invocation.class); - metamodel.with(org.moosetechnology.model.famix.famix.JavaSourceLanguage.class); - metamodel.with(org.moosetechnology.model.famix.famix.LeafEntity.class); - metamodel.with(org.moosetechnology.model.famix.famix.LocalVariable.class); - metamodel.with(org.moosetechnology.model.famix.famix.Method.class); - metamodel.with(org.moosetechnology.model.famix.famix.Module.class); - metamodel.with(org.moosetechnology.model.famix.famix.MultipleFileAnchor.class); - metamodel.with(org.moosetechnology.model.famix.famix.NamedEntity.class); - metamodel.with(org.moosetechnology.model.famix.famix.Namespace.class); - metamodel.with(org.moosetechnology.model.famix.famix.Package.class); - metamodel.with(org.moosetechnology.model.famix.famix.Parameter.class); - metamodel.with(org.moosetechnology.model.famix.famix.ParameterType.class); - metamodel.with(org.moosetechnology.model.famix.famix.ParameterizableClass.class); - metamodel.with(org.moosetechnology.model.famix.famix.ParameterizedType.class); - metamodel.with(org.moosetechnology.model.famix.famix.PharoAnchor.class); - metamodel.with(org.moosetechnology.model.famix.famix.PreprocessorDefine.class); - metamodel.with(org.moosetechnology.model.famix.famix.PreprocessorIfdef.class); - metamodel.with(org.moosetechnology.model.famix.famix.PreprocessorStatement.class); - metamodel.with(org.moosetechnology.model.famix.famix.PrimitiveType.class); - metamodel.with(org.moosetechnology.model.famix.famix.Reference.class); - metamodel.with(org.moosetechnology.model.famix.famix.ScopingEntity.class); - metamodel.with(org.moosetechnology.model.famix.famix.SmalltalkSourceLanguage.class); - metamodel.with(org.moosetechnology.model.famix.famix.SourceAnchor.class); - metamodel.with(org.moosetechnology.model.famix.famix.SourceLanguage.class); - metamodel.with(org.moosetechnology.model.famix.famix.SourceTextAnchor.class); - metamodel.with(org.moosetechnology.model.famix.famix.SourcedEntity.class); - metamodel.with(org.moosetechnology.model.famix.famix.StructuralEntity.class); - metamodel.with(org.moosetechnology.model.famix.famix.ThrownException.class); - metamodel.with(org.moosetechnology.model.famix.famix.Trait.class); - metamodel.with(org.moosetechnology.model.famix.famix.TraitUsage.class); - metamodel.with(org.moosetechnology.model.famix.famix.Type.class); - metamodel.with(org.moosetechnology.model.famix.famix.TypeAlias.class); - metamodel.with(org.moosetechnology.model.famix.famix.UnknownSourceLanguage.class); - metamodel.with(org.moosetechnology.model.famix.famix.UnknownVariable.class); - - } - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/File.java b/gen/org/moosetechnology/model/famix/famix/File.java deleted file mode 100644 index 25216c9..0000000 --- a/gen/org/moosetechnology/model/famix/famix/File.java +++ /dev/null @@ -1,135 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixtraits.TFile; -import org.moosetechnology.model.famix.famixtraits.TFileSystemEntity; -import org.moosetechnology.model.famix.famixtraits.TFolder; -import org.moosetechnology.model.famix.famixtraits.TWithFiles; - - -@FamePackage("FAMIX") -@FameDescription("File") -public class File extends NamedEntity implements TFile, TFileSystemEntity { - - private Collection entities; - - private TFolder parentFolder; - - - - @FameProperty(name = "averageNumberOfCharactersPerLine", derived = true) - public Number getAverageNumberOfCharactersPerLine() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "entities", opposite = "containerFiles", derived = true) - public Collection getEntities() { - if (entities == null) { - entities = new MultivalueSet() { - @Override - protected void clearOpposite(TWithFiles e) { - e.getContainerFiles().remove(File.this); - } - @Override - protected void setOpposite(TWithFiles e) { - e.getContainerFiles().add(File.this); - } - }; - } - return entities; - } - - public void setEntities(Collection entities) { - this.getEntities().clear(); - this.getEntities().addAll(entities); - } - - public void addEntities(TWithFiles one) { - this.getEntities().add(one); - } - - public void addEntities(TWithFiles one, TWithFiles... many) { - this.getEntities().add(one); - for (TWithFiles each : many) - this.getEntities().add(each); - } - - public void addEntities(Iterable many) { - for (TWithFiles each : many) - this.getEntities().add(each); - } - - public void addEntities(TWithFiles[] many) { - for (TWithFiles each : many) - this.getEntities().add(each); - } - - public int numberOfEntities() { - return getEntities().size(); - } - - public boolean hasEntities() { - return !getEntities().isEmpty(); - } - - @FameProperty(name = "numberOfBytes", derived = true) - public Number getNumberOfBytes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfCharacters", derived = true) - public Number getNumberOfCharacters() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfEmptyLinesOfText", derived = true) - public Number getNumberOfEmptyLinesOfText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfKiloBytes", derived = true) - public Number getNumberOfKiloBytes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfText", derived = true) - public Number getNumberOfLinesOfText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parentFolder", opposite = "childrenFileSystemEntities", container = true) - public TFolder getParentFolder() { - return parentFolder; - } - - public void setParentFolder(TFolder parentFolder) { - if (this.parentFolder != null) { - if (this.parentFolder.equals(parentFolder)) return; - this.parentFolder.getChildrenFileSystemEntities().remove(this); - } - this.parentFolder = parentFolder; - if (parentFolder == null) return; - parentFolder.getChildrenFileSystemEntities().add(this); - } - - @FameProperty(name = "totalNumberOfLinesOfText", derived = true) - public Number getTotalNumberOfLinesOfText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/FileAnchor.java b/gen/org/moosetechnology/model/famix/famix/FileAnchor.java deleted file mode 100644 index dcdd8dd..0000000 --- a/gen/org/moosetechnology/model/famix/famix/FileAnchor.java +++ /dev/null @@ -1,122 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixtraits.TFile; -import org.moosetechnology.model.famix.famixtraits.TFileAnchor; -import org.moosetechnology.model.famix.famixtraits.TFileNavigation; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; - - -@FamePackage("FAMIX") -@FameDescription("FileAnchor") -public class FileAnchor extends AbstractFileAnchor implements TFileAnchor, TFileNavigation, TSourceAnchor { - - private TFile correspondingFile; - - private TSourceEntity element; - - private String encoding; - - private Number endColumn; - - private Number endLine; - - private String fileName; - - private Number startColumn; - - private Number startLine; - - - - @FameProperty(name = "correspondingFile") - public TFile getCorrespondingFile() { - return correspondingFile; - } - - public void setCorrespondingFile(TFile correspondingFile) { - this.correspondingFile = correspondingFile; - } - - @FameProperty(name = "element", opposite = "sourceAnchor") - public TSourceEntity getElement() { - return element; - } - - public void setElement(TSourceEntity element) { - if (this.element == null ? element != null : !this.element.equals(element)) { - TSourceEntity old_element = this.element; - this.element = element; - if (old_element != null) old_element.setSourceAnchor(null); - if (element != null) element.setSourceAnchor(this); - } - } - - @FameProperty(name = "encoding") - public String getEncoding() { - return encoding; - } - - public void setEncoding(String encoding) { - this.encoding = encoding; - } - - @FameProperty(name = "endColumn") - public Number getEndColumn() { - return endColumn; - } - - public void setEndColumn(Number endColumn) { - this.endColumn = endColumn; - } - - @FameProperty(name = "endLine") - public Number getEndLine() { - return endLine; - } - - public void setEndLine(Number endLine) { - this.endLine = endLine; - } - - @FameProperty(name = "fileName") - public String getFileName() { - return fileName; - } - - public void setFileName(String fileName) { - this.fileName = fileName; - } - - @FameProperty(name = "lineCount", derived = true) - public Number getLineCount() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "startColumn") - public Number getStartColumn() { - return startColumn; - } - - public void setStartColumn(Number startColumn) { - this.startColumn = startColumn; - } - - @FameProperty(name = "startLine") - public Number getStartLine() { - return startLine; - } - - public void setStartLine(Number startLine) { - this.startLine = startLine; - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Folder.java b/gen/org/moosetechnology/model/famix/famix/Folder.java deleted file mode 100644 index 7bdc93e..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Folder.java +++ /dev/null @@ -1,122 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixtraits.TFileSystemEntity; -import org.moosetechnology.model.famix.famixtraits.TFolder; - - -@FamePackage("FAMIX") -@FameDescription("Folder") -public class Folder extends NamedEntity implements TFileSystemEntity, TFolder { - - private Collection childrenFileSystemEntities; - - private TFolder parentFolder; - - - - @FameProperty(name = "childrenFileSystemEntities", opposite = "parentFolder", derived = true) - public Collection getChildrenFileSystemEntities() { - if (childrenFileSystemEntities == null) { - childrenFileSystemEntities = new MultivalueSet() { - @Override - protected void clearOpposite(TFileSystemEntity e) { - e.setParentFolder(null); - } - @Override - protected void setOpposite(TFileSystemEntity e) { - e.setParentFolder(Folder.this); - } - }; - } - return childrenFileSystemEntities; - } - - public void setChildrenFileSystemEntities(Collection childrenFileSystemEntities) { - this.getChildrenFileSystemEntities().clear(); - this.getChildrenFileSystemEntities().addAll(childrenFileSystemEntities); - } - - - public void addChildrenFileSystemEntities(TFileSystemEntity one) { - this.getChildrenFileSystemEntities().add(one); - } - - public void addChildrenFileSystemEntities(TFileSystemEntity one, TFileSystemEntity... many) { - this.getChildrenFileSystemEntities().add(one); - for (TFileSystemEntity each : many) - this.getChildrenFileSystemEntities().add(each); - } - - public void addChildrenFileSystemEntities(Iterable many) { - for (TFileSystemEntity each : many) - this.getChildrenFileSystemEntities().add(each); - } - - public void addChildrenFileSystemEntities(TFileSystemEntity[] many) { - for (TFileSystemEntity each : many) - this.getChildrenFileSystemEntities().add(each); - } - - public int numberOfChildrenFileSystemEntities() { - return getChildrenFileSystemEntities().size(); - } - - public boolean hasChildrenFileSystemEntities() { - return !getChildrenFileSystemEntities().isEmpty(); - } - - @FameProperty(name = "numberOfEmptyLinesOfText", derived = true) - public Number getNumberOfEmptyLinesOfText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfFiles", derived = true) - public Number getNumberOfFiles() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfFolders", derived = true) - public Number getNumberOfFolders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfText", derived = true) - public Number getNumberOfLinesOfText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parentFolder", opposite = "childrenFileSystemEntities", container = true) - public TFolder getParentFolder() { - return parentFolder; - } - - public void setParentFolder(TFolder parentFolder) { - if (this.parentFolder != null) { - if (this.parentFolder.equals(parentFolder)) return; - this.parentFolder.getChildrenFileSystemEntities().remove(this); - } - this.parentFolder = parentFolder; - if (parentFolder == null) return; - parentFolder.getChildrenFileSystemEntities().add(this); - } - - @FameProperty(name = "totalNumberOfLinesOfText", derived = true) - public Number getTotalNumberOfLinesOfText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Function.java b/gen/org/moosetechnology/model/famix/famix/Function.java deleted file mode 100644 index 4c66ed5..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Function.java +++ /dev/null @@ -1,484 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TDefinedInModule; -import org.moosetechnology.model.famix.famixtraits.TFunction; -import org.moosetechnology.model.famix.famixtraits.THasSignature; -import org.moosetechnology.model.famix.famixtraits.TInvocation; -import org.moosetechnology.model.famix.famixtraits.TModule; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TParameter; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithFunctions; -import org.moosetechnology.model.famix.famixtraits.TWithInvocations; -import org.moosetechnology.model.famix.famixtraits.TWithParameters; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TWithStatements; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("Function") -public class Function extends BehaviouralEntity implements TDefinedInModule, TEntityMetaLevelDependency, TFunction, THasSignature, TNamedEntity, TSourceEntity, TTypedEntity, TWithAccesses, TWithComments, TWithInvocations, TWithParameters, TWithSourceLanguage, TWithStatements { - - private Collection accesses; - - private Collection comments; - - private Number cyclomaticComplexity; - - private TSourceLanguage declaredSourceLanguage; - - private TType declaredType; - - private TWithFunctions functionOwner; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private Collection outgoingInvocations; - - private Collection parameters; - - private TModule parentModule; - - private String signature; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "accesses", opposite = "accessor", derived = true) - public Collection getAccesses() { - if (accesses == null) { - accesses = new MultivalueSet() { - @Override - protected void clearOpposite(TAccess e) { - e.setAccessor(null); - } - @Override - protected void setOpposite(TAccess e) { - e.setAccessor(Function.this); - } - }; - } - return accesses; - } - - public void setAccesses(Collection accesses) { - this.getAccesses().clear(); - this.getAccesses().addAll(accesses); - } - - - public void addAccesses(TAccess one) { - this.getAccesses().add(one); - } - - public void addAccesses(TAccess one, TAccess... many) { - this.getAccesses().add(one); - for (TAccess each : many) - this.getAccesses().add(each); - } - - public void addAccesses(Iterable many) { - for (TAccess each : many) - this.getAccesses().add(each); - } - - public void addAccesses(TAccess[] many) { - for (TAccess each : many) - this.getAccesses().add(each); - } - - public int numberOfAccesses() { - return getAccesses().size(); - } - - public boolean hasAccesses() { - return !getAccesses().isEmpty(); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(Function.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "cyclomaticComplexity") - public Number getCyclomaticComplexity() { - return cyclomaticComplexity; - } - - public void setCyclomaticComplexity(Number cyclomaticComplexity) { - this.cyclomaticComplexity = cyclomaticComplexity; - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType() { - return declaredType; - } - - public void setDeclaredType(TType declaredType) { - if (this.declaredType != null) { - if (this.declaredType.equals(declaredType)) return; - this.declaredType.getTypedEntities().remove(this); - } - this.declaredType = declaredType; - if (declaredType == null) return; - declaredType.getTypedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "functionOwner", opposite = "functions", container = true) - public TWithFunctions getFunctionOwner() { - return functionOwner; - } - - public void setFunctionOwner(TWithFunctions functionOwner) { - if (this.functionOwner != null) { - if (this.functionOwner.equals(functionOwner)) return; - this.functionOwner.getFunctions().remove(this); - } - this.functionOwner = functionOwner; - if (functionOwner == null) return; - functionOwner.getFunctions().add(this); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfParameters", derived = true) - public Number getNumberOfParameters() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfStatements", derived = true) - public Number getNumberOfStatements() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOflinesOfDeadCode", derived = true) - public Number getNumberOflinesOfDeadCode() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "outgoingInvocations", opposite = "sender", derived = true) - public Collection getOutgoingInvocations() { - if (outgoingInvocations == null) { - outgoingInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocation e) { - e.setSender(null); - } - @Override - protected void setOpposite(TInvocation e) { - e.setSender(Function.this); - } - }; - } - return outgoingInvocations; - } - - public void setOutgoingInvocations(Collection outgoingInvocations) { - this.getOutgoingInvocations().clear(); - this.getOutgoingInvocations().addAll(outgoingInvocations); - } - - - public void addOutgoingInvocations(TInvocation one) { - this.getOutgoingInvocations().add(one); - } - - public void addOutgoingInvocations(TInvocation one, TInvocation... many) { - this.getOutgoingInvocations().add(one); - for (TInvocation each : many) - this.getOutgoingInvocations().add(each); - } - - public void addOutgoingInvocations(Iterable many) { - for (TInvocation each : many) - this.getOutgoingInvocations().add(each); - } - - public void addOutgoingInvocations(TInvocation[] many) { - for (TInvocation each : many) - this.getOutgoingInvocations().add(each); - } - - public int numberOfOutgoingInvocations() { - return getOutgoingInvocations().size(); - } - - public boolean hasOutgoingInvocations() { - return !getOutgoingInvocations().isEmpty(); - } - - @FameProperty(name = "parameters", opposite = "parentBehaviouralEntity", derived = true) - public Collection getParameters() { - if (parameters == null) { - parameters = new MultivalueSet() { - @Override - protected void clearOpposite(TParameter e) { - e.setParentBehaviouralEntity(null); - } - @Override - protected void setOpposite(TParameter e) { - e.setParentBehaviouralEntity(Function.this); - } - }; - } - return parameters; - } - - public void setParameters(Collection parameters) { - this.getParameters().clear(); - this.getParameters().addAll(parameters); - } - - - public void addParameters(TParameter one) { - this.getParameters().add(one); - } - - public void addParameters(TParameter one, TParameter... many) { - this.getParameters().add(one); - for (TParameter each : many) - this.getParameters().add(each); - } - - public void addParameters(Iterable many) { - for (TParameter each : many) - this.getParameters().add(each); - } - - public void addParameters(TParameter[] many) { - for (TParameter each : many) - this.getParameters().add(each); - } - - public int numberOfParameters() { - return getParameters().size(); - } - - public boolean hasParameters() { - return !getParameters().isEmpty(); - } - - @FameProperty(name = "parentModule", opposite = "moduleEntities") - public TModule getParentModule() { - return parentModule; - } - - public void setParentModule(TModule parentModule) { - if (this.parentModule != null) { - if (this.parentModule.equals(parentModule)) return; - this.parentModule.getModuleEntities().remove(this); - } - this.parentModule = parentModule; - if (parentModule == null) return; - parentModule.getModuleEntities().add(this); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "signature") - public String getSignature() { - return signature; - } - - public void setSignature(String signature) { - this.signature = signature; - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/GlobalVariable.java b/gen/org/moosetechnology/model/famix/famix/GlobalVariable.java deleted file mode 100644 index 6b0f42b..0000000 --- a/gen/org/moosetechnology/model/famix/famix/GlobalVariable.java +++ /dev/null @@ -1,425 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TAccessible; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TDefinedInModule; -import org.moosetechnology.model.famix.famixtraits.TGlobalVariable; -import org.moosetechnology.model.famix.famixtraits.TInvocation; -import org.moosetechnology.model.famix.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famix.famixtraits.TModule; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithGlobalVariables; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("GlobalVariable") -public class GlobalVariable extends StructuralEntity implements TAccessible, TDefinedInModule, TEntityMetaLevelDependency, TGlobalVariable, TInvocationsReceiver, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity, TWithComments, TWithSourceLanguage { - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private TType declaredType; - - private Collection incomingAccesses; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TModule parentModule; - - private TWithGlobalVariables parentScope; - - private Collection receivingInvocations; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "accessors", derived = true) - public Collection getAccessors() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(GlobalVariable.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType() { - return declaredType; - } - - public void setDeclaredType(TType declaredType) { - if (this.declaredType != null) { - if (this.declaredType.equals(declaredType)) return; - this.declaredType.getTypedEntities().remove(this); - } - this.declaredType = declaredType; - if (declaredType == null) return; - declaredType.getTypedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingAccesses", opposite = "variable", derived = true) - public Collection getIncomingAccesses() { - if (incomingAccesses == null) { - incomingAccesses = new MultivalueSet() { - @Override - protected void clearOpposite(TAccess e) { - e.setVariable(null); - } - @Override - protected void setOpposite(TAccess e) { - e.setVariable(GlobalVariable.this); - } - }; - } - return incomingAccesses; - } - - public void setIncomingAccesses(Collection incomingAccesses) { - this.getIncomingAccesses().clear(); - this.getIncomingAccesses().addAll(incomingAccesses); - } - - - public void addIncomingAccesses(TAccess one) { - this.getIncomingAccesses().add(one); - } - - public void addIncomingAccesses(TAccess one, TAccess... many) { - this.getIncomingAccesses().add(one); - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(Iterable many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(TAccess[] many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public int numberOfIncomingAccesses() { - return getIncomingAccesses().size(); - } - - public boolean hasIncomingAccesses() { - return !getIncomingAccesses().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAccesses", derived = true) - public Number getNumberOfAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingClasses", derived = true) - public Number getNumberOfAccessingClasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingMethods", derived = true) - public Number getNumberOfAccessingMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfGlobalAccesses", derived = true) - public Number getNumberOfGlobalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLocalAccesses", derived = true) - public Number getNumberOfLocalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parentModule", opposite = "moduleEntities") - public TModule getParentModule() { - return parentModule; - } - - public void setParentModule(TModule parentModule) { - if (this.parentModule != null) { - if (this.parentModule.equals(parentModule)) return; - this.parentModule.getModuleEntities().remove(this); - } - this.parentModule = parentModule; - if (parentModule == null) return; - parentModule.getModuleEntities().add(this); - } - - @FameProperty(name = "parentScope", opposite = "globalVariables", container = true) - public TWithGlobalVariables getParentScope() { - return parentScope; - } - - public void setParentScope(TWithGlobalVariables parentScope) { - if (this.parentScope != null) { - if (this.parentScope.equals(parentScope)) return; - this.parentScope.getGlobalVariables().remove(this); - } - this.parentScope = parentScope; - if (parentScope == null) return; - parentScope.getGlobalVariables().add(this); - } - - @FameProperty(name = "receivingInvocations", opposite = "receiver", derived = true) - public Collection getReceivingInvocations() { - if (receivingInvocations == null) { - receivingInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocation e) { - e.setReceiver(null); - } - @Override - protected void setOpposite(TInvocation e) { - e.setReceiver(GlobalVariable.this); - } - }; - } - return receivingInvocations; - } - - public void setReceivingInvocations(Collection receivingInvocations) { - this.getReceivingInvocations().clear(); - this.getReceivingInvocations().addAll(receivingInvocations); - } - - - public void addReceivingInvocations(TInvocation one) { - this.getReceivingInvocations().add(one); - } - - public void addReceivingInvocations(TInvocation one, TInvocation... many) { - this.getReceivingInvocations().add(one); - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(Iterable many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(TInvocation[] many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public int numberOfReceivingInvocations() { - return getReceivingInvocations().size(); - } - - public boolean hasReceivingInvocations() { - return !getReceivingInvocations().isEmpty(); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Header.java b/gen/org/moosetechnology/model/famix/famix/Header.java deleted file mode 100644 index 1d62263..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Header.java +++ /dev/null @@ -1,153 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixtraits.TFile; -import org.moosetechnology.model.famix.famixtraits.TFileSystemEntity; -import org.moosetechnology.model.famix.famixtraits.TFolder; -import org.moosetechnology.model.famix.famixtraits.THeader; -import org.moosetechnology.model.famix.famixtraits.TWithFiles; -import org.moosetechnology.model.famix.famixtraits.TWithHeader; - - -@FamePackage("FAMIX") -@FameDescription("Header") -public class Header extends CFile implements TFile, TFileSystemEntity, THeader { - - private Collection entities; - - private TWithHeader headerOwner; - - private TFolder parentFolder; - - - - @FameProperty(name = "averageNumberOfCharactersPerLine", derived = true) - public Number getAverageNumberOfCharactersPerLine() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "entities", opposite = "containerFiles", derived = true) - public Collection getEntities() { - if (entities == null) { - entities = new MultivalueSet() { - @Override - protected void clearOpposite(TWithFiles e) { - e.getContainerFiles().remove(Header.this); - } - @Override - protected void setOpposite(TWithFiles e) { - e.getContainerFiles().add(Header.this); - } - }; - } - return entities; - } - - public void setEntities(Collection entities) { - this.getEntities().clear(); - this.getEntities().addAll(entities); - } - - public void addEntities(TWithFiles one) { - this.getEntities().add(one); - } - - public void addEntities(TWithFiles one, TWithFiles... many) { - this.getEntities().add(one); - for (TWithFiles each : many) - this.getEntities().add(each); - } - - public void addEntities(Iterable many) { - for (TWithFiles each : many) - this.getEntities().add(each); - } - - public void addEntities(TWithFiles[] many) { - for (TWithFiles each : many) - this.getEntities().add(each); - } - - public int numberOfEntities() { - return getEntities().size(); - } - - public boolean hasEntities() { - return !getEntities().isEmpty(); - } - - @FameProperty(name = "headerOwner", opposite = "header") - public TWithHeader getHeaderOwner() { - return headerOwner; - } - - public void setHeaderOwner(TWithHeader headerOwner) { - if (this.headerOwner == null ? headerOwner != null : !this.headerOwner.equals(headerOwner)) { - TWithHeader old_headerOwner = this.headerOwner; - this.headerOwner = headerOwner; - if (old_headerOwner != null) old_headerOwner.setHeader(null); - if (headerOwner != null) headerOwner.setHeader(this); - } - } - - @FameProperty(name = "numberOfBytes", derived = true) - public Number getNumberOfBytes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfCharacters", derived = true) - public Number getNumberOfCharacters() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfEmptyLinesOfText", derived = true) - public Number getNumberOfEmptyLinesOfText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfKiloBytes", derived = true) - public Number getNumberOfKiloBytes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfText", derived = true) - public Number getNumberOfLinesOfText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parentFolder", opposite = "childrenFileSystemEntities", container = true) - public TFolder getParentFolder() { - return parentFolder; - } - - public void setParentFolder(TFolder parentFolder) { - if (this.parentFolder != null) { - if (this.parentFolder.equals(parentFolder)) return; - this.parentFolder.getChildrenFileSystemEntities().remove(this); - } - this.parentFolder = parentFolder; - if (parentFolder == null) return; - parentFolder.getChildrenFileSystemEntities().add(this); - } - - @FameProperty(name = "totalNumberOfLinesOfText", derived = true) - public Number getTotalNumberOfLinesOfText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/ImplicitVariable.java b/gen/org/moosetechnology/model/famix/famix/ImplicitVariable.java deleted file mode 100644 index 26b7883..0000000 --- a/gen/org/moosetechnology/model/famix/famix/ImplicitVariable.java +++ /dev/null @@ -1,406 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TAccessible; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TImplicitVariable; -import org.moosetechnology.model.famix.famixtraits.TInvocation; -import org.moosetechnology.model.famix.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithImplicitVariables; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("ImplicitVariable") -public class ImplicitVariable extends StructuralEntity implements TAccessible, TEntityMetaLevelDependency, TImplicitVariable, TInvocationsReceiver, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity, TWithComments, TWithSourceLanguage { - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private TType declaredType; - - private Collection incomingAccesses; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TWithImplicitVariables parentBehaviouralEntity; - - private Collection receivingInvocations; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "accessors", derived = true) - public Collection getAccessors() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(ImplicitVariable.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType() { - return declaredType; - } - - public void setDeclaredType(TType declaredType) { - if (this.declaredType != null) { - if (this.declaredType.equals(declaredType)) return; - this.declaredType.getTypedEntities().remove(this); - } - this.declaredType = declaredType; - if (declaredType == null) return; - declaredType.getTypedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingAccesses", opposite = "variable", derived = true) - public Collection getIncomingAccesses() { - if (incomingAccesses == null) { - incomingAccesses = new MultivalueSet() { - @Override - protected void clearOpposite(TAccess e) { - e.setVariable(null); - } - @Override - protected void setOpposite(TAccess e) { - e.setVariable(ImplicitVariable.this); - } - }; - } - return incomingAccesses; - } - - public void setIncomingAccesses(Collection incomingAccesses) { - this.getIncomingAccesses().clear(); - this.getIncomingAccesses().addAll(incomingAccesses); - } - - - public void addIncomingAccesses(TAccess one) { - this.getIncomingAccesses().add(one); - } - - public void addIncomingAccesses(TAccess one, TAccess... many) { - this.getIncomingAccesses().add(one); - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(Iterable many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(TAccess[] many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public int numberOfIncomingAccesses() { - return getIncomingAccesses().size(); - } - - public boolean hasIncomingAccesses() { - return !getIncomingAccesses().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAccesses", derived = true) - public Number getNumberOfAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingClasses", derived = true) - public Number getNumberOfAccessingClasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingMethods", derived = true) - public Number getNumberOfAccessingMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfGlobalAccesses", derived = true) - public Number getNumberOfGlobalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLocalAccesses", derived = true) - public Number getNumberOfLocalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parentBehaviouralEntity", opposite = "implicitVariables", container = true) - public TWithImplicitVariables getParentBehaviouralEntity() { - return parentBehaviouralEntity; - } - - public void setParentBehaviouralEntity(TWithImplicitVariables parentBehaviouralEntity) { - if (this.parentBehaviouralEntity != null) { - if (this.parentBehaviouralEntity.equals(parentBehaviouralEntity)) return; - this.parentBehaviouralEntity.getImplicitVariables().remove(this); - } - this.parentBehaviouralEntity = parentBehaviouralEntity; - if (parentBehaviouralEntity == null) return; - parentBehaviouralEntity.getImplicitVariables().add(this); - } - - @FameProperty(name = "receivingInvocations", opposite = "receiver", derived = true) - public Collection getReceivingInvocations() { - if (receivingInvocations == null) { - receivingInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocation e) { - e.setReceiver(null); - } - @Override - protected void setOpposite(TInvocation e) { - e.setReceiver(ImplicitVariable.this); - } - }; - } - return receivingInvocations; - } - - public void setReceivingInvocations(Collection receivingInvocations) { - this.getReceivingInvocations().clear(); - this.getReceivingInvocations().addAll(receivingInvocations); - } - - - public void addReceivingInvocations(TInvocation one) { - this.getReceivingInvocations().add(one); - } - - public void addReceivingInvocations(TInvocation one, TInvocation... many) { - this.getReceivingInvocations().add(one); - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(Iterable many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(TInvocation[] many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public int numberOfReceivingInvocations() { - return getReceivingInvocations().size(); - } - - public boolean hasReceivingInvocations() { - return !getReceivingInvocations().isEmpty(); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Include.java b/gen/org/moosetechnology/model/famix/famix/Include.java deleted file mode 100644 index 1b0db96..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Include.java +++ /dev/null @@ -1,247 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAssociation; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TFileInclude; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithFileIncludes; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("Include") -public class Include extends Entity implements TAssociation, TAssociationMetaLevelDependency, TFileInclude, TSourceEntity, TWithComments, TWithSourceLanguage { - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private Boolean isStub; - - private TAssociation next; - - private Number numberOfLinesOfCode; - - private TAssociation previous; - - private TWithFileIncludes source; - - private TSourceAnchor sourceAnchor; - - private TWithFileIncludes target; - - - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(Include.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "next", opposite = "previous", derived = true) - public TAssociation getNext() { - return next; - } - - public void setNext(TAssociation next) { - if (this.next == null ? next != null : !this.next.equals(next)) { - TAssociation old_next = this.next; - this.next = next; - if (old_next != null) old_next.setPrevious(null); - if (next != null) next.setPrevious(this); - } - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "previous", opposite = "next") - public TAssociation getPrevious() { - return previous; - } - - public void setPrevious(TAssociation previous) { - if (this.previous == null ? previous != null : !this.previous.equals(previous)) { - TAssociation old_previous = this.previous; - this.previous = previous; - if (old_previous != null) old_previous.setNext(null); - if (previous != null) previous.setNext(this); - } - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "source", opposite = "outgoingIncludeRelations") - public TWithFileIncludes getSource() { - return source; - } - - public void setSource(TWithFileIncludes source) { - if (this.source != null) { - if (this.source.equals(source)) return; - this.source.getOutgoingIncludeRelations().remove(this); - } - this.source = source; - if (source == null) return; - source.getOutgoingIncludeRelations().add(this); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "target", opposite = "incomingIncludeRelations") - public TWithFileIncludes getTarget() { - return target; - } - - public void setTarget(TWithFileIncludes target) { - if (this.target != null) { - if (this.target.equals(target)) return; - this.target.getIncomingIncludeRelations().remove(this); - } - this.target = target; - if (target == null) return; - target.getIncomingIncludeRelations().add(this); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/IndexedFileAnchor.java b/gen/org/moosetechnology/model/famix/famix/IndexedFileAnchor.java deleted file mode 100644 index f09feef..0000000 --- a/gen/org/moosetechnology/model/famix/famix/IndexedFileAnchor.java +++ /dev/null @@ -1,100 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixtraits.TFile; -import org.moosetechnology.model.famix.famixtraits.TFileAnchor; -import org.moosetechnology.model.famix.famixtraits.TIndexedFileNavigation; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; - - -@FamePackage("FAMIX") -@FameDescription("IndexedFileAnchor") -public class IndexedFileAnchor extends AbstractFileAnchor implements TFileAnchor, TIndexedFileNavigation, TSourceAnchor { - - private TFile correspondingFile; - - private TSourceEntity element; - - private String encoding; - - private Number endPos; - - private String fileName; - - private Number startPos; - - - - @FameProperty(name = "correspondingFile") - public TFile getCorrespondingFile() { - return correspondingFile; - } - - public void setCorrespondingFile(TFile correspondingFile) { - this.correspondingFile = correspondingFile; - } - - @FameProperty(name = "element", opposite = "sourceAnchor") - public TSourceEntity getElement() { - return element; - } - - public void setElement(TSourceEntity element) { - if (this.element == null ? element != null : !this.element.equals(element)) { - TSourceEntity old_element = this.element; - this.element = element; - if (old_element != null) old_element.setSourceAnchor(null); - if (element != null) element.setSourceAnchor(this); - } - } - - @FameProperty(name = "encoding") - public String getEncoding() { - return encoding; - } - - public void setEncoding(String encoding) { - this.encoding = encoding; - } - - @FameProperty(name = "endPos") - public Number getEndPos() { - return endPos; - } - - public void setEndPos(Number endPos) { - this.endPos = endPos; - } - - @FameProperty(name = "fileName") - public String getFileName() { - return fileName; - } - - public void setFileName(String fileName) { - this.fileName = fileName; - } - - @FameProperty(name = "lineCount", derived = true) - public Number getLineCount() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "startPos") - public Number getStartPos() { - return startPos; - } - - public void setStartPos(Number startPos) { - this.startPos = startPos; - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Inheritance.java b/gen/org/moosetechnology/model/famix/famix/Inheritance.java deleted file mode 100644 index d3fa2a6..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Inheritance.java +++ /dev/null @@ -1,247 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAssociation; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TInheritance; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithInheritances; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("Inheritance") -public class Inheritance extends Entity implements TAssociation, TAssociationMetaLevelDependency, TInheritance, TSourceEntity, TWithComments, TWithSourceLanguage { - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private Boolean isStub; - - private TAssociation next; - - private Number numberOfLinesOfCode; - - private TAssociation previous; - - private TSourceAnchor sourceAnchor; - - private TWithInheritances subclass; - - private TWithInheritances superclass; - - - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(Inheritance.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "next", opposite = "previous", derived = true) - public TAssociation getNext() { - return next; - } - - public void setNext(TAssociation next) { - if (this.next == null ? next != null : !this.next.equals(next)) { - TAssociation old_next = this.next; - this.next = next; - if (old_next != null) old_next.setPrevious(null); - if (next != null) next.setPrevious(this); - } - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "previous", opposite = "next") - public TAssociation getPrevious() { - return previous; - } - - public void setPrevious(TAssociation previous) { - if (this.previous == null ? previous != null : !this.previous.equals(previous)) { - TAssociation old_previous = this.previous; - this.previous = previous; - if (old_previous != null) old_previous.setNext(null); - if (previous != null) previous.setNext(this); - } - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "subclass", opposite = "superInheritances") - public TWithInheritances getSubclass() { - return subclass; - } - - public void setSubclass(TWithInheritances subclass) { - if (this.subclass != null) { - if (this.subclass.equals(subclass)) return; - this.subclass.getSuperInheritances().remove(this); - } - this.subclass = subclass; - if (subclass == null) return; - subclass.getSuperInheritances().add(this); - } - - @FameProperty(name = "superclass", opposite = "subInheritances") - public TWithInheritances getSuperclass() { - return superclass; - } - - public void setSuperclass(TWithInheritances superclass) { - if (this.superclass != null) { - if (this.superclass.equals(superclass)) return; - this.superclass.getSubInheritances().remove(this); - } - this.superclass = superclass; - if (superclass == null) return; - superclass.getSubInheritances().add(this); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Invocation.java b/gen/org/moosetechnology/model/famix/famix/Invocation.java deleted file mode 100644 index dabd13e..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Invocation.java +++ /dev/null @@ -1,313 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAssociation; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.THasSignature; -import org.moosetechnology.model.famix.famixtraits.TInvocable; -import org.moosetechnology.model.famix.famixtraits.TInvocation; -import org.moosetechnology.model.famix.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithInvocations; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("Invocation") -public class Invocation extends Entity implements TAssociation, TAssociationMetaLevelDependency, THasSignature, TInvocation, TSourceEntity, TWithComments, TWithSourceLanguage { - - private Collection candidates; - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private Boolean isStub; - - private TAssociation next; - - private Number numberOfLinesOfCode; - - private TAssociation previous; - - private TInvocationsReceiver receiver; - - private TWithInvocations sender; - - private String signature; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "candidates", opposite = "incomingInvocations") - public Collection getCandidates() { - if (candidates == null) { - candidates = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocable e) { - e.getIncomingInvocations().remove(Invocation.this); - } - @Override - protected void setOpposite(TInvocable e) { - e.getIncomingInvocations().add(Invocation.this); - } - }; - } - return candidates; - } - - public void setCandidates(Collection candidates) { - this.getCandidates().clear(); - this.getCandidates().addAll(candidates); - } - - public void addCandidates(TInvocable one) { - this.getCandidates().add(one); - } - - public void addCandidates(TInvocable one, TInvocable... many) { - this.getCandidates().add(one); - for (TInvocable each : many) - this.getCandidates().add(each); - } - - public void addCandidates(Iterable many) { - for (TInvocable each : many) - this.getCandidates().add(each); - } - - public void addCandidates(TInvocable[] many) { - for (TInvocable each : many) - this.getCandidates().add(each); - } - - public int numberOfCandidates() { - return getCandidates().size(); - } - - public boolean hasCandidates() { - return !getCandidates().isEmpty(); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(Invocation.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "next", opposite = "previous", derived = true) - public TAssociation getNext() { - return next; - } - - public void setNext(TAssociation next) { - if (this.next == null ? next != null : !this.next.equals(next)) { - TAssociation old_next = this.next; - this.next = next; - if (old_next != null) old_next.setPrevious(null); - if (next != null) next.setPrevious(this); - } - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "previous", opposite = "next") - public TAssociation getPrevious() { - return previous; - } - - public void setPrevious(TAssociation previous) { - if (this.previous == null ? previous != null : !this.previous.equals(previous)) { - TAssociation old_previous = this.previous; - this.previous = previous; - if (old_previous != null) old_previous.setNext(null); - if (previous != null) previous.setNext(this); - } - } - - @FameProperty(name = "receiver", opposite = "receivingInvocations") - public TInvocationsReceiver getReceiver() { - return receiver; - } - - public void setReceiver(TInvocationsReceiver receiver) { - if (this.receiver != null) { - if (this.receiver.equals(receiver)) return; - this.receiver.getReceivingInvocations().remove(this); - } - this.receiver = receiver; - if (receiver == null) return; - receiver.getReceivingInvocations().add(this); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sender", opposite = "outgoingInvocations") - public TWithInvocations getSender() { - return sender; - } - - public void setSender(TWithInvocations sender) { - if (this.sender != null) { - if (this.sender.equals(sender)) return; - this.sender.getOutgoingInvocations().remove(this); - } - this.sender = sender; - if (sender == null) return; - sender.getOutgoingInvocations().add(this); - } - - @FameProperty(name = "signature") - public String getSignature() { - return signature; - } - - public void setSignature(String signature) { - this.signature = signature; - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/JavaSourceLanguage.java b/gen/org/moosetechnology/model/famix/famix/JavaSourceLanguage.java deleted file mode 100644 index 9a51d66..0000000 --- a/gen/org/moosetechnology/model/famix/famix/JavaSourceLanguage.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("FAMIX") -@FameDescription("JavaSourceLanguage") -public class JavaSourceLanguage extends SourceLanguage { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/LeafEntity.java b/gen/org/moosetechnology/model/famix/famix/LeafEntity.java deleted file mode 100644 index 4bcc787..0000000 --- a/gen/org/moosetechnology/model/famix/famix/LeafEntity.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("FAMIX") -@FameDescription("LeafEntity") -public class LeafEntity extends NamedEntity { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/LocalVariable.java b/gen/org/moosetechnology/model/famix/famix/LocalVariable.java deleted file mode 100644 index 2018adb..0000000 --- a/gen/org/moosetechnology/model/famix/famix/LocalVariable.java +++ /dev/null @@ -1,406 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TAccessible; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TInvocation; -import org.moosetechnology.model.famix.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famix.famixtraits.TLocalVariable; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithLocalVariables; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("LocalVariable") -public class LocalVariable extends StructuralEntity implements TAccessible, TEntityMetaLevelDependency, TInvocationsReceiver, TLocalVariable, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity, TWithComments, TWithSourceLanguage { - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private TType declaredType; - - private Collection incomingAccesses; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TWithLocalVariables parentBehaviouralEntity; - - private Collection receivingInvocations; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "accessors", derived = true) - public Collection getAccessors() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(LocalVariable.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType() { - return declaredType; - } - - public void setDeclaredType(TType declaredType) { - if (this.declaredType != null) { - if (this.declaredType.equals(declaredType)) return; - this.declaredType.getTypedEntities().remove(this); - } - this.declaredType = declaredType; - if (declaredType == null) return; - declaredType.getTypedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingAccesses", opposite = "variable", derived = true) - public Collection getIncomingAccesses() { - if (incomingAccesses == null) { - incomingAccesses = new MultivalueSet() { - @Override - protected void clearOpposite(TAccess e) { - e.setVariable(null); - } - @Override - protected void setOpposite(TAccess e) { - e.setVariable(LocalVariable.this); - } - }; - } - return incomingAccesses; - } - - public void setIncomingAccesses(Collection incomingAccesses) { - this.getIncomingAccesses().clear(); - this.getIncomingAccesses().addAll(incomingAccesses); - } - - - public void addIncomingAccesses(TAccess one) { - this.getIncomingAccesses().add(one); - } - - public void addIncomingAccesses(TAccess one, TAccess... many) { - this.getIncomingAccesses().add(one); - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(Iterable many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(TAccess[] many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public int numberOfIncomingAccesses() { - return getIncomingAccesses().size(); - } - - public boolean hasIncomingAccesses() { - return !getIncomingAccesses().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAccesses", derived = true) - public Number getNumberOfAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingClasses", derived = true) - public Number getNumberOfAccessingClasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingMethods", derived = true) - public Number getNumberOfAccessingMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfGlobalAccesses", derived = true) - public Number getNumberOfGlobalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLocalAccesses", derived = true) - public Number getNumberOfLocalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parentBehaviouralEntity", opposite = "localVariables", container = true) - public TWithLocalVariables getParentBehaviouralEntity() { - return parentBehaviouralEntity; - } - - public void setParentBehaviouralEntity(TWithLocalVariables parentBehaviouralEntity) { - if (this.parentBehaviouralEntity != null) { - if (this.parentBehaviouralEntity.equals(parentBehaviouralEntity)) return; - this.parentBehaviouralEntity.getLocalVariables().remove(this); - } - this.parentBehaviouralEntity = parentBehaviouralEntity; - if (parentBehaviouralEntity == null) return; - parentBehaviouralEntity.getLocalVariables().add(this); - } - - @FameProperty(name = "receivingInvocations", opposite = "receiver", derived = true) - public Collection getReceivingInvocations() { - if (receivingInvocations == null) { - receivingInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocation e) { - e.setReceiver(null); - } - @Override - protected void setOpposite(TInvocation e) { - e.setReceiver(LocalVariable.this); - } - }; - } - return receivingInvocations; - } - - public void setReceivingInvocations(Collection receivingInvocations) { - this.getReceivingInvocations().clear(); - this.getReceivingInvocations().addAll(receivingInvocations); - } - - - public void addReceivingInvocations(TInvocation one) { - this.getReceivingInvocations().add(one); - } - - public void addReceivingInvocations(TInvocation one, TInvocation... many) { - this.getReceivingInvocations().add(one); - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(Iterable many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(TInvocation[] many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public int numberOfReceivingInvocations() { - return getReceivingInvocations().size(); - } - - public boolean hasReceivingInvocations() { - return !getReceivingInvocations().isEmpty(); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Method.java b/gen/org/moosetechnology/model/famix/famix/Method.java deleted file mode 100644 index 1fea4d2..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Method.java +++ /dev/null @@ -1,1007 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TCaughtException; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TDeclaredException; -import org.moosetechnology.model.famix.famixtraits.THasSignature; -import org.moosetechnology.model.famix.famixtraits.TImplicitVariable; -import org.moosetechnology.model.famix.famixtraits.TInvocable; -import org.moosetechnology.model.famix.famixtraits.TInvocation; -import org.moosetechnology.model.famix.famixtraits.TLocalVariable; -import org.moosetechnology.model.famix.famixtraits.TMethod; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TParameter; -import org.moosetechnology.model.famix.famixtraits.TReference; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TThrownException; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.famixtraits.TWithCaughtExceptions; -import org.moosetechnology.model.famix.famixtraits.TWithClassScope; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithDeclaredExceptions; -import org.moosetechnology.model.famix.famixtraits.TWithImplicitVariables; -import org.moosetechnology.model.famix.famixtraits.TWithInvocations; -import org.moosetechnology.model.famix.famixtraits.TWithLocalVariables; -import org.moosetechnology.model.famix.famixtraits.TWithMethods; -import org.moosetechnology.model.famix.famixtraits.TWithParameters; -import org.moosetechnology.model.famix.famixtraits.TWithReferences; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TWithStatements; -import org.moosetechnology.model.famix.famixtraits.TWithThrownExceptions; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; -import org.moosetechnology.model.famix.moosequery.TOODependencyQueries; - - -@FamePackage("FAMIX") -@FameDescription("Method") -public class Method extends BehaviouralEntity implements TEntityMetaLevelDependency, THasSignature, TInvocable, TMethod, TNamedEntity, TOODependencyQueries, TSourceEntity, TTypedEntity, TWithAccesses, TWithCaughtExceptions, TWithClassScope, TWithComments, TWithDeclaredExceptions, TWithImplicitVariables, TWithInvocations, TWithLocalVariables, TWithParameters, TWithReferences, TWithSourceLanguage, TWithStatements, TWithThrownExceptions { - - private String category; - - private String timeStamp; - - private Collection accesses; - - private Collection caughtExceptions; - - private Collection comments; - - private Number cyclomaticComplexity; - - private Collection declaredExceptions; - - private TSourceLanguage declaredSourceLanguage; - - private TType declaredType; - - private Collection implicitVariables; - - private Collection incomingInvocations; - - private Boolean isAbstract; - - private Boolean isClassSide; - - private Boolean isStub; - - private String kind; - - private Collection localVariables; - - private String name; - - private Number numberOfLinesOfCode; - - private Collection outgoingInvocations; - - private Collection outgoingReferences; - - private Collection parameters; - - private TWithMethods parentType; - - private String signature; - - private TSourceAnchor sourceAnchor; - - private Collection thrownExceptions; - - - - @FameProperty(name = "category") - public String getCategory() { - return category; - } - - public void setCategory(String category) { - this.category = category; - } - - @FameProperty(name = "invokedMethods", derived = true) - public Collection getInvokedMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "invokingMethods", derived = true) - public Collection getInvokingMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isClassInitializer", derived = true) - public Boolean getIsClassInitializer() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isImplementing", derived = true) - public Boolean getIsImplementing() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isInternalImplementation", derived = true) - public Boolean getIsInternalImplementation() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isJUnit4Test", derived = true) - public Boolean getIsJUnit4Test() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isOverriden", derived = true) - public Boolean getIsOverriden() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isOverriding", derived = true) - public Boolean getIsOverriding() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAnnotationInstances", derived = true) - public Number getNumberOfAnnotationInstances() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInvokedMethods", derived = true) - public Number getNumberOfInvokedMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "timeStamp") - public String getTimeStamp() { - return timeStamp; - } - - public void setTimeStamp(String timeStamp) { - this.timeStamp = timeStamp; - } - - @FameProperty(name = "accesses", opposite = "accessor", derived = true) - public Collection getAccesses() { - if (accesses == null) { - accesses = new MultivalueSet() { - @Override - protected void clearOpposite(TAccess e) { - e.setAccessor(null); - } - @Override - protected void setOpposite(TAccess e) { - e.setAccessor(Method.this); - } - }; - } - return accesses; - } - - public void setAccesses(Collection accesses) { - this.getAccesses().clear(); - this.getAccesses().addAll(accesses); - } - - - public void addAccesses(TAccess one) { - this.getAccesses().add(one); - } - - public void addAccesses(TAccess one, TAccess... many) { - this.getAccesses().add(one); - for (TAccess each : many) - this.getAccesses().add(each); - } - - public void addAccesses(Iterable many) { - for (TAccess each : many) - this.getAccesses().add(each); - } - - public void addAccesses(TAccess[] many) { - for (TAccess each : many) - this.getAccesses().add(each); - } - - public int numberOfAccesses() { - return getAccesses().size(); - } - - public boolean hasAccesses() { - return !getAccesses().isEmpty(); - } - - @FameProperty(name = "caughtExceptions", opposite = "definingEntity", derived = true) - public Collection getCaughtExceptions() { - if (caughtExceptions == null) { - caughtExceptions = new MultivalueSet() { - @Override - protected void clearOpposite(TCaughtException e) { - e.setDefiningEntity(null); - } - @Override - protected void setOpposite(TCaughtException e) { - e.setDefiningEntity(Method.this); - } - }; - } - return caughtExceptions; - } - - public void setCaughtExceptions(Collection caughtExceptions) { - this.getCaughtExceptions().clear(); - this.getCaughtExceptions().addAll(caughtExceptions); - } - - - public void addCaughtExceptions(TCaughtException one) { - this.getCaughtExceptions().add(one); - } - - public void addCaughtExceptions(TCaughtException one, TCaughtException... many) { - this.getCaughtExceptions().add(one); - for (TCaughtException each : many) - this.getCaughtExceptions().add(each); - } - - public void addCaughtExceptions(Iterable many) { - for (TCaughtException each : many) - this.getCaughtExceptions().add(each); - } - - public void addCaughtExceptions(TCaughtException[] many) { - for (TCaughtException each : many) - this.getCaughtExceptions().add(each); - } - - public int numberOfCaughtExceptions() { - return getCaughtExceptions().size(); - } - - public boolean hasCaughtExceptions() { - return !getCaughtExceptions().isEmpty(); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(Method.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "cyclomaticComplexity") - public Number getCyclomaticComplexity() { - return cyclomaticComplexity; - } - - public void setCyclomaticComplexity(Number cyclomaticComplexity) { - this.cyclomaticComplexity = cyclomaticComplexity; - } - - @FameProperty(name = "declaredExceptions", opposite = "definingEntity", derived = true) - public Collection getDeclaredExceptions() { - if (declaredExceptions == null) { - declaredExceptions = new MultivalueSet() { - @Override - protected void clearOpposite(TDeclaredException e) { - e.setDefiningEntity(null); - } - @Override - protected void setOpposite(TDeclaredException e) { - e.setDefiningEntity(Method.this); - } - }; - } - return declaredExceptions; - } - - public void setDeclaredExceptions(Collection declaredExceptions) { - this.getDeclaredExceptions().clear(); - this.getDeclaredExceptions().addAll(declaredExceptions); - } - - - public void addDeclaredExceptions(TDeclaredException one) { - this.getDeclaredExceptions().add(one); - } - - public void addDeclaredExceptions(TDeclaredException one, TDeclaredException... many) { - this.getDeclaredExceptions().add(one); - for (TDeclaredException each : many) - this.getDeclaredExceptions().add(each); - } - - public void addDeclaredExceptions(Iterable many) { - for (TDeclaredException each : many) - this.getDeclaredExceptions().add(each); - } - - public void addDeclaredExceptions(TDeclaredException[] many) { - for (TDeclaredException each : many) - this.getDeclaredExceptions().add(each); - } - - public int numberOfDeclaredExceptions() { - return getDeclaredExceptions().size(); - } - - public boolean hasDeclaredExceptions() { - return !getDeclaredExceptions().isEmpty(); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType() { - return declaredType; - } - - public void setDeclaredType(TType declaredType) { - if (this.declaredType != null) { - if (this.declaredType.equals(declaredType)) return; - this.declaredType.getTypedEntities().remove(this); - } - this.declaredType = declaredType; - if (declaredType == null) return; - declaredType.getTypedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasClassScope", derived = true) - public Boolean getHasClassScope() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hierarchyNestingLevel", derived = true) - public Number getHierarchyNestingLevel() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "implicitVariables", opposite = "parentBehaviouralEntity", derived = true) - public Collection getImplicitVariables() { - if (implicitVariables == null) { - implicitVariables = new MultivalueSet() { - @Override - protected void clearOpposite(TImplicitVariable e) { - e.setParentBehaviouralEntity(null); - } - @Override - protected void setOpposite(TImplicitVariable e) { - e.setParentBehaviouralEntity(Method.this); - } - }; - } - return implicitVariables; - } - - public void setImplicitVariables(Collection implicitVariables) { - this.getImplicitVariables().clear(); - this.getImplicitVariables().addAll(implicitVariables); - } - - - public void addImplicitVariables(TImplicitVariable one) { - this.getImplicitVariables().add(one); - } - - public void addImplicitVariables(TImplicitVariable one, TImplicitVariable... many) { - this.getImplicitVariables().add(one); - for (TImplicitVariable each : many) - this.getImplicitVariables().add(each); - } - - public void addImplicitVariables(Iterable many) { - for (TImplicitVariable each : many) - this.getImplicitVariables().add(each); - } - - public void addImplicitVariables(TImplicitVariable[] many) { - for (TImplicitVariable each : many) - this.getImplicitVariables().add(each); - } - - public int numberOfImplicitVariables() { - return getImplicitVariables().size(); - } - - public boolean hasImplicitVariables() { - return !getImplicitVariables().isEmpty(); - } - - @FameProperty(name = "incomingInvocations", opposite = "candidates", derived = true) - public Collection getIncomingInvocations() { - if (incomingInvocations == null) { - incomingInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocation e) { - e.getCandidates().remove(Method.this); - } - @Override - protected void setOpposite(TInvocation e) { - e.getCandidates().add(Method.this); - } - }; - } - return incomingInvocations; - } - - public void setIncomingInvocations(Collection incomingInvocations) { - this.getIncomingInvocations().clear(); - this.getIncomingInvocations().addAll(incomingInvocations); - } - - public void addIncomingInvocations(TInvocation one) { - this.getIncomingInvocations().add(one); - } - - public void addIncomingInvocations(TInvocation one, TInvocation... many) { - this.getIncomingInvocations().add(one); - for (TInvocation each : many) - this.getIncomingInvocations().add(each); - } - - public void addIncomingInvocations(Iterable many) { - for (TInvocation each : many) - this.getIncomingInvocations().add(each); - } - - public void addIncomingInvocations(TInvocation[] many) { - for (TInvocation each : many) - this.getIncomingInvocations().add(each); - } - - public int numberOfIncomingInvocations() { - return getIncomingInvocations().size(); - } - - public boolean hasIncomingInvocations() { - return !getIncomingInvocations().isEmpty(); - } - - @FameProperty(name = "isAbstract") - public Boolean getIsAbstract() { - return isAbstract; - } - - public void setIsAbstract(Boolean isAbstract) { - this.isAbstract = isAbstract; - } - - @FameProperty(name = "isClassSide") - public Boolean getIsClassSide() { - return isClassSide; - } - - public void setIsClassSide(Boolean isClassSide) { - this.isClassSide = isClassSide; - } - - @FameProperty(name = "isConstant", derived = true) - public Boolean getIsConstant() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isConstructor", derived = true) - public Boolean getIsConstructor() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isGetter", derived = true) - public Boolean getIsGetter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isSetter", derived = true) - public Boolean getIsSetter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "kind") - public String getKind() { - return kind; - } - - public void setKind(String kind) { - this.kind = kind; - } - - @FameProperty(name = "localVariables", opposite = "parentBehaviouralEntity", derived = true) - public Collection getLocalVariables() { - if (localVariables == null) { - localVariables = new MultivalueSet() { - @Override - protected void clearOpposite(TLocalVariable e) { - e.setParentBehaviouralEntity(null); - } - @Override - protected void setOpposite(TLocalVariable e) { - e.setParentBehaviouralEntity(Method.this); - } - }; - } - return localVariables; - } - - public void setLocalVariables(Collection localVariables) { - this.getLocalVariables().clear(); - this.getLocalVariables().addAll(localVariables); - } - - - public void addLocalVariables(TLocalVariable one) { - this.getLocalVariables().add(one); - } - - public void addLocalVariables(TLocalVariable one, TLocalVariable... many) { - this.getLocalVariables().add(one); - for (TLocalVariable each : many) - this.getLocalVariables().add(each); - } - - public void addLocalVariables(Iterable many) { - for (TLocalVariable each : many) - this.getLocalVariables().add(each); - } - - public void addLocalVariables(TLocalVariable[] many) { - for (TLocalVariable each : many) - this.getLocalVariables().add(each); - } - - public int numberOfLocalVariables() { - return getLocalVariables().size(); - } - - public boolean hasLocalVariables() { - return !getLocalVariables().isEmpty(); - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfMessageSends", derived = true) - public Number getNumberOfMessageSends() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfParameters", derived = true) - public Number getNumberOfParameters() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfStatements", derived = true) - public Number getNumberOfStatements() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOflinesOfDeadCode", derived = true) - public Number getNumberOflinesOfDeadCode() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "outgoingInvocations", opposite = "sender", derived = true) - public Collection getOutgoingInvocations() { - if (outgoingInvocations == null) { - outgoingInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocation e) { - e.setSender(null); - } - @Override - protected void setOpposite(TInvocation e) { - e.setSender(Method.this); - } - }; - } - return outgoingInvocations; - } - - public void setOutgoingInvocations(Collection outgoingInvocations) { - this.getOutgoingInvocations().clear(); - this.getOutgoingInvocations().addAll(outgoingInvocations); - } - - - public void addOutgoingInvocations(TInvocation one) { - this.getOutgoingInvocations().add(one); - } - - public void addOutgoingInvocations(TInvocation one, TInvocation... many) { - this.getOutgoingInvocations().add(one); - for (TInvocation each : many) - this.getOutgoingInvocations().add(each); - } - - public void addOutgoingInvocations(Iterable many) { - for (TInvocation each : many) - this.getOutgoingInvocations().add(each); - } - - public void addOutgoingInvocations(TInvocation[] many) { - for (TInvocation each : many) - this.getOutgoingInvocations().add(each); - } - - public int numberOfOutgoingInvocations() { - return getOutgoingInvocations().size(); - } - - public boolean hasOutgoingInvocations() { - return !getOutgoingInvocations().isEmpty(); - } - - @FameProperty(name = "outgoingReferences", opposite = "referencer", derived = true) - public Collection getOutgoingReferences() { - if (outgoingReferences == null) { - outgoingReferences = new MultivalueSet() { - @Override - protected void clearOpposite(TReference e) { - e.setReferencer(null); - } - @Override - protected void setOpposite(TReference e) { - e.setReferencer(Method.this); - } - }; - } - return outgoingReferences; - } - - public void setOutgoingReferences(Collection outgoingReferences) { - this.getOutgoingReferences().clear(); - this.getOutgoingReferences().addAll(outgoingReferences); - } - - - public void addOutgoingReferences(TReference one) { - this.getOutgoingReferences().add(one); - } - - public void addOutgoingReferences(TReference one, TReference... many) { - this.getOutgoingReferences().add(one); - for (TReference each : many) - this.getOutgoingReferences().add(each); - } - - public void addOutgoingReferences(Iterable many) { - for (TReference each : many) - this.getOutgoingReferences().add(each); - } - - public void addOutgoingReferences(TReference[] many) { - for (TReference each : many) - this.getOutgoingReferences().add(each); - } - - public int numberOfOutgoingReferences() { - return getOutgoingReferences().size(); - } - - public boolean hasOutgoingReferences() { - return !getOutgoingReferences().isEmpty(); - } - - @FameProperty(name = "parameters", opposite = "parentBehaviouralEntity", derived = true) - public Collection getParameters() { - if (parameters == null) { - parameters = new MultivalueSet() { - @Override - protected void clearOpposite(TParameter e) { - e.setParentBehaviouralEntity(null); - } - @Override - protected void setOpposite(TParameter e) { - e.setParentBehaviouralEntity(Method.this); - } - }; - } - return parameters; - } - - public void setParameters(Collection parameters) { - this.getParameters().clear(); - this.getParameters().addAll(parameters); - } - - - public void addParameters(TParameter one) { - this.getParameters().add(one); - } - - public void addParameters(TParameter one, TParameter... many) { - this.getParameters().add(one); - for (TParameter each : many) - this.getParameters().add(each); - } - - public void addParameters(Iterable many) { - for (TParameter each : many) - this.getParameters().add(each); - } - - public void addParameters(TParameter[] many) { - for (TParameter each : many) - this.getParameters().add(each); - } - - public int numberOfParameters() { - return getParameters().size(); - } - - public boolean hasParameters() { - return !getParameters().isEmpty(); - } - - @FameProperty(name = "parentType", opposite = "methods", container = true) - public TWithMethods getParentType() { - return parentType; - } - - public void setParentType(TWithMethods parentType) { - if (this.parentType != null) { - if (this.parentType.equals(parentType)) return; - this.parentType.getMethods().remove(this); - } - this.parentType = parentType; - if (parentType == null) return; - parentType.getMethods().add(this); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "signature") - public String getSignature() { - return signature; - } - - public void setSignature(String signature) { - this.signature = signature; - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "thrownExceptions", opposite = "definingEntity", derived = true) - public Collection getThrownExceptions() { - if (thrownExceptions == null) { - thrownExceptions = new MultivalueSet() { - @Override - protected void clearOpposite(TThrownException e) { - e.setDefiningEntity(null); - } - @Override - protected void setOpposite(TThrownException e) { - e.setDefiningEntity(Method.this); - } - }; - } - return thrownExceptions; - } - - public void setThrownExceptions(Collection thrownExceptions) { - this.getThrownExceptions().clear(); - this.getThrownExceptions().addAll(thrownExceptions); - } - - - public void addThrownExceptions(TThrownException one) { - this.getThrownExceptions().add(one); - } - - public void addThrownExceptions(TThrownException one, TThrownException... many) { - this.getThrownExceptions().add(one); - for (TThrownException each : many) - this.getThrownExceptions().add(each); - } - - public void addThrownExceptions(Iterable many) { - for (TThrownException each : many) - this.getThrownExceptions().add(each); - } - - public void addThrownExceptions(TThrownException[] many) { - for (TThrownException each : many) - this.getThrownExceptions().add(each); - } - - public int numberOfThrownExceptions() { - return getThrownExceptions().size(); - } - - public boolean hasThrownExceptions() { - return !getThrownExceptions().isEmpty(); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Module.java b/gen/org/moosetechnology/model/famix/famix/Module.java deleted file mode 100644 index 2ecf104..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Module.java +++ /dev/null @@ -1,111 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixtraits.TCompilationUnit; -import org.moosetechnology.model.famix.famixtraits.TDefinedInModule; -import org.moosetechnology.model.famix.famixtraits.THeader; -import org.moosetechnology.model.famix.famixtraits.TModule; -import org.moosetechnology.model.famix.famixtraits.TWithCompilationUnit; -import org.moosetechnology.model.famix.famixtraits.TWithHeader; - - -@FamePackage("FAMIX") -@FameDescription("Module") -public class Module extends ScopingEntity implements TModule, TWithCompilationUnit, TWithHeader { - - private TCompilationUnit compilationUnit; - - private THeader header; - - private Collection moduleEntities; - - - - @FameProperty(name = "compilationUnit", opposite = "compilationUnitOwner", derived = true) - public TCompilationUnit getCompilationUnit() { - return compilationUnit; - } - - public void setCompilationUnit(TCompilationUnit compilationUnit) { - if (this.compilationUnit == null ? compilationUnit != null : !this.compilationUnit.equals(compilationUnit)) { - TCompilationUnit old_compilationUnit = this.compilationUnit; - this.compilationUnit = compilationUnit; - if (old_compilationUnit != null) old_compilationUnit.setCompilationUnitOwner(null); - if (compilationUnit != null) compilationUnit.setCompilationUnitOwner(this); - } - } - - @FameProperty(name = "header", opposite = "headerOwner", derived = true) - public THeader getHeader() { - return header; - } - - public void setHeader(THeader header) { - if (this.header == null ? header != null : !this.header.equals(header)) { - THeader old_header = this.header; - this.header = header; - if (old_header != null) old_header.setHeaderOwner(null); - if (header != null) header.setHeaderOwner(this); - } - } - - @FameProperty(name = "moduleEntities", opposite = "parentModule", derived = true) - public Collection getModuleEntities() { - if (moduleEntities == null) { - moduleEntities = new MultivalueSet() { - @Override - protected void clearOpposite(TDefinedInModule e) { - e.setParentModule(null); - } - @Override - protected void setOpposite(TDefinedInModule e) { - e.setParentModule(Module.this); - } - }; - } - return moduleEntities; - } - - public void setModuleEntities(Collection moduleEntities) { - this.getModuleEntities().clear(); - this.getModuleEntities().addAll(moduleEntities); - } - - - public void addModuleEntities(TDefinedInModule one) { - this.getModuleEntities().add(one); - } - - public void addModuleEntities(TDefinedInModule one, TDefinedInModule... many) { - this.getModuleEntities().add(one); - for (TDefinedInModule each : many) - this.getModuleEntities().add(each); - } - - public void addModuleEntities(Iterable many) { - for (TDefinedInModule each : many) - this.getModuleEntities().add(each); - } - - public void addModuleEntities(TDefinedInModule[] many) { - for (TDefinedInModule each : many) - this.getModuleEntities().add(each); - } - - public int numberOfModuleEntities() { - return getModuleEntities().size(); - } - - public boolean hasModuleEntities() { - return !getModuleEntities().isEmpty(); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/MultipleFileAnchor.java b/gen/org/moosetechnology/model/famix/famix/MultipleFileAnchor.java deleted file mode 100644 index 3598f7c..0000000 --- a/gen/org/moosetechnology/model/famix/famix/MultipleFileAnchor.java +++ /dev/null @@ -1,86 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; -import org.moosetechnology.model.famix.famixtraits.TFileAnchor; -import org.moosetechnology.model.famix.famixtraits.TMultipleFileAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; - - -@FamePackage("FAMIX") -@FameDescription("MultipleFileAnchor") -public class MultipleFileAnchor extends SourceAnchor implements TMultipleFileAnchor, TSourceAnchor { - - private TSourceEntity element; - - private Collection fileAnchors; - - - - @FameProperty(name = "element", opposite = "sourceAnchor") - public TSourceEntity getElement() { - return element; - } - - public void setElement(TSourceEntity element) { - if (this.element == null ? element != null : !this.element.equals(element)) { - TSourceEntity old_element = this.element; - this.element = element; - if (old_element != null) old_element.setSourceAnchor(null); - if (element != null) element.setSourceAnchor(this); - } - } - - @FameProperty(name = "fileAnchors") - public Collection getFileAnchors() { - if (fileAnchors == null) fileAnchors = new HashSet(); - return fileAnchors; - } - - public void setFileAnchors(Collection fileAnchors) { - this.getFileAnchors().clear(); - this.getFileAnchors().addAll(fileAnchors); - } - - public void addFileAnchors(TFileAnchor one) { - this.getFileAnchors().add(one); - } - - public void addFileAnchors(TFileAnchor one, TFileAnchor... many) { - this.getFileAnchors().add(one); - for (TFileAnchor each : many) - this.getFileAnchors().add(each); - } - - public void addFileAnchors(Iterable many) { - for (TFileAnchor each : many) - this.getFileAnchors().add(each); - } - - public void addFileAnchors(TFileAnchor[] many) { - for (TFileAnchor each : many) - this.getFileAnchors().add(each); - } - - public int numberOfFileAnchors() { - return getFileAnchors().size(); - } - - public boolean hasFileAnchors() { - return !getFileAnchors().isEmpty(); - } - - @FameProperty(name = "lineCount", derived = true) - public Number getLineCount() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/NamedEntity.java b/gen/org/moosetechnology/model/famix/famix/NamedEntity.java deleted file mode 100644 index 18654af..0000000 --- a/gen/org/moosetechnology/model/famix/famix/NamedEntity.java +++ /dev/null @@ -1,433 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAnnotationInstance; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.THasModifiers; -import org.moosetechnology.model.famix.famixtraits.TInvocation; -import org.moosetechnology.model.famix.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TPackage; -import org.moosetechnology.model.famix.famixtraits.TPackageable; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TWithAnnotationInstances; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("NamedEntity") -public class NamedEntity extends SourcedEntity implements TEntityMetaLevelDependency, THasModifiers, TInvocationsReceiver, TNamedEntity, TPackageable, TSourceEntity, TWithAnnotationInstances, TWithComments, TWithSourceLanguage { - - private Collection annotationInstances; - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private Boolean isStub; - - private Collection modifiers; - - private String name; - - private Number numberOfLinesOfCode; - - private TPackage parentPackage; - - private Collection receivingInvocations; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "annotationInstances", opposite = "annotatedEntity", derived = true) - public Collection getAnnotationInstances() { - if (annotationInstances == null) { - annotationInstances = new MultivalueSet() { - @Override - protected void clearOpposite(TAnnotationInstance e) { - e.setAnnotatedEntity(null); - } - @Override - protected void setOpposite(TAnnotationInstance e) { - e.setAnnotatedEntity(NamedEntity.this); - } - }; - } - return annotationInstances; - } - - public void setAnnotationInstances(Collection annotationInstances) { - this.getAnnotationInstances().clear(); - this.getAnnotationInstances().addAll(annotationInstances); - } - - - public void addAnnotationInstances(TAnnotationInstance one) { - this.getAnnotationInstances().add(one); - } - - public void addAnnotationInstances(TAnnotationInstance one, TAnnotationInstance... many) { - this.getAnnotationInstances().add(one); - for (TAnnotationInstance each : many) - this.getAnnotationInstances().add(each); - } - - public void addAnnotationInstances(Iterable many) { - for (TAnnotationInstance each : many) - this.getAnnotationInstances().add(each); - } - - public void addAnnotationInstances(TAnnotationInstance[] many) { - for (TAnnotationInstance each : many) - this.getAnnotationInstances().add(each); - } - - public int numberOfAnnotationInstances() { - return getAnnotationInstances().size(); - } - - public boolean hasAnnotationInstances() { - return !getAnnotationInstances().isEmpty(); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(NamedEntity.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isAbstract", derived = true) - public Boolean getIsAbstract() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isFinal", derived = true) - public Boolean getIsFinal() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isPackage", derived = true) - public Boolean getIsPackage() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isPrivate", derived = true) - public Boolean getIsPrivate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isProtected", derived = true) - public Boolean getIsProtected() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isPublic", derived = true) - public Boolean getIsPublic() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "modifiers") - public Collection getModifiers() { - if (modifiers == null) modifiers = new HashSet(); - return modifiers; - } - - public void setModifiers(Collection modifiers) { - this.getModifiers().clear(); - this.getModifiers().addAll(modifiers); - } - - public void addModifiers(String one) { - this.getModifiers().add(one); - } - - public void addModifiers(String one, String... many) { - this.getModifiers().add(one); - for (String each : many) - this.getModifiers().add(each); - } - - public void addModifiers(Iterable many) { - for (String each : many) - this.getModifiers().add(each); - } - - public void addModifiers(String[] many) { - for (String each : many) - this.getModifiers().add(each); - } - - public int numberOfModifiers() { - return getModifiers().size(); - } - - public boolean hasModifiers() { - return !getModifiers().isEmpty(); - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAnnotationInstances", derived = true) - public Number getNumberOfAnnotationInstances() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parentPackage", opposite = "childEntities", container = true) - public TPackage getParentPackage() { - return parentPackage; - } - - public void setParentPackage(TPackage parentPackage) { - if (this.parentPackage != null) { - if (this.parentPackage.equals(parentPackage)) return; - this.parentPackage.getChildEntities().remove(this); - } - this.parentPackage = parentPackage; - if (parentPackage == null) return; - parentPackage.getChildEntities().add(this); - } - - @FameProperty(name = "receivingInvocations", opposite = "receiver", derived = true) - public Collection getReceivingInvocations() { - if (receivingInvocations == null) { - receivingInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocation e) { - e.setReceiver(null); - } - @Override - protected void setOpposite(TInvocation e) { - e.setReceiver(NamedEntity.this); - } - }; - } - return receivingInvocations; - } - - public void setReceivingInvocations(Collection receivingInvocations) { - this.getReceivingInvocations().clear(); - this.getReceivingInvocations().addAll(receivingInvocations); - } - - - public void addReceivingInvocations(TInvocation one) { - this.getReceivingInvocations().add(one); - } - - public void addReceivingInvocations(TInvocation one, TInvocation... many) { - this.getReceivingInvocations().add(one); - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(Iterable many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(TInvocation[] many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public int numberOfReceivingInvocations() { - return getReceivingInvocations().size(); - } - - public boolean hasReceivingInvocations() { - return !getReceivingInvocations().isEmpty(); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Namespace.java b/gen/org/moosetechnology/model/famix/famix/Namespace.java deleted file mode 100644 index 5d6f89e..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Namespace.java +++ /dev/null @@ -1,252 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TNamespace; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; -import org.moosetechnology.model.famix.moosequery.TOODependencyQueries; - - -@FamePackage("FAMIX") -@FameDescription("Namespace") -public class Namespace extends ScopingEntity implements TEntityMetaLevelDependency, TNamedEntity, TNamespace, TOODependencyQueries, TSourceEntity, TWithComments, TWithSourceLanguage { - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "bunchCohesion", derived = true) - public Number getBunchCohesion() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "distance", derived = true) - public Number getDistance() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAttributes", derived = true) - public Number getNumberOfAttributes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfMethods", derived = true) - public Number getNumberOfMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfNonInterfacesClasses", derived = true) - public Number getNumberOfNonInterfacesClasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(Namespace.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Package.java b/gen/org/moosetechnology/model/famix/famix/Package.java deleted file mode 100644 index 8467ac4..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Package.java +++ /dev/null @@ -1,415 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TCohesionCouplingMetrics; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TGlobalVariable; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TPackage; -import org.moosetechnology.model.famix.famixtraits.TPackageable; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithGlobalVariables; -import org.moosetechnology.model.famix.famixtraits.TWithPackages; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("Package") -public class Package extends ContainerEntity implements TCohesionCouplingMetrics, TEntityMetaLevelDependency, TNamedEntity, TPackage, TSourceEntity, TWithComments, TWithGlobalVariables, TWithSourceLanguage { - - private Collection childEntities; - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private Collection globalVariables; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TWithPackages packageOwner; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "abstractness", derived = true) - public Number getAbstractness() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "afferentCoupling", derived = true) - public Number getAfferentCoupling() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "bunchCohesion", derived = true) - public Number getBunchCohesion() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "efferentCoupling", derived = true) - public Number getEfferentCoupling() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "martinCohesion", derived = true) - public Number getMartinCohesion() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfClientPackages", derived = true) - public Number getNumberOfClientPackages() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfMethods", derived = true) - public Number getNumberOfMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "relativeImportanceForSystem", derived = true) - public Number getRelativeImportanceForSystem() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "childEntities", opposite = "parentPackage", derived = true) - public Collection getChildEntities() { - if (childEntities == null) { - childEntities = new MultivalueSet() { - @Override - protected void clearOpposite(TPackageable e) { - e.setParentPackage(null); - } - @Override - protected void setOpposite(TPackageable e) { - e.setParentPackage(Package.this); - } - }; - } - return childEntities; - } - - public void setChildEntities(Collection childEntities) { - this.getChildEntities().clear(); - this.getChildEntities().addAll(childEntities); - } - - - public void addChildEntities(TPackageable one) { - this.getChildEntities().add(one); - } - - public void addChildEntities(TPackageable one, TPackageable... many) { - this.getChildEntities().add(one); - for (TPackageable each : many) - this.getChildEntities().add(each); - } - - public void addChildEntities(Iterable many) { - for (TPackageable each : many) - this.getChildEntities().add(each); - } - - public void addChildEntities(TPackageable[] many) { - for (TPackageable each : many) - this.getChildEntities().add(each); - } - - public int numberOfChildEntities() { - return getChildEntities().size(); - } - - public boolean hasChildEntities() { - return !getChildEntities().isEmpty(); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(Package.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "distance", derived = true) - public Number getDistance() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "globalVariables", opposite = "parentScope", derived = true) - public Collection getGlobalVariables() { - if (globalVariables == null) { - globalVariables = new MultivalueSet() { - @Override - protected void clearOpposite(TGlobalVariable e) { - e.setParentScope(null); - } - @Override - protected void setOpposite(TGlobalVariable e) { - e.setParentScope(Package.this); - } - }; - } - return globalVariables; - } - - public void setGlobalVariables(Collection globalVariables) { - this.getGlobalVariables().clear(); - this.getGlobalVariables().addAll(globalVariables); - } - - - public void addGlobalVariables(TGlobalVariable one) { - this.getGlobalVariables().add(one); - } - - public void addGlobalVariables(TGlobalVariable one, TGlobalVariable... many) { - this.getGlobalVariables().add(one); - for (TGlobalVariable each : many) - this.getGlobalVariables().add(each); - } - - public void addGlobalVariables(Iterable many) { - for (TGlobalVariable each : many) - this.getGlobalVariables().add(each); - } - - public void addGlobalVariables(TGlobalVariable[] many) { - for (TGlobalVariable each : many) - this.getGlobalVariables().add(each); - } - - public int numberOfGlobalVariables() { - return getGlobalVariables().size(); - } - - public boolean hasGlobalVariables() { - return !getGlobalVariables().isEmpty(); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "instability", derived = true) - public Number getInstability() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "packageOwner", opposite = "packages") - public TWithPackages getPackageOwner() { - return packageOwner; - } - - public void setPackageOwner(TWithPackages packageOwner) { - if (this.packageOwner != null) { - if (this.packageOwner.equals(packageOwner)) return; - this.packageOwner.getPackages().remove(this); - } - this.packageOwner = packageOwner; - if (packageOwner == null) return; - packageOwner.getPackages().add(this); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "weightedMethodCount", derived = true) - public Number getWeightedMethodCount() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Parameter.java b/gen/org/moosetechnology/model/famix/famix/Parameter.java deleted file mode 100644 index 22fec24..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Parameter.java +++ /dev/null @@ -1,406 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TAccessible; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TInvocation; -import org.moosetechnology.model.famix.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TParameter; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithParameters; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("Parameter") -public class Parameter extends StructuralEntity implements TAccessible, TEntityMetaLevelDependency, TInvocationsReceiver, TNamedEntity, TParameter, TSourceEntity, TStructuralEntity, TTypedEntity, TWithComments, TWithSourceLanguage { - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private TType declaredType; - - private Collection incomingAccesses; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TWithParameters parentBehaviouralEntity; - - private Collection receivingInvocations; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "accessors", derived = true) - public Collection getAccessors() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(Parameter.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType() { - return declaredType; - } - - public void setDeclaredType(TType declaredType) { - if (this.declaredType != null) { - if (this.declaredType.equals(declaredType)) return; - this.declaredType.getTypedEntities().remove(this); - } - this.declaredType = declaredType; - if (declaredType == null) return; - declaredType.getTypedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingAccesses", opposite = "variable", derived = true) - public Collection getIncomingAccesses() { - if (incomingAccesses == null) { - incomingAccesses = new MultivalueSet() { - @Override - protected void clearOpposite(TAccess e) { - e.setVariable(null); - } - @Override - protected void setOpposite(TAccess e) { - e.setVariable(Parameter.this); - } - }; - } - return incomingAccesses; - } - - public void setIncomingAccesses(Collection incomingAccesses) { - this.getIncomingAccesses().clear(); - this.getIncomingAccesses().addAll(incomingAccesses); - } - - - public void addIncomingAccesses(TAccess one) { - this.getIncomingAccesses().add(one); - } - - public void addIncomingAccesses(TAccess one, TAccess... many) { - this.getIncomingAccesses().add(one); - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(Iterable many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(TAccess[] many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public int numberOfIncomingAccesses() { - return getIncomingAccesses().size(); - } - - public boolean hasIncomingAccesses() { - return !getIncomingAccesses().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAccesses", derived = true) - public Number getNumberOfAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingClasses", derived = true) - public Number getNumberOfAccessingClasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingMethods", derived = true) - public Number getNumberOfAccessingMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfGlobalAccesses", derived = true) - public Number getNumberOfGlobalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLocalAccesses", derived = true) - public Number getNumberOfLocalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parentBehaviouralEntity", opposite = "parameters", container = true) - public TWithParameters getParentBehaviouralEntity() { - return parentBehaviouralEntity; - } - - public void setParentBehaviouralEntity(TWithParameters parentBehaviouralEntity) { - if (this.parentBehaviouralEntity != null) { - if (this.parentBehaviouralEntity.equals(parentBehaviouralEntity)) return; - this.parentBehaviouralEntity.getParameters().remove(this); - } - this.parentBehaviouralEntity = parentBehaviouralEntity; - if (parentBehaviouralEntity == null) return; - parentBehaviouralEntity.getParameters().add(this); - } - - @FameProperty(name = "receivingInvocations", opposite = "receiver", derived = true) - public Collection getReceivingInvocations() { - if (receivingInvocations == null) { - receivingInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocation e) { - e.setReceiver(null); - } - @Override - protected void setOpposite(TInvocation e) { - e.setReceiver(Parameter.this); - } - }; - } - return receivingInvocations; - } - - public void setReceivingInvocations(Collection receivingInvocations) { - this.getReceivingInvocations().clear(); - this.getReceivingInvocations().addAll(receivingInvocations); - } - - - public void addReceivingInvocations(TInvocation one) { - this.getReceivingInvocations().add(one); - } - - public void addReceivingInvocations(TInvocation one, TInvocation... many) { - this.getReceivingInvocations().add(one); - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(Iterable many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(TInvocation[] many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public int numberOfReceivingInvocations() { - return getReceivingInvocations().size(); - } - - public boolean hasReceivingInvocations() { - return !getReceivingInvocations().isEmpty(); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/ParameterType.java b/gen/org/moosetechnology/model/famix/famix/ParameterType.java deleted file mode 100644 index a1423fd..0000000 --- a/gen/org/moosetechnology/model/famix/famix/ParameterType.java +++ /dev/null @@ -1,18 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.famixtraits.TParameterType; - - -@FamePackage("FAMIX") -@FameDescription("ParameterType") -public class ParameterType extends Type implements TParameterType { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/ParameterizableClass.java b/gen/org/moosetechnology/model/famix/famix/ParameterizableClass.java deleted file mode 100644 index d7f2709..0000000 --- a/gen/org/moosetechnology/model/famix/famix/ParameterizableClass.java +++ /dev/null @@ -1,81 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixtraits.TParameterizedType; -import org.moosetechnology.model.famix.famixtraits.TWithParameterizedTypes; - - -@FamePackage("FAMIX") -@FameDescription("ParameterizableClass") -public class ParameterizableClass extends Class implements TWithParameterizedTypes { - - private Collection parameterizedTypes; - - - - @FameProperty(name = "parameters", derived = true) - public Collection getParameters() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parameterizedTypes", opposite = "parameterizableClass", derived = true) - public Collection getParameterizedTypes() { - if (parameterizedTypes == null) { - parameterizedTypes = new MultivalueSet() { - @Override - protected void clearOpposite(TParameterizedType e) { - e.setParameterizableClass(null); - } - @Override - protected void setOpposite(TParameterizedType e) { - e.setParameterizableClass(ParameterizableClass.this); - } - }; - } - return parameterizedTypes; - } - - public void setParameterizedTypes(Collection parameterizedTypes) { - this.getParameterizedTypes().clear(); - this.getParameterizedTypes().addAll(parameterizedTypes); - } - - - public void addParameterizedTypes(TParameterizedType one) { - this.getParameterizedTypes().add(one); - } - - public void addParameterizedTypes(TParameterizedType one, TParameterizedType... many) { - this.getParameterizedTypes().add(one); - for (TParameterizedType each : many) - this.getParameterizedTypes().add(each); - } - - public void addParameterizedTypes(Iterable many) { - for (TParameterizedType each : many) - this.getParameterizedTypes().add(each); - } - - public void addParameterizedTypes(TParameterizedType[] many) { - for (TParameterizedType each : many) - this.getParameterizedTypes().add(each); - } - - public int numberOfParameterizedTypes() { - return getParameterizedTypes().size(); - } - - public boolean hasParameterizedTypes() { - return !getParameterizedTypes().isEmpty(); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/ParameterizedType.java b/gen/org/moosetechnology/model/famix/famix/ParameterizedType.java deleted file mode 100644 index cdc688d..0000000 --- a/gen/org/moosetechnology/model/famix/famix/ParameterizedType.java +++ /dev/null @@ -1,93 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixtraits.TParameterizedType; -import org.moosetechnology.model.famix.famixtraits.TParameterizedTypeUser; -import org.moosetechnology.model.famix.famixtraits.TWithParameterizedTypeUsers; -import org.moosetechnology.model.famix.famixtraits.TWithParameterizedTypes; - - -@FamePackage("FAMIX") -@FameDescription("ParameterizedType") -public class ParameterizedType extends Type implements TParameterizedType, TWithParameterizedTypeUsers { - - private Collection arguments; - - private TWithParameterizedTypes parameterizableClass; - - - - @FameProperty(name = "arguments", opposite = "argumentsInParameterizedTypes") - public Collection getArguments() { - if (arguments == null) { - arguments = new MultivalueSet() { - @Override - protected void clearOpposite(TParameterizedTypeUser e) { - e.getArgumentsInParameterizedTypes().remove(ParameterizedType.this); - } - @Override - protected void setOpposite(TParameterizedTypeUser e) { - e.getArgumentsInParameterizedTypes().add(ParameterizedType.this); - } - }; - } - return arguments; - } - - public void setArguments(Collection arguments) { - this.getArguments().clear(); - this.getArguments().addAll(arguments); - } - - public void addArguments(TParameterizedTypeUser one) { - this.getArguments().add(one); - } - - public void addArguments(TParameterizedTypeUser one, TParameterizedTypeUser... many) { - this.getArguments().add(one); - for (TParameterizedTypeUser each : many) - this.getArguments().add(each); - } - - public void addArguments(Iterable many) { - for (TParameterizedTypeUser each : many) - this.getArguments().add(each); - } - - public void addArguments(TParameterizedTypeUser[] many) { - for (TParameterizedTypeUser each : many) - this.getArguments().add(each); - } - - public int numberOfArguments() { - return getArguments().size(); - } - - public boolean hasArguments() { - return !getArguments().isEmpty(); - } - - @FameProperty(name = "parameterizableClass", opposite = "parameterizedTypes") - public TWithParameterizedTypes getParameterizableClass() { - return parameterizableClass; - } - - public void setParameterizableClass(TWithParameterizedTypes parameterizableClass) { - if (this.parameterizableClass != null) { - if (this.parameterizableClass.equals(parameterizableClass)) return; - this.parameterizableClass.getParameterizedTypes().remove(this); - } - this.parameterizableClass = parameterizableClass; - if (parameterizableClass == null) return; - parameterizableClass.getParameterizedTypes().add(this); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/PharoAnchor.java b/gen/org/moosetechnology/model/famix/famix/PharoAnchor.java deleted file mode 100644 index e32fdec..0000000 --- a/gen/org/moosetechnology/model/famix/famix/PharoAnchor.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("FAMIX") -@FameDescription("PharoAnchor") -public class PharoAnchor extends SourceAnchor { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/PreprocessorDefine.java b/gen/org/moosetechnology/model/famix/famix/PreprocessorDefine.java deleted file mode 100644 index a90c585..0000000 --- a/gen/org/moosetechnology/model/famix/famix/PreprocessorDefine.java +++ /dev/null @@ -1,30 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixtraits.TPreprocessorIfdef; - - -@FamePackage("FAMIX") -@FameDescription("PreprocessorDefine") -public class PreprocessorDefine extends PreprocessorStatement implements TPreprocessorIfdef { - - private String macro; - - - - @FameProperty(name = "macro") - public String getMacro() { - return macro; - } - - public void setMacro(String macro) { - this.macro = macro; - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/PreprocessorIfdef.java b/gen/org/moosetechnology/model/famix/famix/PreprocessorIfdef.java deleted file mode 100644 index e2b1722..0000000 --- a/gen/org/moosetechnology/model/famix/famix/PreprocessorIfdef.java +++ /dev/null @@ -1,40 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("FAMIX") -@FameDescription("PreprocessorIfdef") -public class PreprocessorIfdef extends PreprocessorStatement { - - private String macro; - - private Boolean negated; - - - - @FameProperty(name = "macro") - public String getMacro() { - return macro; - } - - public void setMacro(String macro) { - this.macro = macro; - } - - @FameProperty(name = "negated") - public Boolean getNegated() { - return negated; - } - - public void setNegated(Boolean negated) { - this.negated = negated; - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/PreprocessorStatement.java b/gen/org/moosetechnology/model/famix/famix/PreprocessorStatement.java deleted file mode 100644 index 7a97bd3..0000000 --- a/gen/org/moosetechnology/model/famix/famix/PreprocessorStatement.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("FAMIX") -@FameDescription("PreprocessorStatement") -public class PreprocessorStatement extends SourcedEntity { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/PrimitiveType.java b/gen/org/moosetechnology/model/famix/famix/PrimitiveType.java deleted file mode 100644 index 63b6c05..0000000 --- a/gen/org/moosetechnology/model/famix/famix/PrimitiveType.java +++ /dev/null @@ -1,361 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TPrimitiveType; -import org.moosetechnology.model.famix.famixtraits.TReference; -import org.moosetechnology.model.famix.famixtraits.TReferenceable; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TWithTypes; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("PrimitiveType") -public class PrimitiveType extends Type implements TEntityMetaLevelDependency, TNamedEntity, TPrimitiveType, TReferenceable, TSourceEntity, TType, TWithComments, TWithSourceLanguage { - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private Collection incomingReferences; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TSourceAnchor sourceAnchor; - - private TWithTypes typeContainer; - - private Collection typedEntities; - - - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(PrimitiveType.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingReferences", opposite = "referredType", derived = true) - public Collection getIncomingReferences() { - if (incomingReferences == null) { - incomingReferences = new MultivalueSet() { - @Override - protected void clearOpposite(TReference e) { - e.setReferredType(null); - } - @Override - protected void setOpposite(TReference e) { - e.setReferredType(PrimitiveType.this); - } - }; - } - return incomingReferences; - } - - public void setIncomingReferences(Collection incomingReferences) { - this.getIncomingReferences().clear(); - this.getIncomingReferences().addAll(incomingReferences); - } - - - public void addIncomingReferences(TReference one) { - this.getIncomingReferences().add(one); - } - - public void addIncomingReferences(TReference one, TReference... many) { - this.getIncomingReferences().add(one); - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public void addIncomingReferences(Iterable many) { - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public void addIncomingReferences(TReference[] many) { - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public int numberOfIncomingReferences() { - return getIncomingReferences().size(); - } - - public boolean hasIncomingReferences() { - return !getIncomingReferences().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAccessesToForeignData", derived = true) - public Number getNumberOfAccessesToForeignData() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDuplicatedLinesOfCodeInternally", derived = true) - public Number getNumberOfDuplicatedLinesOfCodeInternally() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "typeContainer", opposite = "types", container = true) - public TWithTypes getTypeContainer() { - return typeContainer; - } - - public void setTypeContainer(TWithTypes typeContainer) { - if (this.typeContainer != null) { - if (this.typeContainer.equals(typeContainer)) return; - this.typeContainer.getTypes().remove(this); - } - this.typeContainer = typeContainer; - if (typeContainer == null) return; - typeContainer.getTypes().add(this); - } - - @FameProperty(name = "typedEntities", opposite = "declaredType", derived = true) - public Collection getTypedEntities() { - if (typedEntities == null) { - typedEntities = new MultivalueSet() { - @Override - protected void clearOpposite(TTypedEntity e) { - e.setDeclaredType(null); - } - @Override - protected void setOpposite(TTypedEntity e) { - e.setDeclaredType(PrimitiveType.this); - } - }; - } - return typedEntities; - } - - public void setTypedEntities(Collection typedEntities) { - this.getTypedEntities().clear(); - this.getTypedEntities().addAll(typedEntities); - } - - - public void addTypedEntities(TTypedEntity one) { - this.getTypedEntities().add(one); - } - - public void addTypedEntities(TTypedEntity one, TTypedEntity... many) { - this.getTypedEntities().add(one); - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public void addTypedEntities(Iterable many) { - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public void addTypedEntities(TTypedEntity[] many) { - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public int numberOfTypedEntities() { - return getTypedEntities().size(); - } - - public boolean hasTypedEntities() { - return !getTypedEntities().isEmpty(); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Reference.java b/gen/org/moosetechnology/model/famix/famix/Reference.java deleted file mode 100644 index deb65dc..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Reference.java +++ /dev/null @@ -1,248 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAssociation; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TReference; -import org.moosetechnology.model.famix.famixtraits.TReferenceable; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithReferences; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("Reference") -public class Reference extends Entity implements TAssociation, TAssociationMetaLevelDependency, TReference, TSourceEntity, TWithComments, TWithSourceLanguage { - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private Boolean isStub; - - private TAssociation next; - - private Number numberOfLinesOfCode; - - private TAssociation previous; - - private TWithReferences referencer; - - private TReferenceable referredType; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(Reference.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "next", opposite = "previous", derived = true) - public TAssociation getNext() { - return next; - } - - public void setNext(TAssociation next) { - if (this.next == null ? next != null : !this.next.equals(next)) { - TAssociation old_next = this.next; - this.next = next; - if (old_next != null) old_next.setPrevious(null); - if (next != null) next.setPrevious(this); - } - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "previous", opposite = "next") - public TAssociation getPrevious() { - return previous; - } - - public void setPrevious(TAssociation previous) { - if (this.previous == null ? previous != null : !this.previous.equals(previous)) { - TAssociation old_previous = this.previous; - this.previous = previous; - if (old_previous != null) old_previous.setNext(null); - if (previous != null) previous.setNext(this); - } - } - - @FameProperty(name = "referencer", opposite = "outgoingReferences") - public TWithReferences getReferencer() { - return referencer; - } - - public void setReferencer(TWithReferences referencer) { - if (this.referencer != null) { - if (this.referencer.equals(referencer)) return; - this.referencer.getOutgoingReferences().remove(this); - } - this.referencer = referencer; - if (referencer == null) return; - referencer.getOutgoingReferences().add(this); - } - - @FameProperty(name = "referredType", opposite = "incomingReferences") - public TReferenceable getReferredType() { - return referredType; - } - - public void setReferredType(TReferenceable referredType) { - if (this.referredType != null) { - if (this.referredType.equals(referredType)) return; - this.referredType.getIncomingReferences().remove(this); - } - this.referredType = referredType; - if (referredType == null) return; - referredType.getIncomingReferences().add(this); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/ScopingEntity.java b/gen/org/moosetechnology/model/famix/famix/ScopingEntity.java deleted file mode 100644 index 4076270..0000000 --- a/gen/org/moosetechnology/model/famix/famix/ScopingEntity.java +++ /dev/null @@ -1,145 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixtraits.TGlobalVariable; -import org.moosetechnology.model.famix.famixtraits.TWithGlobalVariables; - - -@FamePackage("FAMIX") -@FameDescription("ScopingEntity") -public class ScopingEntity extends ContainerEntity implements TWithGlobalVariables { - - private Collection childScopes; - - private ScopingEntity parentScope; - - private Collection globalVariables; - - - - @FameProperty(name = "childScopes", opposite = "parentScope", derived = true) - public Collection getChildScopes() { - if (childScopes == null) { - childScopes = new MultivalueSet() { - @Override - protected void clearOpposite(ScopingEntity e) { - e.setParentScope(null); - } - @Override - protected void setOpposite(ScopingEntity e) { - e.setParentScope(ScopingEntity.this); - } - }; - } - return childScopes; - } - - public void setChildScopes(Collection childScopes) { - this.getChildScopes().clear(); - this.getChildScopes().addAll(childScopes); - } - - - public void addChildScopes(ScopingEntity one) { - this.getChildScopes().add(one); - } - - public void addChildScopes(ScopingEntity one, ScopingEntity... many) { - this.getChildScopes().add(one); - for (ScopingEntity each : many) - this.getChildScopes().add(each); - } - - public void addChildScopes(Iterable many) { - for (ScopingEntity each : many) - this.getChildScopes().add(each); - } - - public void addChildScopes(ScopingEntity[] many) { - for (ScopingEntity each : many) - this.getChildScopes().add(each); - } - - public int numberOfChildScopes() { - return getChildScopes().size(); - } - - public boolean hasChildScopes() { - return !getChildScopes().isEmpty(); - } - - @FameProperty(name = "parentScope", opposite = "childScopes", container = true) - public ScopingEntity getParentScope() { - return parentScope; - } - - public void setParentScope(ScopingEntity parentScope) { - if (this.parentScope != null) { - if (this.parentScope.equals(parentScope)) return; - this.parentScope.getChildScopes().remove(this); - } - this.parentScope = parentScope; - if (parentScope == null) return; - parentScope.getChildScopes().add(this); - } - - @FameProperty(name = "globalVariables", opposite = "parentScope", derived = true) - public Collection getGlobalVariables() { - if (globalVariables == null) { - globalVariables = new MultivalueSet() { - @Override - protected void clearOpposite(TGlobalVariable e) { - e.setParentScope(null); - } - @Override - protected void setOpposite(TGlobalVariable e) { - e.setParentScope(ScopingEntity.this); - } - }; - } - return globalVariables; - } - - public void setGlobalVariables(Collection globalVariables) { - this.getGlobalVariables().clear(); - this.getGlobalVariables().addAll(globalVariables); - } - - - public void addGlobalVariables(TGlobalVariable one) { - this.getGlobalVariables().add(one); - } - - public void addGlobalVariables(TGlobalVariable one, TGlobalVariable... many) { - this.getGlobalVariables().add(one); - for (TGlobalVariable each : many) - this.getGlobalVariables().add(each); - } - - public void addGlobalVariables(Iterable many) { - for (TGlobalVariable each : many) - this.getGlobalVariables().add(each); - } - - public void addGlobalVariables(TGlobalVariable[] many) { - for (TGlobalVariable each : many) - this.getGlobalVariables().add(each); - } - - public int numberOfGlobalVariables() { - return getGlobalVariables().size(); - } - - public boolean hasGlobalVariables() { - return !getGlobalVariables().isEmpty(); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/SmalltalkSourceLanguage.java b/gen/org/moosetechnology/model/famix/famix/SmalltalkSourceLanguage.java deleted file mode 100644 index 47b9d9b..0000000 --- a/gen/org/moosetechnology/model/famix/famix/SmalltalkSourceLanguage.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("FAMIX") -@FameDescription("SmalltalkSourceLanguage") -public class SmalltalkSourceLanguage extends SourceLanguage { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/SourceAnchor.java b/gen/org/moosetechnology/model/famix/famix/SourceAnchor.java deleted file mode 100644 index 9ed58b4..0000000 --- a/gen/org/moosetechnology/model/famix/famix/SourceAnchor.java +++ /dev/null @@ -1,42 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; - - -@FamePackage("FAMIX") -@FameDescription("SourceAnchor") -public class SourceAnchor extends Entity implements TSourceAnchor { - - private TSourceEntity element; - - - - @FameProperty(name = "element", opposite = "sourceAnchor") - public TSourceEntity getElement() { - return element; - } - - public void setElement(TSourceEntity element) { - if (this.element == null ? element != null : !this.element.equals(element)) { - TSourceEntity old_element = this.element; - this.element = element; - if (old_element != null) old_element.setSourceAnchor(null); - if (element != null) element.setSourceAnchor(this); - } - } - - @FameProperty(name = "lineCount", derived = true) - public Number getLineCount() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/SourceLanguage.java b/gen/org/moosetechnology/model/famix/famix/SourceLanguage.java deleted file mode 100644 index 7e99d8d..0000000 --- a/gen/org/moosetechnology/model/famix/famix/SourceLanguage.java +++ /dev/null @@ -1,81 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; - - -@FamePackage("FAMIX") -@FameDescription("SourceLanguage") -public class SourceLanguage extends Entity implements TSourceLanguage { - - private Collection sourcedEntities; - - - - @FameProperty(name = "name", derived = true) - public String getName() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourcedEntities", opposite = "declaredSourceLanguage", derived = true) - public Collection getSourcedEntities() { - if (sourcedEntities == null) { - sourcedEntities = new MultivalueSet() { - @Override - protected void clearOpposite(TWithSourceLanguage e) { - e.setDeclaredSourceLanguage(null); - } - @Override - protected void setOpposite(TWithSourceLanguage e) { - e.setDeclaredSourceLanguage(SourceLanguage.this); - } - }; - } - return sourcedEntities; - } - - public void setSourcedEntities(Collection sourcedEntities) { - this.getSourcedEntities().clear(); - this.getSourcedEntities().addAll(sourcedEntities); - } - - - public void addSourcedEntities(TWithSourceLanguage one) { - this.getSourcedEntities().add(one); - } - - public void addSourcedEntities(TWithSourceLanguage one, TWithSourceLanguage... many) { - this.getSourcedEntities().add(one); - for (TWithSourceLanguage each : many) - this.getSourcedEntities().add(each); - } - - public void addSourcedEntities(Iterable many) { - for (TWithSourceLanguage each : many) - this.getSourcedEntities().add(each); - } - - public void addSourcedEntities(TWithSourceLanguage[] many) { - for (TWithSourceLanguage each : many) - this.getSourcedEntities().add(each); - } - - public int numberOfSourcedEntities() { - return getSourcedEntities().size(); - } - - public boolean hasSourcedEntities() { - return !getSourcedEntities().isEmpty(); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/SourceTextAnchor.java b/gen/org/moosetechnology/model/famix/famix/SourceTextAnchor.java deleted file mode 100644 index 09be06f..0000000 --- a/gen/org/moosetechnology/model/famix/famix/SourceTextAnchor.java +++ /dev/null @@ -1,54 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixtraits.THasImmediateSource; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; - - -@FamePackage("FAMIX") -@FameDescription("SourceTextAnchor") -public class SourceTextAnchor extends SourceAnchor implements THasImmediateSource, TSourceAnchor { - - private TSourceEntity element; - - private String source; - - - - @FameProperty(name = "element", opposite = "sourceAnchor") - public TSourceEntity getElement() { - return element; - } - - public void setElement(TSourceEntity element) { - if (this.element == null ? element != null : !this.element.equals(element)) { - TSourceEntity old_element = this.element; - this.element = element; - if (old_element != null) old_element.setSourceAnchor(null); - if (element != null) element.setSourceAnchor(this); - } - } - - @FameProperty(name = "lineCount", derived = true) - public Number getLineCount() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "source") - public String getSource() { - return source; - } - - public void setSource(String source) { - this.source = source; - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/SourcedEntity.java b/gen/org/moosetechnology/model/famix/famix/SourcedEntity.java deleted file mode 100644 index 4acd8fc..0000000 --- a/gen/org/moosetechnology/model/famix/famix/SourcedEntity.java +++ /dev/null @@ -1,237 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TFile; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithFiles; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; - - -@FamePackage("FAMIX") -@FameDescription("SourcedEntity") -public class SourcedEntity extends Entity implements TSourceEntity, TWithComments, TWithFiles, TWithSourceLanguage { - - private Collection comments; - - private Collection containerFiles; - - private TSourceLanguage declaredSourceLanguage; - - private Boolean isStub; - - private Number numberOfLinesOfCode; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "numberOfJavaNullChecks", derived = true) - public Number getNumberOfJavaNullChecks() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(SourcedEntity.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containerFiles", opposite = "entities") - public Collection getContainerFiles() { - if (containerFiles == null) { - containerFiles = new MultivalueSet() { - @Override - protected void clearOpposite(TFile e) { - e.getEntities().remove(SourcedEntity.this); - } - @Override - protected void setOpposite(TFile e) { - e.getEntities().add(SourcedEntity.this); - } - }; - } - return containerFiles; - } - - public void setContainerFiles(Collection containerFiles) { - this.getContainerFiles().clear(); - this.getContainerFiles().addAll(containerFiles); - } - - public void addContainerFiles(TFile one) { - this.getContainerFiles().add(one); - } - - public void addContainerFiles(TFile one, TFile... many) { - this.getContainerFiles().add(one); - for (TFile each : many) - this.getContainerFiles().add(each); - } - - public void addContainerFiles(Iterable many) { - for (TFile each : many) - this.getContainerFiles().add(each); - } - - public void addContainerFiles(TFile[] many) { - for (TFile each : many) - this.getContainerFiles().add(each); - } - - public int numberOfContainerFiles() { - return getContainerFiles().size(); - } - - public boolean hasContainerFiles() { - return !getContainerFiles().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/StructuralEntity.java b/gen/org/moosetechnology/model/famix/famix/StructuralEntity.java deleted file mode 100644 index 63e61a0..0000000 --- a/gen/org/moosetechnology/model/famix/famix/StructuralEntity.java +++ /dev/null @@ -1,442 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TAccessible; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TDereferencedInvocation; -import org.moosetechnology.model.famix.famixtraits.TInvocation; -import org.moosetechnology.model.famix.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithDereferencedInvocations; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("StructuralEntity") -public class StructuralEntity extends LeafEntity implements TAccessible, TEntityMetaLevelDependency, TInvocationsReceiver, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity, TWithComments, TWithDereferencedInvocations, TWithSourceLanguage { - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private TType declaredType; - - private Collection dereferencedInvocations; - - private Collection incomingAccesses; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private Collection receivingInvocations; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "accessors", derived = true) - public Collection getAccessors() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(StructuralEntity.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType() { - return declaredType; - } - - public void setDeclaredType(TType declaredType) { - if (this.declaredType != null) { - if (this.declaredType.equals(declaredType)) return; - this.declaredType.getTypedEntities().remove(this); - } - this.declaredType = declaredType; - if (declaredType == null) return; - declaredType.getTypedEntities().add(this); - } - - @FameProperty(name = "dereferencedInvocations", opposite = "referencer", derived = true) - public Collection getDereferencedInvocations() { - if (dereferencedInvocations == null) { - dereferencedInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TDereferencedInvocation e) { - e.setReferencer(null); - } - @Override - protected void setOpposite(TDereferencedInvocation e) { - e.setReferencer(StructuralEntity.this); - } - }; - } - return dereferencedInvocations; - } - - public void setDereferencedInvocations(Collection dereferencedInvocations) { - this.getDereferencedInvocations().clear(); - this.getDereferencedInvocations().addAll(dereferencedInvocations); - } - - - public void addDereferencedInvocations(TDereferencedInvocation one) { - this.getDereferencedInvocations().add(one); - } - - public void addDereferencedInvocations(TDereferencedInvocation one, TDereferencedInvocation... many) { - this.getDereferencedInvocations().add(one); - for (TDereferencedInvocation each : many) - this.getDereferencedInvocations().add(each); - } - - public void addDereferencedInvocations(Iterable many) { - for (TDereferencedInvocation each : many) - this.getDereferencedInvocations().add(each); - } - - public void addDereferencedInvocations(TDereferencedInvocation[] many) { - for (TDereferencedInvocation each : many) - this.getDereferencedInvocations().add(each); - } - - public int numberOfDereferencedInvocations() { - return getDereferencedInvocations().size(); - } - - public boolean hasDereferencedInvocations() { - return !getDereferencedInvocations().isEmpty(); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingAccesses", opposite = "variable", derived = true) - public Collection getIncomingAccesses() { - if (incomingAccesses == null) { - incomingAccesses = new MultivalueSet() { - @Override - protected void clearOpposite(TAccess e) { - e.setVariable(null); - } - @Override - protected void setOpposite(TAccess e) { - e.setVariable(StructuralEntity.this); - } - }; - } - return incomingAccesses; - } - - public void setIncomingAccesses(Collection incomingAccesses) { - this.getIncomingAccesses().clear(); - this.getIncomingAccesses().addAll(incomingAccesses); - } - - - public void addIncomingAccesses(TAccess one) { - this.getIncomingAccesses().add(one); - } - - public void addIncomingAccesses(TAccess one, TAccess... many) { - this.getIncomingAccesses().add(one); - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(Iterable many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(TAccess[] many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public int numberOfIncomingAccesses() { - return getIncomingAccesses().size(); - } - - public boolean hasIncomingAccesses() { - return !getIncomingAccesses().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAccesses", derived = true) - public Number getNumberOfAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingClasses", derived = true) - public Number getNumberOfAccessingClasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingMethods", derived = true) - public Number getNumberOfAccessingMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfGlobalAccesses", derived = true) - public Number getNumberOfGlobalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLocalAccesses", derived = true) - public Number getNumberOfLocalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "receivingInvocations", opposite = "receiver", derived = true) - public Collection getReceivingInvocations() { - if (receivingInvocations == null) { - receivingInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocation e) { - e.setReceiver(null); - } - @Override - protected void setOpposite(TInvocation e) { - e.setReceiver(StructuralEntity.this); - } - }; - } - return receivingInvocations; - } - - public void setReceivingInvocations(Collection receivingInvocations) { - this.getReceivingInvocations().clear(); - this.getReceivingInvocations().addAll(receivingInvocations); - } - - - public void addReceivingInvocations(TInvocation one) { - this.getReceivingInvocations().add(one); - } - - public void addReceivingInvocations(TInvocation one, TInvocation... many) { - this.getReceivingInvocations().add(one); - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(Iterable many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(TInvocation[] many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public int numberOfReceivingInvocations() { - return getReceivingInvocations().size(); - } - - public boolean hasReceivingInvocations() { - return !getReceivingInvocations().isEmpty(); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/ThrownException.java b/gen/org/moosetechnology/model/famix/famix/ThrownException.java deleted file mode 100644 index 5fa29ac..0000000 --- a/gen/org/moosetechnology/model/famix/famix/ThrownException.java +++ /dev/null @@ -1,37 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixtraits.TThrownException; -import org.moosetechnology.model.famix.famixtraits.TWithThrownExceptions; - - -@FamePackage("FAMIX") -@FameDescription("ThrownException") -public class ThrownException extends Exception implements TThrownException { - - private TWithThrownExceptions definingEntity; - - - - @FameProperty(name = "definingEntity", opposite = "thrownExceptions") - public TWithThrownExceptions getDefiningEntity() { - return definingEntity; - } - - public void setDefiningEntity(TWithThrownExceptions definingEntity) { - if (this.definingEntity != null) { - if (this.definingEntity.equals(definingEntity)) return; - this.definingEntity.getThrownExceptions().remove(this); - } - this.definingEntity = definingEntity; - if (definingEntity == null) return; - definingEntity.getThrownExceptions().add(this); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Trait.java b/gen/org/moosetechnology/model/famix/famix/Trait.java deleted file mode 100644 index 1c23dfb..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Trait.java +++ /dev/null @@ -1,93 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixtraits.TTrait; -import org.moosetechnology.model.famix.famixtraits.TTraitUsage; -import org.moosetechnology.model.famix.famixtraits.TWithTraits; - - -@FamePackage("FAMIX") -@FameDescription("Trait") -public class Trait extends Type implements TTrait { - - private Collection incomingTraitUsages; - - private TWithTraits traitOwner; - - - - @FameProperty(name = "incomingTraitUsages", opposite = "trait", derived = true) - public Collection getIncomingTraitUsages() { - if (incomingTraitUsages == null) { - incomingTraitUsages = new MultivalueSet() { - @Override - protected void clearOpposite(TTraitUsage e) { - e.setTrait(null); - } - @Override - protected void setOpposite(TTraitUsage e) { - e.setTrait(Trait.this); - } - }; - } - return incomingTraitUsages; - } - - public void setIncomingTraitUsages(Collection incomingTraitUsages) { - this.getIncomingTraitUsages().clear(); - this.getIncomingTraitUsages().addAll(incomingTraitUsages); - } - - - public void addIncomingTraitUsages(TTraitUsage one) { - this.getIncomingTraitUsages().add(one); - } - - public void addIncomingTraitUsages(TTraitUsage one, TTraitUsage... many) { - this.getIncomingTraitUsages().add(one); - for (TTraitUsage each : many) - this.getIncomingTraitUsages().add(each); - } - - public void addIncomingTraitUsages(Iterable many) { - for (TTraitUsage each : many) - this.getIncomingTraitUsages().add(each); - } - - public void addIncomingTraitUsages(TTraitUsage[] many) { - for (TTraitUsage each : many) - this.getIncomingTraitUsages().add(each); - } - - public int numberOfIncomingTraitUsages() { - return getIncomingTraitUsages().size(); - } - - public boolean hasIncomingTraitUsages() { - return !getIncomingTraitUsages().isEmpty(); - } - - @FameProperty(name = "traitOwner", opposite = "traits") - public TWithTraits getTraitOwner() { - return traitOwner; - } - - public void setTraitOwner(TWithTraits traitOwner) { - if (this.traitOwner != null) { - if (this.traitOwner.equals(traitOwner)) return; - this.traitOwner.getTraits().remove(this); - } - this.traitOwner = traitOwner; - if (traitOwner == null) return; - traitOwner.getTraits().add(this); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/TraitUsage.java b/gen/org/moosetechnology/model/famix/famix/TraitUsage.java deleted file mode 100644 index fd89d38..0000000 --- a/gen/org/moosetechnology/model/famix/famix/TraitUsage.java +++ /dev/null @@ -1,248 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAssociation; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TTrait; -import org.moosetechnology.model.famix.famixtraits.TTraitUsage; -import org.moosetechnology.model.famix.famixtraits.TTraitUser; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("TraitUsage") -public class TraitUsage extends Entity implements TAssociation, TAssociationMetaLevelDependency, TSourceEntity, TTraitUsage, TWithComments, TWithSourceLanguage { - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private Boolean isStub; - - private TAssociation next; - - private Number numberOfLinesOfCode; - - private TAssociation previous; - - private TSourceAnchor sourceAnchor; - - private TTrait trait; - - private TTraitUser user; - - - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(TraitUsage.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "next", opposite = "previous", derived = true) - public TAssociation getNext() { - return next; - } - - public void setNext(TAssociation next) { - if (this.next == null ? next != null : !this.next.equals(next)) { - TAssociation old_next = this.next; - this.next = next; - if (old_next != null) old_next.setPrevious(null); - if (next != null) next.setPrevious(this); - } - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "previous", opposite = "next") - public TAssociation getPrevious() { - return previous; - } - - public void setPrevious(TAssociation previous) { - if (this.previous == null ? previous != null : !this.previous.equals(previous)) { - TAssociation old_previous = this.previous; - this.previous = previous; - if (old_previous != null) old_previous.setNext(null); - if (previous != null) previous.setNext(this); - } - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "trait", opposite = "incomingTraitUsages") - public TTrait getTrait() { - return trait; - } - - public void setTrait(TTrait trait) { - if (this.trait != null) { - if (this.trait.equals(trait)) return; - this.trait.getIncomingTraitUsages().remove(this); - } - this.trait = trait; - if (trait == null) return; - trait.getIncomingTraitUsages().add(this); - } - - @FameProperty(name = "user", opposite = "outgoingTraitUsages") - public TTraitUser getUser() { - return user; - } - - public void setUser(TTraitUser user) { - if (this.user != null) { - if (this.user.equals(user)) return; - this.user.getOutgoingTraitUsages().remove(this); - } - this.user = user; - if (user == null) return; - user.getOutgoingTraitUsages().add(this); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/Type.java b/gen/org/moosetechnology/model/famix/famix/Type.java deleted file mode 100644 index 69f0b1e..0000000 --- a/gen/org/moosetechnology/model/famix/famix/Type.java +++ /dev/null @@ -1,892 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAttribute; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TInheritance; -import org.moosetechnology.model.famix.famixtraits.TMethod; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TParameterizedTypeUser; -import org.moosetechnology.model.famix.famixtraits.TReference; -import org.moosetechnology.model.famix.famixtraits.TReferenceable; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TTraitUsage; -import org.moosetechnology.model.famix.famixtraits.TTraitUser; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypeAlias; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAttributes; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithInheritances; -import org.moosetechnology.model.famix.famixtraits.TWithMethods; -import org.moosetechnology.model.famix.famixtraits.TWithParameterizedTypeUsers; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TWithTypeAliases; -import org.moosetechnology.model.famix.famixtraits.TWithTypes; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("Type") -public class Type extends ContainerEntity implements TEntityMetaLevelDependency, TNamedEntity, TParameterizedTypeUser, TReferenceable, TSourceEntity, TTraitUser, TType, TWithAttributes, TWithComments, TWithInheritances, TWithMethods, TWithSourceLanguage, TWithTypeAliases { - - private Collection argumentsInParameterizedTypes; - - private Collection attributes; - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private Collection incomingReferences; - - private Boolean isStub; - - private Collection methods; - - private String name; - - private Number numberOfLinesOfCode; - - private Collection outgoingTraitUsages; - - private TSourceAnchor sourceAnchor; - - private Collection subInheritances; - - private Collection superInheritances; - - private Collection typeAliases; - - private TWithTypes typeContainer; - - private Collection typedEntities; - - - - @FameProperty(name = "container", derived = true) - public ContainerEntity getContainer() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isAbstract", derived = true) - public Boolean getIsAbstract() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isInnerClass", derived = true) - public Boolean getIsInnerClass() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isJUnit4TestCase", derived = true) - public Boolean getIsJUnit4TestCase() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isTestCase", derived = true) - public Boolean getIsTestCase() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "argumentsInParameterizedTypes", opposite = "arguments", derived = true) - public Collection getArgumentsInParameterizedTypes() { - if (argumentsInParameterizedTypes == null) { - argumentsInParameterizedTypes = new MultivalueSet() { - @Override - protected void clearOpposite(TWithParameterizedTypeUsers e) { - e.getArguments().remove(Type.this); - } - @Override - protected void setOpposite(TWithParameterizedTypeUsers e) { - e.getArguments().add(Type.this); - } - }; - } - return argumentsInParameterizedTypes; - } - - public void setArgumentsInParameterizedTypes(Collection argumentsInParameterizedTypes) { - this.getArgumentsInParameterizedTypes().clear(); - this.getArgumentsInParameterizedTypes().addAll(argumentsInParameterizedTypes); - } - - public void addArgumentsInParameterizedTypes(TWithParameterizedTypeUsers one) { - this.getArgumentsInParameterizedTypes().add(one); - } - - public void addArgumentsInParameterizedTypes(TWithParameterizedTypeUsers one, TWithParameterizedTypeUsers... many) { - this.getArgumentsInParameterizedTypes().add(one); - for (TWithParameterizedTypeUsers each : many) - this.getArgumentsInParameterizedTypes().add(each); - } - - public void addArgumentsInParameterizedTypes(Iterable many) { - for (TWithParameterizedTypeUsers each : many) - this.getArgumentsInParameterizedTypes().add(each); - } - - public void addArgumentsInParameterizedTypes(TWithParameterizedTypeUsers[] many) { - for (TWithParameterizedTypeUsers each : many) - this.getArgumentsInParameterizedTypes().add(each); - } - - public int numberOfArgumentsInParameterizedTypes() { - return getArgumentsInParameterizedTypes().size(); - } - - public boolean hasArgumentsInParameterizedTypes() { - return !getArgumentsInParameterizedTypes().isEmpty(); - } - - @FameProperty(name = "attributes", opposite = "parentType", derived = true) - public Collection getAttributes() { - if (attributes == null) { - attributes = new MultivalueSet() { - @Override - protected void clearOpposite(TAttribute e) { - e.setParentType(null); - } - @Override - protected void setOpposite(TAttribute e) { - e.setParentType(Type.this); - } - }; - } - return attributes; - } - - public void setAttributes(Collection attributes) { - this.getAttributes().clear(); - this.getAttributes().addAll(attributes); - } - - - public void addAttributes(TAttribute one) { - this.getAttributes().add(one); - } - - public void addAttributes(TAttribute one, TAttribute... many) { - this.getAttributes().add(one); - for (TAttribute each : many) - this.getAttributes().add(each); - } - - public void addAttributes(Iterable many) { - for (TAttribute each : many) - this.getAttributes().add(each); - } - - public void addAttributes(TAttribute[] many) { - for (TAttribute each : many) - this.getAttributes().add(each); - } - - public int numberOfAttributes() { - return getAttributes().size(); - } - - public boolean hasAttributes() { - return !getAttributes().isEmpty(); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(Type.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hierarchyNestingLevel", derived = true) - public Number getHierarchyNestingLevel() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingReferences", opposite = "referredType", derived = true) - public Collection getIncomingReferences() { - if (incomingReferences == null) { - incomingReferences = new MultivalueSet() { - @Override - protected void clearOpposite(TReference e) { - e.setReferredType(null); - } - @Override - protected void setOpposite(TReference e) { - e.setReferredType(Type.this); - } - }; - } - return incomingReferences; - } - - public void setIncomingReferences(Collection incomingReferences) { - this.getIncomingReferences().clear(); - this.getIncomingReferences().addAll(incomingReferences); - } - - - public void addIncomingReferences(TReference one) { - this.getIncomingReferences().add(one); - } - - public void addIncomingReferences(TReference one, TReference... many) { - this.getIncomingReferences().add(one); - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public void addIncomingReferences(Iterable many) { - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public void addIncomingReferences(TReference[] many) { - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public int numberOfIncomingReferences() { - return getIncomingReferences().size(); - } - - public boolean hasIncomingReferences() { - return !getIncomingReferences().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "methods", opposite = "parentType", derived = true) - public Collection getMethods() { - if (methods == null) { - methods = new MultivalueSet() { - @Override - protected void clearOpposite(TMethod e) { - e.setParentType(null); - } - @Override - protected void setOpposite(TMethod e) { - e.setParentType(Type.this); - } - }; - } - return methods; - } - - public void setMethods(Collection methods) { - this.getMethods().clear(); - this.getMethods().addAll(methods); - } - - - public void addMethods(TMethod one) { - this.getMethods().add(one); - } - - public void addMethods(TMethod one, TMethod... many) { - this.getMethods().add(one); - for (TMethod each : many) - this.getMethods().add(each); - } - - public void addMethods(Iterable many) { - for (TMethod each : many) - this.getMethods().add(each); - } - - public void addMethods(TMethod[] many) { - for (TMethod each : many) - this.getMethods().add(each); - } - - public int numberOfMethods() { - return getMethods().size(); - } - - public boolean hasMethods() { - return !getMethods().isEmpty(); - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAbstractMethods", derived = true) - public Number getNumberOfAbstractMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessesToForeignData", derived = true) - public Number getNumberOfAccessesToForeignData() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessorMethods", derived = true) - public Number getNumberOfAccessorMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAttributes", derived = true) - public Number getNumberOfAttributes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfConstructorMethods", derived = true) - public Number getNumberOfConstructorMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDirectSubclasses", derived = true) - public Number getNumberOfDirectSubclasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDuplicatedLinesOfCodeInternally", derived = true) - public Number getNumberOfDuplicatedLinesOfCodeInternally() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfMessageSends", derived = true) - public Number getNumberOfMessageSends() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfMethods", derived = true) - public Number getNumberOfMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfPrivateAttributes", derived = true) - public Number getNumberOfPrivateAttributes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfPrivateMethods", derived = true) - public Number getNumberOfPrivateMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfProtectedAttributes", derived = true) - public Number getNumberOfProtectedAttributes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfProtectedMethods", derived = true) - public Number getNumberOfProtectedMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfPublicAttributes", derived = true) - public Number getNumberOfPublicAttributes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfPublicMethods", derived = true) - public Number getNumberOfPublicMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfRevealedAttributes", derived = true) - public Number getNumberOfRevealedAttributes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfSubclasses", derived = true) - public Number getNumberOfSubclasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "outgoingTraitUsages", opposite = "user", derived = true) - public Collection getOutgoingTraitUsages() { - if (outgoingTraitUsages == null) { - outgoingTraitUsages = new MultivalueSet() { - @Override - protected void clearOpposite(TTraitUsage e) { - e.setUser(null); - } - @Override - protected void setOpposite(TTraitUsage e) { - e.setUser(Type.this); - } - }; - } - return outgoingTraitUsages; - } - - public void setOutgoingTraitUsages(Collection outgoingTraitUsages) { - this.getOutgoingTraitUsages().clear(); - this.getOutgoingTraitUsages().addAll(outgoingTraitUsages); - } - - - public void addOutgoingTraitUsages(TTraitUsage one) { - this.getOutgoingTraitUsages().add(one); - } - - public void addOutgoingTraitUsages(TTraitUsage one, TTraitUsage... many) { - this.getOutgoingTraitUsages().add(one); - for (TTraitUsage each : many) - this.getOutgoingTraitUsages().add(each); - } - - public void addOutgoingTraitUsages(Iterable many) { - for (TTraitUsage each : many) - this.getOutgoingTraitUsages().add(each); - } - - public void addOutgoingTraitUsages(TTraitUsage[] many) { - for (TTraitUsage each : many) - this.getOutgoingTraitUsages().add(each); - } - - public int numberOfOutgoingTraitUsages() { - return getOutgoingTraitUsages().size(); - } - - public boolean hasOutgoingTraitUsages() { - return !getOutgoingTraitUsages().isEmpty(); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "subInheritances", opposite = "superclass", derived = true) - public Collection getSubInheritances() { - if (subInheritances == null) { - subInheritances = new MultivalueSet() { - @Override - protected void clearOpposite(TInheritance e) { - e.setSuperclass(null); - } - @Override - protected void setOpposite(TInheritance e) { - e.setSuperclass(Type.this); - } - }; - } - return subInheritances; - } - - public void setSubInheritances(Collection subInheritances) { - this.getSubInheritances().clear(); - this.getSubInheritances().addAll(subInheritances); - } - - - public void addSubInheritances(TInheritance one) { - this.getSubInheritances().add(one); - } - - public void addSubInheritances(TInheritance one, TInheritance... many) { - this.getSubInheritances().add(one); - for (TInheritance each : many) - this.getSubInheritances().add(each); - } - - public void addSubInheritances(Iterable many) { - for (TInheritance each : many) - this.getSubInheritances().add(each); - } - - public void addSubInheritances(TInheritance[] many) { - for (TInheritance each : many) - this.getSubInheritances().add(each); - } - - public int numberOfSubInheritances() { - return getSubInheritances().size(); - } - - public boolean hasSubInheritances() { - return !getSubInheritances().isEmpty(); - } - - @FameProperty(name = "subclassHierarchyDepth", derived = true) - public Number getSubclassHierarchyDepth() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "superInheritances", opposite = "subclass", derived = true) - public Collection getSuperInheritances() { - if (superInheritances == null) { - superInheritances = new MultivalueSet() { - @Override - protected void clearOpposite(TInheritance e) { - e.setSubclass(null); - } - @Override - protected void setOpposite(TInheritance e) { - e.setSubclass(Type.this); - } - }; - } - return superInheritances; - } - - public void setSuperInheritances(Collection superInheritances) { - this.getSuperInheritances().clear(); - this.getSuperInheritances().addAll(superInheritances); - } - - - public void addSuperInheritances(TInheritance one) { - this.getSuperInheritances().add(one); - } - - public void addSuperInheritances(TInheritance one, TInheritance... many) { - this.getSuperInheritances().add(one); - for (TInheritance each : many) - this.getSuperInheritances().add(each); - } - - public void addSuperInheritances(Iterable many) { - for (TInheritance each : many) - this.getSuperInheritances().add(each); - } - - public void addSuperInheritances(TInheritance[] many) { - for (TInheritance each : many) - this.getSuperInheritances().add(each); - } - - public int numberOfSuperInheritances() { - return getSuperInheritances().size(); - } - - public boolean hasSuperInheritances() { - return !getSuperInheritances().isEmpty(); - } - - @FameProperty(name = "tightClassCohesion", derived = true) - public Number getTightClassCohesion() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "totalNumberOfSubclasses", derived = true) - public Number getTotalNumberOfSubclasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "typeAliases", opposite = "aliasedType", derived = true) - public Collection getTypeAliases() { - if (typeAliases == null) { - typeAliases = new MultivalueSet() { - @Override - protected void clearOpposite(TTypeAlias e) { - e.setAliasedType(null); - } - @Override - protected void setOpposite(TTypeAlias e) { - e.setAliasedType(Type.this); - } - }; - } - return typeAliases; - } - - public void setTypeAliases(Collection typeAliases) { - this.getTypeAliases().clear(); - this.getTypeAliases().addAll(typeAliases); - } - - - public void addTypeAliases(TTypeAlias one) { - this.getTypeAliases().add(one); - } - - public void addTypeAliases(TTypeAlias one, TTypeAlias... many) { - this.getTypeAliases().add(one); - for (TTypeAlias each : many) - this.getTypeAliases().add(each); - } - - public void addTypeAliases(Iterable many) { - for (TTypeAlias each : many) - this.getTypeAliases().add(each); - } - - public void addTypeAliases(TTypeAlias[] many) { - for (TTypeAlias each : many) - this.getTypeAliases().add(each); - } - - public int numberOfTypeAliases() { - return getTypeAliases().size(); - } - - public boolean hasTypeAliases() { - return !getTypeAliases().isEmpty(); - } - - @FameProperty(name = "typeContainer", opposite = "types", container = true) - public TWithTypes getTypeContainer() { - return typeContainer; - } - - public void setTypeContainer(TWithTypes typeContainer) { - if (this.typeContainer != null) { - if (this.typeContainer.equals(typeContainer)) return; - this.typeContainer.getTypes().remove(this); - } - this.typeContainer = typeContainer; - if (typeContainer == null) return; - typeContainer.getTypes().add(this); - } - - @FameProperty(name = "typedEntities", opposite = "declaredType", derived = true) - public Collection getTypedEntities() { - if (typedEntities == null) { - typedEntities = new MultivalueSet() { - @Override - protected void clearOpposite(TTypedEntity e) { - e.setDeclaredType(null); - } - @Override - protected void setOpposite(TTypedEntity e) { - e.setDeclaredType(Type.this); - } - }; - } - return typedEntities; - } - - public void setTypedEntities(Collection typedEntities) { - this.getTypedEntities().clear(); - this.getTypedEntities().addAll(typedEntities); - } - - - public void addTypedEntities(TTypedEntity one) { - this.getTypedEntities().add(one); - } - - public void addTypedEntities(TTypedEntity one, TTypedEntity... many) { - this.getTypedEntities().add(one); - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public void addTypedEntities(Iterable many) { - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public void addTypedEntities(TTypedEntity[] many) { - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public int numberOfTypedEntities() { - return getTypedEntities().size(); - } - - public boolean hasTypedEntities() { - return !getTypedEntities().isEmpty(); - } - - @FameProperty(name = "weightedMethodCount", derived = true) - public Number getWeightedMethodCount() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/TypeAlias.java b/gen/org/moosetechnology/model/famix/famix/TypeAlias.java deleted file mode 100644 index db82f41..0000000 --- a/gen/org/moosetechnology/model/famix/famix/TypeAlias.java +++ /dev/null @@ -1,37 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixtraits.TTypeAlias; -import org.moosetechnology.model.famix.famixtraits.TWithTypeAliases; - - -@FamePackage("FAMIX") -@FameDescription("TypeAlias") -public class TypeAlias extends Type implements TTypeAlias { - - private TWithTypeAliases aliasedType; - - - - @FameProperty(name = "aliasedType", opposite = "typeAliases") - public TWithTypeAliases getAliasedType() { - return aliasedType; - } - - public void setAliasedType(TWithTypeAliases aliasedType) { - if (this.aliasedType != null) { - if (this.aliasedType.equals(aliasedType)) return; - this.aliasedType.getTypeAliases().remove(this); - } - this.aliasedType = aliasedType; - if (aliasedType == null) return; - aliasedType.getTypeAliases().add(this); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/UnknownSourceLanguage.java b/gen/org/moosetechnology/model/famix/famix/UnknownSourceLanguage.java deleted file mode 100644 index e17749d..0000000 --- a/gen/org/moosetechnology/model/famix/famix/UnknownSourceLanguage.java +++ /dev/null @@ -1,18 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.famixtraits.TUnknownSourceLanguage; - - -@FamePackage("FAMIX") -@FameDescription("UnknownSourceLanguage") -public class UnknownSourceLanguage extends SourceLanguage implements TUnknownSourceLanguage { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famix/UnknownVariable.java b/gen/org/moosetechnology/model/famix/famix/UnknownVariable.java deleted file mode 100644 index f7973a3..0000000 --- a/gen/org/moosetechnology/model/famix/famix/UnknownVariable.java +++ /dev/null @@ -1,388 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famix; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TAccessible; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TInvocation; -import org.moosetechnology.model.famix.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famix.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TUnknownVariable; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("FAMIX") -@FameDescription("UnknownVariable") -public class UnknownVariable extends StructuralEntity implements TAccessible, TEntityMetaLevelDependency, TInvocationsReceiver, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity, TUnknownVariable, TWithComments, TWithSourceLanguage { - - private Collection comments; - - private TSourceLanguage declaredSourceLanguage; - - private TType declaredType; - - private Collection incomingAccesses; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private Collection receivingInvocations; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "accessors", derived = true) - public Collection getAccessors() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(UnknownVariable.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage() { - return declaredSourceLanguage; - } - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage) { - if (this.declaredSourceLanguage != null) { - if (this.declaredSourceLanguage.equals(declaredSourceLanguage)) return; - this.declaredSourceLanguage.getSourcedEntities().remove(this); - } - this.declaredSourceLanguage = declaredSourceLanguage; - if (declaredSourceLanguage == null) return; - declaredSourceLanguage.getSourcedEntities().add(this); - } - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType() { - return declaredType; - } - - public void setDeclaredType(TType declaredType) { - if (this.declaredType != null) { - if (this.declaredType.equals(declaredType)) return; - this.declaredType.getTypedEntities().remove(this); - } - this.declaredType = declaredType; - if (declaredType == null) return; - declaredType.getTypedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingAccesses", opposite = "variable", derived = true) - public Collection getIncomingAccesses() { - if (incomingAccesses == null) { - incomingAccesses = new MultivalueSet() { - @Override - protected void clearOpposite(TAccess e) { - e.setVariable(null); - } - @Override - protected void setOpposite(TAccess e) { - e.setVariable(UnknownVariable.this); - } - }; - } - return incomingAccesses; - } - - public void setIncomingAccesses(Collection incomingAccesses) { - this.getIncomingAccesses().clear(); - this.getIncomingAccesses().addAll(incomingAccesses); - } - - - public void addIncomingAccesses(TAccess one) { - this.getIncomingAccesses().add(one); - } - - public void addIncomingAccesses(TAccess one, TAccess... many) { - this.getIncomingAccesses().add(one); - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(Iterable many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(TAccess[] many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public int numberOfIncomingAccesses() { - return getIncomingAccesses().size(); - } - - public boolean hasIncomingAccesses() { - return !getIncomingAccesses().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAccesses", derived = true) - public Number getNumberOfAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingClasses", derived = true) - public Number getNumberOfAccessingClasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingMethods", derived = true) - public Number getNumberOfAccessingMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfGlobalAccesses", derived = true) - public Number getNumberOfGlobalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLocalAccesses", derived = true) - public Number getNumberOfLocalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "receivingInvocations", opposite = "receiver", derived = true) - public Collection getReceivingInvocations() { - if (receivingInvocations == null) { - receivingInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocation e) { - e.setReceiver(null); - } - @Override - protected void setOpposite(TInvocation e) { - e.setReceiver(UnknownVariable.this); - } - }; - } - return receivingInvocations; - } - - public void setReceivingInvocations(Collection receivingInvocations) { - this.getReceivingInvocations().clear(); - this.getReceivingInvocations().addAll(receivingInvocations); - } - - - public void addReceivingInvocations(TInvocation one) { - this.getReceivingInvocations().add(one); - } - - public void addReceivingInvocations(TInvocation one, TInvocation... many) { - this.getReceivingInvocations().add(one); - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(Iterable many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(TInvocation[] many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public int numberOfReceivingInvocations() { - return getReceivingInvocations().size(); - } - - public boolean hasReceivingInvocations() { - return !getReceivingInvocations().isEmpty(); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/Access.java b/gen/org/moosetechnology/model/famix/famixcentities/Access.java deleted file mode 100644 index 08299cb..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/Access.java +++ /dev/null @@ -1,183 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TAccessible; -import org.moosetechnology.model.famix.famixtraits.TAssociation; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("Famix-C-Entities") -@FameDescription("Access") -public class Access extends Entity implements TAccess, TAssociation, TAssociationMetaLevelDependency, TSourceEntity { - - private TWithAccesses accessor; - - private Boolean isStub; - - private Boolean isWrite; - - private TAssociation next; - - private Number numberOfLinesOfCode; - - private TAssociation previous; - - private TSourceAnchor sourceAnchor; - - private TAccessible variable; - - - - @FameProperty(name = "accessor", opposite = "accesses") - public TWithAccesses getAccessor() { - return accessor; - } - - public void setAccessor(TWithAccesses accessor) { - if (this.accessor != null) { - if (this.accessor.equals(accessor)) return; - this.accessor.getAccesses().remove(this); - } - this.accessor = accessor; - if (accessor == null) return; - accessor.getAccesses().add(this); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isRead", derived = true) - public Boolean getIsRead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isReadWriteUnknown", derived = true) - public Boolean getIsReadWriteUnknown() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "isWrite") - public Boolean getIsWrite() { - return isWrite; - } - - public void setIsWrite(Boolean isWrite) { - this.isWrite = isWrite; - } - - @FameProperty(name = "next", opposite = "previous", derived = true) - public TAssociation getNext() { - return next; - } - - public void setNext(TAssociation next) { - if (this.next == null ? next != null : !this.next.equals(next)) { - TAssociation old_next = this.next; - this.next = next; - if (old_next != null) old_next.setPrevious(null); - if (next != null) next.setPrevious(this); - } - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "previous", opposite = "next") - public TAssociation getPrevious() { - return previous; - } - - public void setPrevious(TAssociation previous) { - if (this.previous == null ? previous != null : !this.previous.equals(previous)) { - TAssociation old_previous = this.previous; - this.previous = previous; - if (old_previous != null) old_previous.setNext(null); - if (previous != null) previous.setNext(this); - } - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "variable", opposite = "incomingAccesses") - public TAccessible getVariable() { - return variable; - } - - public void setVariable(TAccessible variable) { - if (this.variable != null) { - if (this.variable.equals(variable)) return; - this.variable.getIncomingAccesses().remove(this); - } - this.variable = variable; - if (variable == null) return; - variable.getIncomingAccesses().add(this); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/AliasType.java b/gen/org/moosetechnology/model/famix/famixcentities/AliasType.java deleted file mode 100644 index bca6407..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/AliasType.java +++ /dev/null @@ -1,37 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixtraits.TTypeAlias; -import org.moosetechnology.model.famix.famixtraits.TWithTypeAliases; - - -@FamePackage("Famix-C-Entities") -@FameDescription("AliasType") -public class AliasType extends Type implements TTypeAlias { - - private TWithTypeAliases aliasedType; - - - - @FameProperty(name = "aliasedType", opposite = "typeAliases") - public TWithTypeAliases getAliasedType() { - return aliasedType; - } - - public void setAliasedType(TWithTypeAliases aliasedType) { - if (this.aliasedType != null) { - if (this.aliasedType.equals(aliasedType)) return; - this.aliasedType.getTypeAliases().remove(this); - } - this.aliasedType = aliasedType; - if (aliasedType == null) return; - aliasedType.getTypeAliases().add(this); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/Attribute.java b/gen/org/moosetechnology/model/famix/famixcentities/Attribute.java deleted file mode 100644 index d75776b..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/Attribute.java +++ /dev/null @@ -1,301 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TAccessible; -import org.moosetechnology.model.famix.famixtraits.TAttribute; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.famixtraits.TWithAttributes; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-C-Entities") -@FameDescription("Attribute") -public class Attribute extends Entity implements TAccessible, TAttribute, TEntityMetaLevelDependency, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity { - - private TType declaredType; - - private Collection incomingAccesses; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TWithAttributes parentType; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "accessors", derived = true) - public Collection getAccessors() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType() { - return declaredType; - } - - public void setDeclaredType(TType declaredType) { - if (this.declaredType != null) { - if (this.declaredType.equals(declaredType)) return; - this.declaredType.getTypedEntities().remove(this); - } - this.declaredType = declaredType; - if (declaredType == null) return; - declaredType.getTypedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasClassScope", derived = true) - public Boolean getHasClassScope() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hierarchyNestingLevel", derived = true) - public Number getHierarchyNestingLevel() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingAccesses", opposite = "variable", derived = true) - public Collection getIncomingAccesses() { - if (incomingAccesses == null) { - incomingAccesses = new MultivalueSet() { - @Override - protected void clearOpposite(TAccess e) { - e.setVariable(null); - } - @Override - protected void setOpposite(TAccess e) { - e.setVariable(Attribute.this); - } - }; - } - return incomingAccesses; - } - - public void setIncomingAccesses(Collection incomingAccesses) { - this.getIncomingAccesses().clear(); - this.getIncomingAccesses().addAll(incomingAccesses); - } - - - public void addIncomingAccesses(TAccess one) { - this.getIncomingAccesses().add(one); - } - - public void addIncomingAccesses(TAccess one, TAccess... many) { - this.getIncomingAccesses().add(one); - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(Iterable many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(TAccess[] many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public int numberOfIncomingAccesses() { - return getIncomingAccesses().size(); - } - - public boolean hasIncomingAccesses() { - return !getIncomingAccesses().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAccesses", derived = true) - public Number getNumberOfAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingClasses", derived = true) - public Number getNumberOfAccessingClasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingMethods", derived = true) - public Number getNumberOfAccessingMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalClients", derived = true) - public Number getNumberOfExternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalProviders", derived = true) - public Number getNumberOfExternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfGlobalAccesses", derived = true) - public Number getNumberOfGlobalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalClients", derived = true) - public Number getNumberOfInternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalProviders", derived = true) - public Number getNumberOfInternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLocalAccesses", derived = true) - public Number getNumberOfLocalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parentType", opposite = "attributes", container = true) - public TWithAttributes getParentType() { - return parentType; - } - - public void setParentType(TWithAttributes parentType) { - if (this.parentType != null) { - if (this.parentType.equals(parentType)) return; - this.parentType.getAttributes().remove(this); - } - this.parentType = parentType; - if (parentType == null) return; - parentType.getAttributes().add(this); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/BehaviouralReference.java b/gen/org/moosetechnology/model/famix/famixcentities/BehaviouralReference.java deleted file mode 100644 index ace938a..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/BehaviouralReference.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Famix-C-Entities") -@FameDescription("BehaviouralReference") -public class BehaviouralReference extends Entity { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/CModel.java b/gen/org/moosetechnology/model/famix/famixcentities/CModel.java deleted file mode 100644 index 14012b8..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/CModel.java +++ /dev/null @@ -1,18 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moose.Model; - - -@FamePackage("Famix-C-Entities") -@FameDescription("CModel") -public class CModel extends Model { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/DerefInvocation.java b/gen/org/moosetechnology/model/famix/famixcentities/DerefInvocation.java deleted file mode 100644 index 91b0772..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/DerefInvocation.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Famix-C-Entities") -@FameDescription("DerefInvocation") -public class DerefInvocation extends Invocation { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/Entity.java b/gen/org/moosetechnology/model/famix/famixcentities/Entity.java deleted file mode 100644 index 48e165f..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/Entity.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Famix-C-Entities") -@FameDescription("Entity") -public class Entity extends org.moosetechnology.model.famix.moose.Entity { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/Enum.java b/gen/org/moosetechnology/model/famix/famixcentities/Enum.java deleted file mode 100644 index 722174d..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/Enum.java +++ /dev/null @@ -1,342 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TEnum; -import org.moosetechnology.model.famix.famixtraits.TEnumValue; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TReference; -import org.moosetechnology.model.famix.famixtraits.TReferenceable; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithEnumValues; -import org.moosetechnology.model.famix.famixtraits.TWithTypes; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-C-Entities") -@FameDescription("Enum") -public class Enum extends Type implements TEntityMetaLevelDependency, TEnum, TNamedEntity, TReferenceable, TSourceEntity, TType, TWithEnumValues { - - private Collection enumValues; - - private Collection incomingReferences; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TSourceAnchor sourceAnchor; - - private TWithTypes typeContainer; - - private Collection typedEntities; - - - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "enumValues", opposite = "parentEnum", derived = true) - public Collection getEnumValues() { - if (enumValues == null) { - enumValues = new MultivalueSet() { - @Override - protected void clearOpposite(TEnumValue e) { - e.setParentEnum(null); - } - @Override - protected void setOpposite(TEnumValue e) { - e.setParentEnum(Enum.this); - } - }; - } - return enumValues; - } - - public void setEnumValues(Collection enumValues) { - this.getEnumValues().clear(); - this.getEnumValues().addAll(enumValues); - } - - - public void addEnumValues(TEnumValue one) { - this.getEnumValues().add(one); - } - - public void addEnumValues(TEnumValue one, TEnumValue... many) { - this.getEnumValues().add(one); - for (TEnumValue each : many) - this.getEnumValues().add(each); - } - - public void addEnumValues(Iterable many) { - for (TEnumValue each : many) - this.getEnumValues().add(each); - } - - public void addEnumValues(TEnumValue[] many) { - for (TEnumValue each : many) - this.getEnumValues().add(each); - } - - public int numberOfEnumValues() { - return getEnumValues().size(); - } - - public boolean hasEnumValues() { - return !getEnumValues().isEmpty(); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingReferences", opposite = "referredType", derived = true) - public Collection getIncomingReferences() { - if (incomingReferences == null) { - incomingReferences = new MultivalueSet() { - @Override - protected void clearOpposite(TReference e) { - e.setReferredType(null); - } - @Override - protected void setOpposite(TReference e) { - e.setReferredType(Enum.this); - } - }; - } - return incomingReferences; - } - - public void setIncomingReferences(Collection incomingReferences) { - this.getIncomingReferences().clear(); - this.getIncomingReferences().addAll(incomingReferences); - } - - - public void addIncomingReferences(TReference one) { - this.getIncomingReferences().add(one); - } - - public void addIncomingReferences(TReference one, TReference... many) { - this.getIncomingReferences().add(one); - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public void addIncomingReferences(Iterable many) { - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public void addIncomingReferences(TReference[] many) { - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public int numberOfIncomingReferences() { - return getIncomingReferences().size(); - } - - public boolean hasIncomingReferences() { - return !getIncomingReferences().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalClients", derived = true) - public Number getNumberOfExternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalProviders", derived = true) - public Number getNumberOfExternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalClients", derived = true) - public Number getNumberOfInternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalProviders", derived = true) - public Number getNumberOfInternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "typeContainer", opposite = "types", container = true) - public TWithTypes getTypeContainer() { - return typeContainer; - } - - public void setTypeContainer(TWithTypes typeContainer) { - if (this.typeContainer != null) { - if (this.typeContainer.equals(typeContainer)) return; - this.typeContainer.getTypes().remove(this); - } - this.typeContainer = typeContainer; - if (typeContainer == null) return; - typeContainer.getTypes().add(this); - } - - @FameProperty(name = "typedEntities", opposite = "declaredType", derived = true) - public Collection getTypedEntities() { - if (typedEntities == null) { - typedEntities = new MultivalueSet() { - @Override - protected void clearOpposite(TTypedEntity e) { - e.setDeclaredType(null); - } - @Override - protected void setOpposite(TTypedEntity e) { - e.setDeclaredType(Enum.this); - } - }; - } - return typedEntities; - } - - public void setTypedEntities(Collection typedEntities) { - this.getTypedEntities().clear(); - this.getTypedEntities().addAll(typedEntities); - } - - - public void addTypedEntities(TTypedEntity one) { - this.getTypedEntities().add(one); - } - - public void addTypedEntities(TTypedEntity one, TTypedEntity... many) { - this.getTypedEntities().add(one); - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public void addTypedEntities(Iterable many) { - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public void addTypedEntities(TTypedEntity[] many) { - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public int numberOfTypedEntities() { - return getTypedEntities().size(); - } - - public boolean hasTypedEntities() { - return !getTypedEntities().isEmpty(); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/EnumValue.java b/gen/org/moosetechnology/model/famix/famixcentities/EnumValue.java deleted file mode 100644 index f360c55..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/EnumValue.java +++ /dev/null @@ -1,356 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TAccessible; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TEnumValue; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithEnumValues; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-C-Entities") -@FameDescription("EnumValue") -public class EnumValue extends Entity implements TAccessible, TEntityMetaLevelDependency, TEnumValue, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity, TWithComments { - - private Collection comments; - - private TType declaredType; - - private Collection incomingAccesses; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TWithEnumValues parentEnum; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "accessors", derived = true) - public Collection getAccessors() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(EnumValue.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType() { - return declaredType; - } - - public void setDeclaredType(TType declaredType) { - if (this.declaredType != null) { - if (this.declaredType.equals(declaredType)) return; - this.declaredType.getTypedEntities().remove(this); - } - this.declaredType = declaredType; - if (declaredType == null) return; - declaredType.getTypedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingAccesses", opposite = "variable", derived = true) - public Collection getIncomingAccesses() { - if (incomingAccesses == null) { - incomingAccesses = new MultivalueSet() { - @Override - protected void clearOpposite(TAccess e) { - e.setVariable(null); - } - @Override - protected void setOpposite(TAccess e) { - e.setVariable(EnumValue.this); - } - }; - } - return incomingAccesses; - } - - public void setIncomingAccesses(Collection incomingAccesses) { - this.getIncomingAccesses().clear(); - this.getIncomingAccesses().addAll(incomingAccesses); - } - - - public void addIncomingAccesses(TAccess one) { - this.getIncomingAccesses().add(one); - } - - public void addIncomingAccesses(TAccess one, TAccess... many) { - this.getIncomingAccesses().add(one); - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(Iterable many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(TAccess[] many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public int numberOfIncomingAccesses() { - return getIncomingAccesses().size(); - } - - public boolean hasIncomingAccesses() { - return !getIncomingAccesses().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAccesses", derived = true) - public Number getNumberOfAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingClasses", derived = true) - public Number getNumberOfAccessingClasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingMethods", derived = true) - public Number getNumberOfAccessingMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalClients", derived = true) - public Number getNumberOfExternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalProviders", derived = true) - public Number getNumberOfExternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfGlobalAccesses", derived = true) - public Number getNumberOfGlobalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalClients", derived = true) - public Number getNumberOfInternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalProviders", derived = true) - public Number getNumberOfInternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLocalAccesses", derived = true) - public Number getNumberOfLocalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parentEnum", opposite = "enumValues", container = true) - public TWithEnumValues getParentEnum() { - return parentEnum; - } - - public void setParentEnum(TWithEnumValues parentEnum) { - if (this.parentEnum != null) { - if (this.parentEnum.equals(parentEnum)) return; - this.parentEnum.getEnumValues().remove(this); - } - this.parentEnum = parentEnum; - if (parentEnum == null) return; - parentEnum.getEnumValues().add(this); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/FamixCEntitiesModel.java b/gen/org/moosetechnology/model/famix/famixcentities/FamixCEntitiesModel.java deleted file mode 100644 index f94a5e0..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/FamixCEntitiesModel.java +++ /dev/null @@ -1,39 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.MetaRepository; - -public class FamixCEntitiesModel { - - public static MetaRepository metamodel() { - MetaRepository metamodel = new MetaRepository(); - importInto(metamodel); - return metamodel; - } - - public static void importInto(MetaRepository metamodel) { - metamodel.with(org.moosetechnology.model.famix.famixcentities.Access.class); - metamodel.with(org.moosetechnology.model.famix.famixcentities.AliasType.class); - metamodel.with(org.moosetechnology.model.famix.famixcentities.Attribute.class); - metamodel.with(org.moosetechnology.model.famix.famixcentities.BehaviouralReference.class); - metamodel.with(org.moosetechnology.model.famix.famixcentities.CModel.class); - metamodel.with(org.moosetechnology.model.famix.famixcentities.DerefInvocation.class); - metamodel.with(org.moosetechnology.model.famix.famixcentities.Entity.class); - metamodel.with(org.moosetechnology.model.famix.famixcentities.Enum.class); - metamodel.with(org.moosetechnology.model.famix.famixcentities.EnumValue.class); - metamodel.with(org.moosetechnology.model.famix.famixcentities.Function.class); - metamodel.with(org.moosetechnology.model.famix.famixcentities.GlobalVar.class); - metamodel.with(org.moosetechnology.model.famix.famixcentities.Invocation.class); - metamodel.with(org.moosetechnology.model.famix.famixcentities.LocalVar.class); - metamodel.with(org.moosetechnology.model.famix.famixcentities.Parameter.class); - metamodel.with(org.moosetechnology.model.famix.famixcentities.PrimitiveType.class); - metamodel.with(org.moosetechnology.model.famix.famixcentities.Reference.class); - metamodel.with(org.moosetechnology.model.famix.famixcentities.Struct.class); - metamodel.with(org.moosetechnology.model.famix.famixcentities.Type.class); - metamodel.with(org.moosetechnology.model.famix.famixcentities.Union.class); - metamodel.with(org.moosetechnology.model.famix.famixcentities.UnknownBehaviour.class); - - } - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/Function.java b/gen/org/moosetechnology/model/famix/famixcentities/Function.java deleted file mode 100644 index dfa900d..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/Function.java +++ /dev/null @@ -1,447 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TFunction; -import org.moosetechnology.model.famix.famixtraits.THasSignature; -import org.moosetechnology.model.famix.famixtraits.TInvocation; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TParameter; -import org.moosetechnology.model.famix.famixtraits.TReference; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.famixtraits.TWithFunctions; -import org.moosetechnology.model.famix.famixtraits.TWithInvocations; -import org.moosetechnology.model.famix.famixtraits.TWithParameters; -import org.moosetechnology.model.famix.famixtraits.TWithReferences; -import org.moosetechnology.model.famix.famixtraits.TWithStatements; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-C-Entities") -@FameDescription("Function") -public class Function extends Entity implements TEntityMetaLevelDependency, TFunction, THasSignature, TNamedEntity, TSourceEntity, TTypedEntity, TWithAccesses, TWithInvocations, TWithParameters, TWithReferences, TWithStatements { - - private Collection accesses; - - private TType declaredType; - - private TWithFunctions functionOwner; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private Collection outgoingInvocations; - - private Collection outgoingReferences; - - private Collection parameters; - - private String signature; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "accesses", opposite = "accessor", derived = true) - public Collection getAccesses() { - if (accesses == null) { - accesses = new MultivalueSet() { - @Override - protected void clearOpposite(TAccess e) { - e.setAccessor(null); - } - @Override - protected void setOpposite(TAccess e) { - e.setAccessor(Function.this); - } - }; - } - return accesses; - } - - public void setAccesses(Collection accesses) { - this.getAccesses().clear(); - this.getAccesses().addAll(accesses); - } - - - public void addAccesses(TAccess one) { - this.getAccesses().add(one); - } - - public void addAccesses(TAccess one, TAccess... many) { - this.getAccesses().add(one); - for (TAccess each : many) - this.getAccesses().add(each); - } - - public void addAccesses(Iterable many) { - for (TAccess each : many) - this.getAccesses().add(each); - } - - public void addAccesses(TAccess[] many) { - for (TAccess each : many) - this.getAccesses().add(each); - } - - public int numberOfAccesses() { - return getAccesses().size(); - } - - public boolean hasAccesses() { - return !getAccesses().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType() { - return declaredType; - } - - public void setDeclaredType(TType declaredType) { - if (this.declaredType != null) { - if (this.declaredType.equals(declaredType)) return; - this.declaredType.getTypedEntities().remove(this); - } - this.declaredType = declaredType; - if (declaredType == null) return; - declaredType.getTypedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "functionOwner", opposite = "functions", container = true) - public TWithFunctions getFunctionOwner() { - return functionOwner; - } - - public void setFunctionOwner(TWithFunctions functionOwner) { - if (this.functionOwner != null) { - if (this.functionOwner.equals(functionOwner)) return; - this.functionOwner.getFunctions().remove(this); - } - this.functionOwner = functionOwner; - if (functionOwner == null) return; - functionOwner.getFunctions().add(this); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalClients", derived = true) - public Number getNumberOfExternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalProviders", derived = true) - public Number getNumberOfExternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalClients", derived = true) - public Number getNumberOfInternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalProviders", derived = true) - public Number getNumberOfInternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfOutgoingInvocations", derived = true) - public Number getNumberOfOutgoingInvocations() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfParameters", derived = true) - public Number getNumberOfParameters() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfStatements", derived = true) - public Number getNumberOfStatements() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "outgoingInvocations", opposite = "sender", derived = true) - public Collection getOutgoingInvocations() { - if (outgoingInvocations == null) { - outgoingInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocation e) { - e.setSender(null); - } - @Override - protected void setOpposite(TInvocation e) { - e.setSender(Function.this); - } - }; - } - return outgoingInvocations; - } - - public void setOutgoingInvocations(Collection outgoingInvocations) { - this.getOutgoingInvocations().clear(); - this.getOutgoingInvocations().addAll(outgoingInvocations); - } - - - public void addOutgoingInvocations(TInvocation one) { - this.getOutgoingInvocations().add(one); - } - - public void addOutgoingInvocations(TInvocation one, TInvocation... many) { - this.getOutgoingInvocations().add(one); - for (TInvocation each : many) - this.getOutgoingInvocations().add(each); - } - - public void addOutgoingInvocations(Iterable many) { - for (TInvocation each : many) - this.getOutgoingInvocations().add(each); - } - - public void addOutgoingInvocations(TInvocation[] many) { - for (TInvocation each : many) - this.getOutgoingInvocations().add(each); - } - - public int numberOfOutgoingInvocations() { - return getOutgoingInvocations().size(); - } - - public boolean hasOutgoingInvocations() { - return !getOutgoingInvocations().isEmpty(); - } - - @FameProperty(name = "outgoingReferences", opposite = "referencer", derived = true) - public Collection getOutgoingReferences() { - if (outgoingReferences == null) { - outgoingReferences = new MultivalueSet() { - @Override - protected void clearOpposite(TReference e) { - e.setReferencer(null); - } - @Override - protected void setOpposite(TReference e) { - e.setReferencer(Function.this); - } - }; - } - return outgoingReferences; - } - - public void setOutgoingReferences(Collection outgoingReferences) { - this.getOutgoingReferences().clear(); - this.getOutgoingReferences().addAll(outgoingReferences); - } - - - public void addOutgoingReferences(TReference one) { - this.getOutgoingReferences().add(one); - } - - public void addOutgoingReferences(TReference one, TReference... many) { - this.getOutgoingReferences().add(one); - for (TReference each : many) - this.getOutgoingReferences().add(each); - } - - public void addOutgoingReferences(Iterable many) { - for (TReference each : many) - this.getOutgoingReferences().add(each); - } - - public void addOutgoingReferences(TReference[] many) { - for (TReference each : many) - this.getOutgoingReferences().add(each); - } - - public int numberOfOutgoingReferences() { - return getOutgoingReferences().size(); - } - - public boolean hasOutgoingReferences() { - return !getOutgoingReferences().isEmpty(); - } - - @FameProperty(name = "parameters", opposite = "parentBehaviouralEntity", derived = true) - public Collection getParameters() { - if (parameters == null) { - parameters = new MultivalueSet() { - @Override - protected void clearOpposite(TParameter e) { - e.setParentBehaviouralEntity(null); - } - @Override - protected void setOpposite(TParameter e) { - e.setParentBehaviouralEntity(Function.this); - } - }; - } - return parameters; - } - - public void setParameters(Collection parameters) { - this.getParameters().clear(); - this.getParameters().addAll(parameters); - } - - - public void addParameters(TParameter one) { - this.getParameters().add(one); - } - - public void addParameters(TParameter one, TParameter... many) { - this.getParameters().add(one); - for (TParameter each : many) - this.getParameters().add(each); - } - - public void addParameters(Iterable many) { - for (TParameter each : many) - this.getParameters().add(each); - } - - public void addParameters(TParameter[] many) { - for (TParameter each : many) - this.getParameters().add(each); - } - - public int numberOfParameters() { - return getParameters().size(); - } - - public boolean hasParameters() { - return !getParameters().isEmpty(); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "signature") - public String getSignature() { - return signature; - } - - public void setSignature(String signature) { - this.signature = signature; - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/GlobalVar.java b/gen/org/moosetechnology/model/famix/famixcentities/GlobalVar.java deleted file mode 100644 index fcfae07..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/GlobalVar.java +++ /dev/null @@ -1,289 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TAccessible; -import org.moosetechnology.model.famix.famixtraits.TGlobalVariable; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.famixtraits.TWithGlobalVariables; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-C-Entities") -@FameDescription("GlobalVar") -public class GlobalVar extends Entity implements TAccessible, TEntityMetaLevelDependency, TGlobalVariable, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity { - - private TType declaredType; - - private Collection incomingAccesses; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TWithGlobalVariables parentScope; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "accessors", derived = true) - public Collection getAccessors() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType() { - return declaredType; - } - - public void setDeclaredType(TType declaredType) { - if (this.declaredType != null) { - if (this.declaredType.equals(declaredType)) return; - this.declaredType.getTypedEntities().remove(this); - } - this.declaredType = declaredType; - if (declaredType == null) return; - declaredType.getTypedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingAccesses", opposite = "variable", derived = true) - public Collection getIncomingAccesses() { - if (incomingAccesses == null) { - incomingAccesses = new MultivalueSet() { - @Override - protected void clearOpposite(TAccess e) { - e.setVariable(null); - } - @Override - protected void setOpposite(TAccess e) { - e.setVariable(GlobalVar.this); - } - }; - } - return incomingAccesses; - } - - public void setIncomingAccesses(Collection incomingAccesses) { - this.getIncomingAccesses().clear(); - this.getIncomingAccesses().addAll(incomingAccesses); - } - - - public void addIncomingAccesses(TAccess one) { - this.getIncomingAccesses().add(one); - } - - public void addIncomingAccesses(TAccess one, TAccess... many) { - this.getIncomingAccesses().add(one); - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(Iterable many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(TAccess[] many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public int numberOfIncomingAccesses() { - return getIncomingAccesses().size(); - } - - public boolean hasIncomingAccesses() { - return !getIncomingAccesses().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAccesses", derived = true) - public Number getNumberOfAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingClasses", derived = true) - public Number getNumberOfAccessingClasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingMethods", derived = true) - public Number getNumberOfAccessingMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalClients", derived = true) - public Number getNumberOfExternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalProviders", derived = true) - public Number getNumberOfExternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfGlobalAccesses", derived = true) - public Number getNumberOfGlobalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalClients", derived = true) - public Number getNumberOfInternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalProviders", derived = true) - public Number getNumberOfInternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLocalAccesses", derived = true) - public Number getNumberOfLocalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parentScope", opposite = "globalVariables", container = true) - public TWithGlobalVariables getParentScope() { - return parentScope; - } - - public void setParentScope(TWithGlobalVariables parentScope) { - if (this.parentScope != null) { - if (this.parentScope.equals(parentScope)) return; - this.parentScope.getGlobalVariables().remove(this); - } - this.parentScope = parentScope; - if (parentScope == null) return; - parentScope.getGlobalVariables().add(this); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/Invocation.java b/gen/org/moosetechnology/model/famix/famixcentities/Invocation.java deleted file mode 100644 index 3874fab..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/Invocation.java +++ /dev/null @@ -1,215 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAssociation; -import org.moosetechnology.model.famix.famixtraits.TInvocable; -import org.moosetechnology.model.famix.famixtraits.TInvocation; -import org.moosetechnology.model.famix.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TWithInvocations; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("Famix-C-Entities") -@FameDescription("Invocation") -public class Invocation extends Entity implements TAssociation, TAssociationMetaLevelDependency, TInvocation, TSourceEntity { - - private Collection candidates; - - private Boolean isStub; - - private TAssociation next; - - private Number numberOfLinesOfCode; - - private TAssociation previous; - - private TInvocationsReceiver receiver; - - private TWithInvocations sender; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "candidates", opposite = "incomingInvocations") - public Collection getCandidates() { - if (candidates == null) { - candidates = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocable e) { - e.getIncomingInvocations().remove(Invocation.this); - } - @Override - protected void setOpposite(TInvocable e) { - e.getIncomingInvocations().add(Invocation.this); - } - }; - } - return candidates; - } - - public void setCandidates(Collection candidates) { - this.getCandidates().clear(); - this.getCandidates().addAll(candidates); - } - - public void addCandidates(TInvocable one) { - this.getCandidates().add(one); - } - - public void addCandidates(TInvocable one, TInvocable... many) { - this.getCandidates().add(one); - for (TInvocable each : many) - this.getCandidates().add(each); - } - - public void addCandidates(Iterable many) { - for (TInvocable each : many) - this.getCandidates().add(each); - } - - public void addCandidates(TInvocable[] many) { - for (TInvocable each : many) - this.getCandidates().add(each); - } - - public int numberOfCandidates() { - return getCandidates().size(); - } - - public boolean hasCandidates() { - return !getCandidates().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "next", opposite = "previous", derived = true) - public TAssociation getNext() { - return next; - } - - public void setNext(TAssociation next) { - if (this.next == null ? next != null : !this.next.equals(next)) { - TAssociation old_next = this.next; - this.next = next; - if (old_next != null) old_next.setPrevious(null); - if (next != null) next.setPrevious(this); - } - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "previous", opposite = "next") - public TAssociation getPrevious() { - return previous; - } - - public void setPrevious(TAssociation previous) { - if (this.previous == null ? previous != null : !this.previous.equals(previous)) { - TAssociation old_previous = this.previous; - this.previous = previous; - if (old_previous != null) old_previous.setNext(null); - if (previous != null) previous.setNext(this); - } - } - - @FameProperty(name = "receiver", opposite = "receivingInvocations") - public TInvocationsReceiver getReceiver() { - return receiver; - } - - public void setReceiver(TInvocationsReceiver receiver) { - if (this.receiver != null) { - if (this.receiver.equals(receiver)) return; - this.receiver.getReceivingInvocations().remove(this); - } - this.receiver = receiver; - if (receiver == null) return; - receiver.getReceivingInvocations().add(this); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sender", opposite = "outgoingInvocations") - public TWithInvocations getSender() { - return sender; - } - - public void setSender(TWithInvocations sender) { - if (this.sender != null) { - if (this.sender.equals(sender)) return; - this.sender.getOutgoingInvocations().remove(this); - } - this.sender = sender; - if (sender == null) return; - sender.getOutgoingInvocations().add(this); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/LocalVar.java b/gen/org/moosetechnology/model/famix/famixcentities/LocalVar.java deleted file mode 100644 index 4478022..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/LocalVar.java +++ /dev/null @@ -1,289 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TAccessible; -import org.moosetechnology.model.famix.famixtraits.TLocalVariable; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.famixtraits.TWithLocalVariables; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-C-Entities") -@FameDescription("LocalVar") -public class LocalVar extends Entity implements TAccessible, TEntityMetaLevelDependency, TLocalVariable, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity { - - private TType declaredType; - - private Collection incomingAccesses; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TWithLocalVariables parentBehaviouralEntity; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "accessors", derived = true) - public Collection getAccessors() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType() { - return declaredType; - } - - public void setDeclaredType(TType declaredType) { - if (this.declaredType != null) { - if (this.declaredType.equals(declaredType)) return; - this.declaredType.getTypedEntities().remove(this); - } - this.declaredType = declaredType; - if (declaredType == null) return; - declaredType.getTypedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingAccesses", opposite = "variable", derived = true) - public Collection getIncomingAccesses() { - if (incomingAccesses == null) { - incomingAccesses = new MultivalueSet() { - @Override - protected void clearOpposite(TAccess e) { - e.setVariable(null); - } - @Override - protected void setOpposite(TAccess e) { - e.setVariable(LocalVar.this); - } - }; - } - return incomingAccesses; - } - - public void setIncomingAccesses(Collection incomingAccesses) { - this.getIncomingAccesses().clear(); - this.getIncomingAccesses().addAll(incomingAccesses); - } - - - public void addIncomingAccesses(TAccess one) { - this.getIncomingAccesses().add(one); - } - - public void addIncomingAccesses(TAccess one, TAccess... many) { - this.getIncomingAccesses().add(one); - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(Iterable many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(TAccess[] many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public int numberOfIncomingAccesses() { - return getIncomingAccesses().size(); - } - - public boolean hasIncomingAccesses() { - return !getIncomingAccesses().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAccesses", derived = true) - public Number getNumberOfAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingClasses", derived = true) - public Number getNumberOfAccessingClasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingMethods", derived = true) - public Number getNumberOfAccessingMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalClients", derived = true) - public Number getNumberOfExternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalProviders", derived = true) - public Number getNumberOfExternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfGlobalAccesses", derived = true) - public Number getNumberOfGlobalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalClients", derived = true) - public Number getNumberOfInternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalProviders", derived = true) - public Number getNumberOfInternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLocalAccesses", derived = true) - public Number getNumberOfLocalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parentBehaviouralEntity", opposite = "localVariables", container = true) - public TWithLocalVariables getParentBehaviouralEntity() { - return parentBehaviouralEntity; - } - - public void setParentBehaviouralEntity(TWithLocalVariables parentBehaviouralEntity) { - if (this.parentBehaviouralEntity != null) { - if (this.parentBehaviouralEntity.equals(parentBehaviouralEntity)) return; - this.parentBehaviouralEntity.getLocalVariables().remove(this); - } - this.parentBehaviouralEntity = parentBehaviouralEntity; - if (parentBehaviouralEntity == null) return; - parentBehaviouralEntity.getLocalVariables().add(this); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/Parameter.java b/gen/org/moosetechnology/model/famix/famixcentities/Parameter.java deleted file mode 100644 index b159441..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/Parameter.java +++ /dev/null @@ -1,270 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TAccessible; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-C-Entities") -@FameDescription("Parameter") -public class Parameter extends Entity implements TAccessible, TEntityMetaLevelDependency, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity { - - private TType declaredType; - - private Collection incomingAccesses; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "accessors", derived = true) - public Collection getAccessors() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType() { - return declaredType; - } - - public void setDeclaredType(TType declaredType) { - if (this.declaredType != null) { - if (this.declaredType.equals(declaredType)) return; - this.declaredType.getTypedEntities().remove(this); - } - this.declaredType = declaredType; - if (declaredType == null) return; - declaredType.getTypedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingAccesses", opposite = "variable", derived = true) - public Collection getIncomingAccesses() { - if (incomingAccesses == null) { - incomingAccesses = new MultivalueSet() { - @Override - protected void clearOpposite(TAccess e) { - e.setVariable(null); - } - @Override - protected void setOpposite(TAccess e) { - e.setVariable(Parameter.this); - } - }; - } - return incomingAccesses; - } - - public void setIncomingAccesses(Collection incomingAccesses) { - this.getIncomingAccesses().clear(); - this.getIncomingAccesses().addAll(incomingAccesses); - } - - - public void addIncomingAccesses(TAccess one) { - this.getIncomingAccesses().add(one); - } - - public void addIncomingAccesses(TAccess one, TAccess... many) { - this.getIncomingAccesses().add(one); - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(Iterable many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(TAccess[] many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public int numberOfIncomingAccesses() { - return getIncomingAccesses().size(); - } - - public boolean hasIncomingAccesses() { - return !getIncomingAccesses().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAccesses", derived = true) - public Number getNumberOfAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingClasses", derived = true) - public Number getNumberOfAccessingClasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingMethods", derived = true) - public Number getNumberOfAccessingMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalClients", derived = true) - public Number getNumberOfExternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalProviders", derived = true) - public Number getNumberOfExternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfGlobalAccesses", derived = true) - public Number getNumberOfGlobalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalClients", derived = true) - public Number getNumberOfInternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalProviders", derived = true) - public Number getNumberOfInternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLocalAccesses", derived = true) - public Number getNumberOfLocalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/PrimitiveType.java b/gen/org/moosetechnology/model/famix/famixcentities/PrimitiveType.java deleted file mode 100644 index 5b52240..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/PrimitiveType.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Famix-C-Entities") -@FameDescription("PrimitiveType") -public class PrimitiveType extends Type { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/Reference.java b/gen/org/moosetechnology/model/famix/famixcentities/Reference.java deleted file mode 100644 index 58ba27b..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/Reference.java +++ /dev/null @@ -1,160 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAssociation; -import org.moosetechnology.model.famix.famixtraits.TReference; -import org.moosetechnology.model.famix.famixtraits.TReferenceable; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TWithReferences; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("Famix-C-Entities") -@FameDescription("Reference") -public class Reference extends Entity implements TAssociation, TAssociationMetaLevelDependency, TReference, TSourceEntity { - - private Boolean isStub; - - private TAssociation next; - - private Number numberOfLinesOfCode; - - private TAssociation previous; - - private TWithReferences referencer; - - private TReferenceable referredType; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "next", opposite = "previous", derived = true) - public TAssociation getNext() { - return next; - } - - public void setNext(TAssociation next) { - if (this.next == null ? next != null : !this.next.equals(next)) { - TAssociation old_next = this.next; - this.next = next; - if (old_next != null) old_next.setPrevious(null); - if (next != null) next.setPrevious(this); - } - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "previous", opposite = "next") - public TAssociation getPrevious() { - return previous; - } - - public void setPrevious(TAssociation previous) { - if (this.previous == null ? previous != null : !this.previous.equals(previous)) { - TAssociation old_previous = this.previous; - this.previous = previous; - if (old_previous != null) old_previous.setNext(null); - if (previous != null) previous.setNext(this); - } - } - - @FameProperty(name = "referencer", opposite = "outgoingReferences") - public TWithReferences getReferencer() { - return referencer; - } - - public void setReferencer(TWithReferences referencer) { - if (this.referencer != null) { - if (this.referencer.equals(referencer)) return; - this.referencer.getOutgoingReferences().remove(this); - } - this.referencer = referencer; - if (referencer == null) return; - referencer.getOutgoingReferences().add(this); - } - - @FameProperty(name = "referredType", opposite = "incomingReferences") - public TReferenceable getReferredType() { - return referredType; - } - - public void setReferredType(TReferenceable referredType) { - if (this.referredType != null) { - if (this.referredType.equals(referredType)) return; - this.referredType.getIncomingReferences().remove(this); - } - this.referredType = referredType; - if (referredType == null) return; - referredType.getIncomingReferences().add(this); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/Struct.java b/gen/org/moosetechnology/model/famix/famixcentities/Struct.java deleted file mode 100644 index 7d7b339..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/Struct.java +++ /dev/null @@ -1,148 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixtraits.TAttribute; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TWithAttributes; -import org.moosetechnology.model.famix.famixtraits.TWithComments; - - -@FamePackage("Famix-C-Entities") -@FameDescription("Struct") -public class Struct extends Type implements TWithAttributes, TWithComments { - - private Collection attributes; - - private Collection comments; - - - - @FameProperty(name = "attributes", opposite = "parentType", derived = true) - public Collection getAttributes() { - if (attributes == null) { - attributes = new MultivalueSet() { - @Override - protected void clearOpposite(TAttribute e) { - e.setParentType(null); - } - @Override - protected void setOpposite(TAttribute e) { - e.setParentType(Struct.this); - } - }; - } - return attributes; - } - - public void setAttributes(Collection attributes) { - this.getAttributes().clear(); - this.getAttributes().addAll(attributes); - } - - - public void addAttributes(TAttribute one) { - this.getAttributes().add(one); - } - - public void addAttributes(TAttribute one, TAttribute... many) { - this.getAttributes().add(one); - for (TAttribute each : many) - this.getAttributes().add(each); - } - - public void addAttributes(Iterable many) { - for (TAttribute each : many) - this.getAttributes().add(each); - } - - public void addAttributes(TAttribute[] many) { - for (TAttribute each : many) - this.getAttributes().add(each); - } - - public int numberOfAttributes() { - return getAttributes().size(); - } - - public boolean hasAttributes() { - return !getAttributes().isEmpty(); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(Struct.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAttributes", derived = true) - public Number getNumberOfAttributes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/Type.java b/gen/org/moosetechnology/model/famix/famixcentities/Type.java deleted file mode 100644 index a3606f3..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/Type.java +++ /dev/null @@ -1,341 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TReference; -import org.moosetechnology.model.famix.famixtraits.TReferenceable; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypeAlias; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithTypeAliases; -import org.moosetechnology.model.famix.famixtraits.TWithTypes; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-C-Entities") -@FameDescription("Type") -public class Type extends Entity implements TEntityMetaLevelDependency, TNamedEntity, TReferenceable, TSourceEntity, TType, TWithTypeAliases { - - private Collection incomingReferences; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TSourceAnchor sourceAnchor; - - private Collection typeAliases; - - private TWithTypes typeContainer; - - private Collection typedEntities; - - - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingReferences", opposite = "referredType", derived = true) - public Collection getIncomingReferences() { - if (incomingReferences == null) { - incomingReferences = new MultivalueSet() { - @Override - protected void clearOpposite(TReference e) { - e.setReferredType(null); - } - @Override - protected void setOpposite(TReference e) { - e.setReferredType(Type.this); - } - }; - } - return incomingReferences; - } - - public void setIncomingReferences(Collection incomingReferences) { - this.getIncomingReferences().clear(); - this.getIncomingReferences().addAll(incomingReferences); - } - - - public void addIncomingReferences(TReference one) { - this.getIncomingReferences().add(one); - } - - public void addIncomingReferences(TReference one, TReference... many) { - this.getIncomingReferences().add(one); - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public void addIncomingReferences(Iterable many) { - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public void addIncomingReferences(TReference[] many) { - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public int numberOfIncomingReferences() { - return getIncomingReferences().size(); - } - - public boolean hasIncomingReferences() { - return !getIncomingReferences().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalClients", derived = true) - public Number getNumberOfExternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalProviders", derived = true) - public Number getNumberOfExternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalClients", derived = true) - public Number getNumberOfInternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalProviders", derived = true) - public Number getNumberOfInternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "typeAliases", opposite = "aliasedType", derived = true) - public Collection getTypeAliases() { - if (typeAliases == null) { - typeAliases = new MultivalueSet() { - @Override - protected void clearOpposite(TTypeAlias e) { - e.setAliasedType(null); - } - @Override - protected void setOpposite(TTypeAlias e) { - e.setAliasedType(Type.this); - } - }; - } - return typeAliases; - } - - public void setTypeAliases(Collection typeAliases) { - this.getTypeAliases().clear(); - this.getTypeAliases().addAll(typeAliases); - } - - - public void addTypeAliases(TTypeAlias one) { - this.getTypeAliases().add(one); - } - - public void addTypeAliases(TTypeAlias one, TTypeAlias... many) { - this.getTypeAliases().add(one); - for (TTypeAlias each : many) - this.getTypeAliases().add(each); - } - - public void addTypeAliases(Iterable many) { - for (TTypeAlias each : many) - this.getTypeAliases().add(each); - } - - public void addTypeAliases(TTypeAlias[] many) { - for (TTypeAlias each : many) - this.getTypeAliases().add(each); - } - - public int numberOfTypeAliases() { - return getTypeAliases().size(); - } - - public boolean hasTypeAliases() { - return !getTypeAliases().isEmpty(); - } - - @FameProperty(name = "typeContainer", opposite = "types", container = true) - public TWithTypes getTypeContainer() { - return typeContainer; - } - - public void setTypeContainer(TWithTypes typeContainer) { - if (this.typeContainer != null) { - if (this.typeContainer.equals(typeContainer)) return; - this.typeContainer.getTypes().remove(this); - } - this.typeContainer = typeContainer; - if (typeContainer == null) return; - typeContainer.getTypes().add(this); - } - - @FameProperty(name = "typedEntities", opposite = "declaredType", derived = true) - public Collection getTypedEntities() { - if (typedEntities == null) { - typedEntities = new MultivalueSet() { - @Override - protected void clearOpposite(TTypedEntity e) { - e.setDeclaredType(null); - } - @Override - protected void setOpposite(TTypedEntity e) { - e.setDeclaredType(Type.this); - } - }; - } - return typedEntities; - } - - public void setTypedEntities(Collection typedEntities) { - this.getTypedEntities().clear(); - this.getTypedEntities().addAll(typedEntities); - } - - - public void addTypedEntities(TTypedEntity one) { - this.getTypedEntities().add(one); - } - - public void addTypedEntities(TTypedEntity one, TTypedEntity... many) { - this.getTypedEntities().add(one); - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public void addTypedEntities(Iterable many) { - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public void addTypedEntities(TTypedEntity[] many) { - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public int numberOfTypedEntities() { - return getTypedEntities().size(); - } - - public boolean hasTypedEntities() { - return !getTypedEntities().isEmpty(); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/Union.java b/gen/org/moosetechnology/model/famix/famixcentities/Union.java deleted file mode 100644 index 969f002..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/Union.java +++ /dev/null @@ -1,148 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixtraits.TAttribute; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TWithAttributes; -import org.moosetechnology.model.famix.famixtraits.TWithComments; - - -@FamePackage("Famix-C-Entities") -@FameDescription("Union") -public class Union extends Type implements TWithAttributes, TWithComments { - - private Collection attributes; - - private Collection comments; - - - - @FameProperty(name = "attributes", opposite = "parentType", derived = true) - public Collection getAttributes() { - if (attributes == null) { - attributes = new MultivalueSet() { - @Override - protected void clearOpposite(TAttribute e) { - e.setParentType(null); - } - @Override - protected void setOpposite(TAttribute e) { - e.setParentType(Union.this); - } - }; - } - return attributes; - } - - public void setAttributes(Collection attributes) { - this.getAttributes().clear(); - this.getAttributes().addAll(attributes); - } - - - public void addAttributes(TAttribute one) { - this.getAttributes().add(one); - } - - public void addAttributes(TAttribute one, TAttribute... many) { - this.getAttributes().add(one); - for (TAttribute each : many) - this.getAttributes().add(each); - } - - public void addAttributes(Iterable many) { - for (TAttribute each : many) - this.getAttributes().add(each); - } - - public void addAttributes(TAttribute[] many) { - for (TAttribute each : many) - this.getAttributes().add(each); - } - - public int numberOfAttributes() { - return getAttributes().size(); - } - - public boolean hasAttributes() { - return !getAttributes().isEmpty(); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(Union.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAttributes", derived = true) - public Number getNumberOfAttributes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcentities/UnknownBehaviour.java b/gen/org/moosetechnology/model/famix/famixcentities/UnknownBehaviour.java deleted file mode 100644 index 7d527ae..0000000 --- a/gen/org/moosetechnology/model/famix/famixcentities/UnknownBehaviour.java +++ /dev/null @@ -1,30 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; - - -@FamePackage("Famix-C-Entities") -@FameDescription("UnknownBehaviour") -public class UnknownBehaviour extends Entity implements TNamedEntity { - - private String name; - - - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcppnewentities/Class.java b/gen/org/moosetechnology/model/famix/famixcppnewentities/Class.java deleted file mode 100644 index 533f45a..0000000 --- a/gen/org/moosetechnology/model/famix/famixcppnewentities/Class.java +++ /dev/null @@ -1,713 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcppnewentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixcentities.Type; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAttribute; -import org.moosetechnology.model.famix.famixtraits.TClass; -import org.moosetechnology.model.famix.famixtraits.TComment; -import org.moosetechnology.model.famix.famixtraits.TInheritance; -import org.moosetechnology.model.famix.famixtraits.TInvocation; -import org.moosetechnology.model.famix.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famix.famixtraits.TMethod; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TPackage; -import org.moosetechnology.model.famix.famixtraits.TPackageable; -import org.moosetechnology.model.famix.famixtraits.TReference; -import org.moosetechnology.model.famix.famixtraits.TReferenceable; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAttributes; -import org.moosetechnology.model.famix.famixtraits.TWithComments; -import org.moosetechnology.model.famix.famixtraits.TWithInheritances; -import org.moosetechnology.model.famix.famixtraits.TWithMethods; -import org.moosetechnology.model.famix.famixtraits.TWithTypes; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-CppNew-Entities") -@FameDescription("Class") -public class Class extends Type implements TClass, TEntityMetaLevelDependency, TInvocationsReceiver, TNamedEntity, TPackageable, TReferenceable, TSourceEntity, TType, TWithAttributes, TWithComments, TWithInheritances, TWithMethods { - - private Collection attributes; - - private Collection comments; - - private Collection incomingReferences; - - private Boolean isStub; - - private Collection methods; - - private String name; - - private Number numberOfLinesOfCode; - - private TPackage parentPackage; - - private Collection receivingInvocations; - - private TSourceAnchor sourceAnchor; - - private Collection subInheritances; - - private Collection superInheritances; - - private TWithTypes typeContainer; - - private Collection typedEntities; - - - - @FameProperty(name = "attributes", opposite = "parentType", derived = true) - public Collection getAttributes() { - if (attributes == null) { - attributes = new MultivalueSet() { - @Override - protected void clearOpposite(TAttribute e) { - e.setParentType(null); - } - @Override - protected void setOpposite(TAttribute e) { - e.setParentType(Class.this); - } - }; - } - return attributes; - } - - public void setAttributes(Collection attributes) { - this.getAttributes().clear(); - this.getAttributes().addAll(attributes); - } - - - public void addAttributes(TAttribute one) { - this.getAttributes().add(one); - } - - public void addAttributes(TAttribute one, TAttribute... many) { - this.getAttributes().add(one); - for (TAttribute each : many) - this.getAttributes().add(each); - } - - public void addAttributes(Iterable many) { - for (TAttribute each : many) - this.getAttributes().add(each); - } - - public void addAttributes(TAttribute[] many) { - for (TAttribute each : many) - this.getAttributes().add(each); - } - - public int numberOfAttributes() { - return getAttributes().size(); - } - - public boolean hasAttributes() { - return !getAttributes().isEmpty(); - } - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments() { - if (comments == null) { - comments = new MultivalueSet() { - @Override - protected void clearOpposite(TComment e) { - e.setContainer(null); - } - @Override - protected void setOpposite(TComment e) { - e.setContainer(Class.this); - } - }; - } - return comments; - } - - public void setComments(Collection comments) { - this.getComments().clear(); - this.getComments().addAll(comments); - } - - - public void addComments(TComment one) { - this.getComments().add(one); - } - - public void addComments(TComment one, TComment... many) { - this.getComments().add(one); - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(Iterable many) { - for (TComment each : many) - this.getComments().add(each); - } - - public void addComments(TComment[] many) { - for (TComment each : many) - this.getComments().add(each); - } - - public int numberOfComments() { - return getComments().size(); - } - - public boolean hasComments() { - return !getComments().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hierarchyNestingLevel", derived = true) - public Number getHierarchyNestingLevel() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingReferences", opposite = "referredType", derived = true) - public Collection getIncomingReferences() { - if (incomingReferences == null) { - incomingReferences = new MultivalueSet() { - @Override - protected void clearOpposite(TReference e) { - e.setReferredType(null); - } - @Override - protected void setOpposite(TReference e) { - e.setReferredType(Class.this); - } - }; - } - return incomingReferences; - } - - public void setIncomingReferences(Collection incomingReferences) { - this.getIncomingReferences().clear(); - this.getIncomingReferences().addAll(incomingReferences); - } - - - public void addIncomingReferences(TReference one) { - this.getIncomingReferences().add(one); - } - - public void addIncomingReferences(TReference one, TReference... many) { - this.getIncomingReferences().add(one); - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public void addIncomingReferences(Iterable many) { - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public void addIncomingReferences(TReference[] many) { - for (TReference each : many) - this.getIncomingReferences().add(each); - } - - public int numberOfIncomingReferences() { - return getIncomingReferences().size(); - } - - public boolean hasIncomingReferences() { - return !getIncomingReferences().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "isTestCase", derived = true) - public Boolean getIsTestCase() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "methods", opposite = "parentType", derived = true) - public Collection getMethods() { - if (methods == null) { - methods = new MultivalueSet() { - @Override - protected void clearOpposite(TMethod e) { - e.setParentType(null); - } - @Override - protected void setOpposite(TMethod e) { - e.setParentType(Class.this); - } - }; - } - return methods; - } - - public void setMethods(Collection methods) { - this.getMethods().clear(); - this.getMethods().addAll(methods); - } - - - public void addMethods(TMethod one) { - this.getMethods().add(one); - } - - public void addMethods(TMethod one, TMethod... many) { - this.getMethods().add(one); - for (TMethod each : many) - this.getMethods().add(each); - } - - public void addMethods(Iterable many) { - for (TMethod each : many) - this.getMethods().add(each); - } - - public void addMethods(TMethod[] many) { - for (TMethod each : many) - this.getMethods().add(each); - } - - public int numberOfMethods() { - return getMethods().size(); - } - - public boolean hasMethods() { - return !getMethods().isEmpty(); - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAbstractMethods", derived = true) - public Number getNumberOfAbstractMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAttributes", derived = true) - public Number getNumberOfAttributes() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDirectSubclasses", derived = true) - public Number getNumberOfDirectSubclasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalClients", derived = true) - public Number getNumberOfExternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalProviders", derived = true) - public Number getNumberOfExternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalClients", derived = true) - public Number getNumberOfInternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalProviders", derived = true) - public Number getNumberOfInternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfMethods", derived = true) - public Number getNumberOfMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfSubclasses", derived = true) - public Number getNumberOfSubclasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parentPackage", opposite = "childEntities", container = true) - public TPackage getParentPackage() { - return parentPackage; - } - - public void setParentPackage(TPackage parentPackage) { - if (this.parentPackage != null) { - if (this.parentPackage.equals(parentPackage)) return; - this.parentPackage.getChildEntities().remove(this); - } - this.parentPackage = parentPackage; - if (parentPackage == null) return; - parentPackage.getChildEntities().add(this); - } - - @FameProperty(name = "receivingInvocations", opposite = "receiver", derived = true) - public Collection getReceivingInvocations() { - if (receivingInvocations == null) { - receivingInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocation e) { - e.setReceiver(null); - } - @Override - protected void setOpposite(TInvocation e) { - e.setReceiver(Class.this); - } - }; - } - return receivingInvocations; - } - - public void setReceivingInvocations(Collection receivingInvocations) { - this.getReceivingInvocations().clear(); - this.getReceivingInvocations().addAll(receivingInvocations); - } - - - public void addReceivingInvocations(TInvocation one) { - this.getReceivingInvocations().add(one); - } - - public void addReceivingInvocations(TInvocation one, TInvocation... many) { - this.getReceivingInvocations().add(one); - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(Iterable many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public void addReceivingInvocations(TInvocation[] many) { - for (TInvocation each : many) - this.getReceivingInvocations().add(each); - } - - public int numberOfReceivingInvocations() { - return getReceivingInvocations().size(); - } - - public boolean hasReceivingInvocations() { - return !getReceivingInvocations().isEmpty(); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "subInheritances", opposite = "superclass", derived = true) - public Collection getSubInheritances() { - if (subInheritances == null) { - subInheritances = new MultivalueSet() { - @Override - protected void clearOpposite(TInheritance e) { - e.setSuperclass(null); - } - @Override - protected void setOpposite(TInheritance e) { - e.setSuperclass(Class.this); - } - }; - } - return subInheritances; - } - - public void setSubInheritances(Collection subInheritances) { - this.getSubInheritances().clear(); - this.getSubInheritances().addAll(subInheritances); - } - - - public void addSubInheritances(TInheritance one) { - this.getSubInheritances().add(one); - } - - public void addSubInheritances(TInheritance one, TInheritance... many) { - this.getSubInheritances().add(one); - for (TInheritance each : many) - this.getSubInheritances().add(each); - } - - public void addSubInheritances(Iterable many) { - for (TInheritance each : many) - this.getSubInheritances().add(each); - } - - public void addSubInheritances(TInheritance[] many) { - for (TInheritance each : many) - this.getSubInheritances().add(each); - } - - public int numberOfSubInheritances() { - return getSubInheritances().size(); - } - - public boolean hasSubInheritances() { - return !getSubInheritances().isEmpty(); - } - - @FameProperty(name = "subclassHierarchyDepth", derived = true) - public Number getSubclassHierarchyDepth() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "superInheritances", opposite = "subclass", derived = true) - public Collection getSuperInheritances() { - if (superInheritances == null) { - superInheritances = new MultivalueSet() { - @Override - protected void clearOpposite(TInheritance e) { - e.setSubclass(null); - } - @Override - protected void setOpposite(TInheritance e) { - e.setSubclass(Class.this); - } - }; - } - return superInheritances; - } - - public void setSuperInheritances(Collection superInheritances) { - this.getSuperInheritances().clear(); - this.getSuperInheritances().addAll(superInheritances); - } - - - public void addSuperInheritances(TInheritance one) { - this.getSuperInheritances().add(one); - } - - public void addSuperInheritances(TInheritance one, TInheritance... many) { - this.getSuperInheritances().add(one); - for (TInheritance each : many) - this.getSuperInheritances().add(each); - } - - public void addSuperInheritances(Iterable many) { - for (TInheritance each : many) - this.getSuperInheritances().add(each); - } - - public void addSuperInheritances(TInheritance[] many) { - for (TInheritance each : many) - this.getSuperInheritances().add(each); - } - - public int numberOfSuperInheritances() { - return getSuperInheritances().size(); - } - - public boolean hasSuperInheritances() { - return !getSuperInheritances().isEmpty(); - } - - @FameProperty(name = "tightClassCohesion", derived = true) - public Number getTightClassCohesion() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "typeContainer", opposite = "types", container = true) - public TWithTypes getTypeContainer() { - return typeContainer; - } - - public void setTypeContainer(TWithTypes typeContainer) { - if (this.typeContainer != null) { - if (this.typeContainer.equals(typeContainer)) return; - this.typeContainer.getTypes().remove(this); - } - this.typeContainer = typeContainer; - if (typeContainer == null) return; - typeContainer.getTypes().add(this); - } - - @FameProperty(name = "typedEntities", opposite = "declaredType", derived = true) - public Collection getTypedEntities() { - if (typedEntities == null) { - typedEntities = new MultivalueSet() { - @Override - protected void clearOpposite(TTypedEntity e) { - e.setDeclaredType(null); - } - @Override - protected void setOpposite(TTypedEntity e) { - e.setDeclaredType(Class.this); - } - }; - } - return typedEntities; - } - - public void setTypedEntities(Collection typedEntities) { - this.getTypedEntities().clear(); - this.getTypedEntities().addAll(typedEntities); - } - - - public void addTypedEntities(TTypedEntity one) { - this.getTypedEntities().add(one); - } - - public void addTypedEntities(TTypedEntity one, TTypedEntity... many) { - this.getTypedEntities().add(one); - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public void addTypedEntities(Iterable many) { - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public void addTypedEntities(TTypedEntity[] many) { - for (TTypedEntity each : many) - this.getTypedEntities().add(each); - } - - public int numberOfTypedEntities() { - return getTypedEntities().size(); - } - - public boolean hasTypedEntities() { - return !getTypedEntities().isEmpty(); - } - - @FameProperty(name = "weightOfAClass", derived = true) - public Number getWeightOfAClass() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "weightedMethodCount", derived = true) - public Number getWeightedMethodCount() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcppnewentities/CppNewModel.java b/gen/org/moosetechnology/model/famix/famixcppnewentities/CppNewModel.java deleted file mode 100644 index 6d4d10e..0000000 --- a/gen/org/moosetechnology/model/famix/famixcppnewentities/CppNewModel.java +++ /dev/null @@ -1,18 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcppnewentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moose.Model; - - -@FamePackage("Famix-CppNew-Entities") -@FameDescription("CppNewModel") -public class CppNewModel extends Model { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcppnewentities/Entity.java b/gen/org/moosetechnology/model/famix/famixcppnewentities/Entity.java deleted file mode 100644 index 9d17b40..0000000 --- a/gen/org/moosetechnology/model/famix/famixcppnewentities/Entity.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcppnewentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Famix-CppNew-Entities") -@FameDescription("Entity") -public class Entity extends org.moosetechnology.model.famix.moose.Entity { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcppnewentities/FamixCppNewEntitiesModel.java b/gen/org/moosetechnology/model/famix/famixcppnewentities/FamixCppNewEntitiesModel.java deleted file mode 100644 index 5b7a174..0000000 --- a/gen/org/moosetechnology/model/famix/famixcppnewentities/FamixCppNewEntitiesModel.java +++ /dev/null @@ -1,26 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcppnewentities; - -import ch.akuhn.fame.MetaRepository; - -public class FamixCppNewEntitiesModel { - - public static MetaRepository metamodel() { - MetaRepository metamodel = new MetaRepository(); - importInto(metamodel); - return metamodel; - } - - public static void importInto(MetaRepository metamodel) { - metamodel.with(org.moosetechnology.model.famix.famixcppnewentities.Class.class); - metamodel.with(org.moosetechnology.model.famix.famixcppnewentities.CppNewModel.class); - metamodel.with(org.moosetechnology.model.famix.famixcppnewentities.Entity.class); - metamodel.with(org.moosetechnology.model.famix.famixcppnewentities.ImplicitVar.class); - metamodel.with(org.moosetechnology.model.famix.famixcppnewentities.Inheritance.class); - metamodel.with(org.moosetechnology.model.famix.famixcppnewentities.Method.class); - metamodel.with(org.moosetechnology.model.famix.famixcppnewentities.Namespace.class); - - } - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcppnewentities/ImplicitVar.java b/gen/org/moosetechnology/model/famix/famixcppnewentities/ImplicitVar.java deleted file mode 100644 index e8bb4f2..0000000 --- a/gen/org/moosetechnology/model/famix/famixcppnewentities/ImplicitVar.java +++ /dev/null @@ -1,289 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcppnewentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.TAccessible; -import org.moosetechnology.model.famix.famixtraits.TImplicitVariable; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.famixtraits.TWithImplicitVariables; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-CppNew-Entities") -@FameDescription("ImplicitVar") -public class ImplicitVar extends Entity implements TAccessible, TEntityMetaLevelDependency, TImplicitVariable, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity { - - private TType declaredType; - - private Collection incomingAccesses; - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TWithImplicitVariables parentBehaviouralEntity; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "accessors", derived = true) - public Collection getAccessors() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType() { - return declaredType; - } - - public void setDeclaredType(TType declaredType) { - if (this.declaredType != null) { - if (this.declaredType.equals(declaredType)) return; - this.declaredType.getTypedEntities().remove(this); - } - this.declaredType = declaredType; - if (declaredType == null) return; - declaredType.getTypedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "incomingAccesses", opposite = "variable", derived = true) - public Collection getIncomingAccesses() { - if (incomingAccesses == null) { - incomingAccesses = new MultivalueSet() { - @Override - protected void clearOpposite(TAccess e) { - e.setVariable(null); - } - @Override - protected void setOpposite(TAccess e) { - e.setVariable(ImplicitVar.this); - } - }; - } - return incomingAccesses; - } - - public void setIncomingAccesses(Collection incomingAccesses) { - this.getIncomingAccesses().clear(); - this.getIncomingAccesses().addAll(incomingAccesses); - } - - - public void addIncomingAccesses(TAccess one) { - this.getIncomingAccesses().add(one); - } - - public void addIncomingAccesses(TAccess one, TAccess... many) { - this.getIncomingAccesses().add(one); - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(Iterable many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public void addIncomingAccesses(TAccess[] many) { - for (TAccess each : many) - this.getIncomingAccesses().add(each); - } - - public int numberOfIncomingAccesses() { - return getIncomingAccesses().size(); - } - - public boolean hasIncomingAccesses() { - return !getIncomingAccesses().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAccesses", derived = true) - public Number getNumberOfAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingClasses", derived = true) - public Number getNumberOfAccessingClasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfAccessingMethods", derived = true) - public Number getNumberOfAccessingMethods() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalClients", derived = true) - public Number getNumberOfExternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalProviders", derived = true) - public Number getNumberOfExternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfGlobalAccesses", derived = true) - public Number getNumberOfGlobalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalClients", derived = true) - public Number getNumberOfInternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalProviders", derived = true) - public Number getNumberOfInternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLocalAccesses", derived = true) - public Number getNumberOfLocalAccesses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "parentBehaviouralEntity", opposite = "implicitVariables", container = true) - public TWithImplicitVariables getParentBehaviouralEntity() { - return parentBehaviouralEntity; - } - - public void setParentBehaviouralEntity(TWithImplicitVariables parentBehaviouralEntity) { - if (this.parentBehaviouralEntity != null) { - if (this.parentBehaviouralEntity.equals(parentBehaviouralEntity)) return; - this.parentBehaviouralEntity.getImplicitVariables().remove(this); - } - this.parentBehaviouralEntity = parentBehaviouralEntity; - if (parentBehaviouralEntity == null) return; - parentBehaviouralEntity.getImplicitVariables().add(this); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcppnewentities/Inheritance.java b/gen/org/moosetechnology/model/famix/famixcppnewentities/Inheritance.java deleted file mode 100644 index 940d9a0..0000000 --- a/gen/org/moosetechnology/model/famix/famixcppnewentities/Inheritance.java +++ /dev/null @@ -1,159 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcppnewentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAssociation; -import org.moosetechnology.model.famix.famixtraits.TInheritance; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TWithInheritances; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("Famix-CppNew-Entities") -@FameDescription("Inheritance") -public class Inheritance extends Entity implements TAssociation, TAssociationMetaLevelDependency, TInheritance, TSourceEntity { - - private Boolean isStub; - - private TAssociation next; - - private Number numberOfLinesOfCode; - - private TAssociation previous; - - private TSourceAnchor sourceAnchor; - - private TWithInheritances subclass; - - private TWithInheritances superclass; - - - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "next", opposite = "previous", derived = true) - public TAssociation getNext() { - return next; - } - - public void setNext(TAssociation next) { - if (this.next == null ? next != null : !this.next.equals(next)) { - TAssociation old_next = this.next; - this.next = next; - if (old_next != null) old_next.setPrevious(null); - if (next != null) next.setPrevious(this); - } - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "previous", opposite = "next") - public TAssociation getPrevious() { - return previous; - } - - public void setPrevious(TAssociation previous) { - if (this.previous == null ? previous != null : !this.previous.equals(previous)) { - TAssociation old_previous = this.previous; - this.previous = previous; - if (old_previous != null) old_previous.setNext(null); - if (previous != null) previous.setNext(this); - } - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "subclass", opposite = "superInheritances") - public TWithInheritances getSubclass() { - return subclass; - } - - public void setSubclass(TWithInheritances subclass) { - if (this.subclass != null) { - if (this.subclass.equals(subclass)) return; - this.subclass.getSuperInheritances().remove(this); - } - this.subclass = subclass; - if (subclass == null) return; - subclass.getSuperInheritances().add(this); - } - - @FameProperty(name = "superclass", opposite = "subInheritances") - public TWithInheritances getSuperclass() { - return superclass; - } - - public void setSuperclass(TWithInheritances superclass) { - if (this.superclass != null) { - if (this.superclass.equals(superclass)) return; - this.superclass.getSubInheritances().remove(this); - } - this.superclass = superclass; - if (superclass == null) return; - superclass.getSubInheritances().add(this); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcppnewentities/Method.java b/gen/org/moosetechnology/model/famix/famixcppnewentities/Method.java deleted file mode 100644 index 20de38e..0000000 --- a/gen/org/moosetechnology/model/famix/famixcppnewentities/Method.java +++ /dev/null @@ -1,640 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcppnewentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAccess; -import org.moosetechnology.model.famix.famixtraits.THasSignature; -import org.moosetechnology.model.famix.famixtraits.TImplicitVariable; -import org.moosetechnology.model.famix.famixtraits.TInvocable; -import org.moosetechnology.model.famix.famixtraits.TInvocation; -import org.moosetechnology.model.famix.famixtraits.TLocalVariable; -import org.moosetechnology.model.famix.famixtraits.TMethod; -import org.moosetechnology.model.famix.famixtraits.TMethodMetrics; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TParameter; -import org.moosetechnology.model.famix.famixtraits.TReference; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.famixtraits.TType; -import org.moosetechnology.model.famix.famixtraits.TTypedEntity; -import org.moosetechnology.model.famix.famixtraits.TWithAccesses; -import org.moosetechnology.model.famix.famixtraits.TWithImplicitVariables; -import org.moosetechnology.model.famix.famixtraits.TWithInvocations; -import org.moosetechnology.model.famix.famixtraits.TWithLocalVariables; -import org.moosetechnology.model.famix.famixtraits.TWithMethods; -import org.moosetechnology.model.famix.famixtraits.TWithParameters; -import org.moosetechnology.model.famix.famixtraits.TWithReferences; -import org.moosetechnology.model.famix.famixtraits.TWithStatements; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-CppNew-Entities") -@FameDescription("Method") -public class Method extends Entity implements TEntityMetaLevelDependency, THasSignature, TInvocable, TMethod, TMethodMetrics, TNamedEntity, TSourceEntity, TTypedEntity, TWithAccesses, TWithImplicitVariables, TWithInvocations, TWithLocalVariables, TWithParameters, TWithReferences, TWithStatements { - - private Collection accesses; - - private Number cyclomaticComplexity; - - private TType declaredType; - - private Collection implicitVariables; - - private Collection incomingInvocations; - - private Boolean isStub; - - private Collection localVariables; - - private String name; - - private Number numberOfLinesOfCode; - - private Collection outgoingInvocations; - - private Collection outgoingReferences; - - private Collection parameters; - - private TWithMethods parentType; - - private String signature; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "accesses", opposite = "accessor", derived = true) - public Collection getAccesses() { - if (accesses == null) { - accesses = new MultivalueSet() { - @Override - protected void clearOpposite(TAccess e) { - e.setAccessor(null); - } - @Override - protected void setOpposite(TAccess e) { - e.setAccessor(Method.this); - } - }; - } - return accesses; - } - - public void setAccesses(Collection accesses) { - this.getAccesses().clear(); - this.getAccesses().addAll(accesses); - } - - - public void addAccesses(TAccess one) { - this.getAccesses().add(one); - } - - public void addAccesses(TAccess one, TAccess... many) { - this.getAccesses().add(one); - for (TAccess each : many) - this.getAccesses().add(each); - } - - public void addAccesses(Iterable many) { - for (TAccess each : many) - this.getAccesses().add(each); - } - - public void addAccesses(TAccess[] many) { - for (TAccess each : many) - this.getAccesses().add(each); - } - - public int numberOfAccesses() { - return getAccesses().size(); - } - - public boolean hasAccesses() { - return !getAccesses().isEmpty(); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "cyclomaticComplexity") - public Number getCyclomaticComplexity() { - return cyclomaticComplexity; - } - - public void setCyclomaticComplexity(Number cyclomaticComplexity) { - this.cyclomaticComplexity = cyclomaticComplexity; - } - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType() { - return declaredType; - } - - public void setDeclaredType(TType declaredType) { - if (this.declaredType != null) { - if (this.declaredType.equals(declaredType)) return; - this.declaredType.getTypedEntities().remove(this); - } - this.declaredType = declaredType; - if (declaredType == null) return; - declaredType.getTypedEntities().add(this); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hasClassScope", derived = true) - public Boolean getHasClassScope() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "hierarchyNestingLevel", derived = true) - public Number getHierarchyNestingLevel() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "implicitVariables", opposite = "parentBehaviouralEntity", derived = true) - public Collection getImplicitVariables() { - if (implicitVariables == null) { - implicitVariables = new MultivalueSet() { - @Override - protected void clearOpposite(TImplicitVariable e) { - e.setParentBehaviouralEntity(null); - } - @Override - protected void setOpposite(TImplicitVariable e) { - e.setParentBehaviouralEntity(Method.this); - } - }; - } - return implicitVariables; - } - - public void setImplicitVariables(Collection implicitVariables) { - this.getImplicitVariables().clear(); - this.getImplicitVariables().addAll(implicitVariables); - } - - - public void addImplicitVariables(TImplicitVariable one) { - this.getImplicitVariables().add(one); - } - - public void addImplicitVariables(TImplicitVariable one, TImplicitVariable... many) { - this.getImplicitVariables().add(one); - for (TImplicitVariable each : many) - this.getImplicitVariables().add(each); - } - - public void addImplicitVariables(Iterable many) { - for (TImplicitVariable each : many) - this.getImplicitVariables().add(each); - } - - public void addImplicitVariables(TImplicitVariable[] many) { - for (TImplicitVariable each : many) - this.getImplicitVariables().add(each); - } - - public int numberOfImplicitVariables() { - return getImplicitVariables().size(); - } - - public boolean hasImplicitVariables() { - return !getImplicitVariables().isEmpty(); - } - - @FameProperty(name = "incomingInvocations", opposite = "candidates", derived = true) - public Collection getIncomingInvocations() { - if (incomingInvocations == null) { - incomingInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocation e) { - e.getCandidates().remove(Method.this); - } - @Override - protected void setOpposite(TInvocation e) { - e.getCandidates().add(Method.this); - } - }; - } - return incomingInvocations; - } - - public void setIncomingInvocations(Collection incomingInvocations) { - this.getIncomingInvocations().clear(); - this.getIncomingInvocations().addAll(incomingInvocations); - } - - public void addIncomingInvocations(TInvocation one) { - this.getIncomingInvocations().add(one); - } - - public void addIncomingInvocations(TInvocation one, TInvocation... many) { - this.getIncomingInvocations().add(one); - for (TInvocation each : many) - this.getIncomingInvocations().add(each); - } - - public void addIncomingInvocations(Iterable many) { - for (TInvocation each : many) - this.getIncomingInvocations().add(each); - } - - public void addIncomingInvocations(TInvocation[] many) { - for (TInvocation each : many) - this.getIncomingInvocations().add(each); - } - - public int numberOfIncomingInvocations() { - return getIncomingInvocations().size(); - } - - public boolean hasIncomingInvocations() { - return !getIncomingInvocations().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "localVariables", opposite = "parentBehaviouralEntity", derived = true) - public Collection getLocalVariables() { - if (localVariables == null) { - localVariables = new MultivalueSet() { - @Override - protected void clearOpposite(TLocalVariable e) { - e.setParentBehaviouralEntity(null); - } - @Override - protected void setOpposite(TLocalVariable e) { - e.setParentBehaviouralEntity(Method.this); - } - }; - } - return localVariables; - } - - public void setLocalVariables(Collection localVariables) { - this.getLocalVariables().clear(); - this.getLocalVariables().addAll(localVariables); - } - - - public void addLocalVariables(TLocalVariable one) { - this.getLocalVariables().add(one); - } - - public void addLocalVariables(TLocalVariable one, TLocalVariable... many) { - this.getLocalVariables().add(one); - for (TLocalVariable each : many) - this.getLocalVariables().add(each); - } - - public void addLocalVariables(Iterable many) { - for (TLocalVariable each : many) - this.getLocalVariables().add(each); - } - - public void addLocalVariables(TLocalVariable[] many) { - for (TLocalVariable each : many) - this.getLocalVariables().add(each); - } - - public int numberOfLocalVariables() { - return getLocalVariables().size(); - } - - public boolean hasLocalVariables() { - return !getLocalVariables().isEmpty(); - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfAnnotationInstances", derived = true) - public Number getNumberOfAnnotationInstances() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalClients", derived = true) - public Number getNumberOfExternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalProviders", derived = true) - public Number getNumberOfExternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalClients", derived = true) - public Number getNumberOfInternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalProviders", derived = true) - public Number getNumberOfInternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfOutgoingInvocations", derived = true) - public Number getNumberOfOutgoingInvocations() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfParameters", derived = true) - public Number getNumberOfParameters() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfStatements", derived = true) - public Number getNumberOfStatements() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "outgoingInvocations", opposite = "sender", derived = true) - public Collection getOutgoingInvocations() { - if (outgoingInvocations == null) { - outgoingInvocations = new MultivalueSet() { - @Override - protected void clearOpposite(TInvocation e) { - e.setSender(null); - } - @Override - protected void setOpposite(TInvocation e) { - e.setSender(Method.this); - } - }; - } - return outgoingInvocations; - } - - public void setOutgoingInvocations(Collection outgoingInvocations) { - this.getOutgoingInvocations().clear(); - this.getOutgoingInvocations().addAll(outgoingInvocations); - } - - - public void addOutgoingInvocations(TInvocation one) { - this.getOutgoingInvocations().add(one); - } - - public void addOutgoingInvocations(TInvocation one, TInvocation... many) { - this.getOutgoingInvocations().add(one); - for (TInvocation each : many) - this.getOutgoingInvocations().add(each); - } - - public void addOutgoingInvocations(Iterable many) { - for (TInvocation each : many) - this.getOutgoingInvocations().add(each); - } - - public void addOutgoingInvocations(TInvocation[] many) { - for (TInvocation each : many) - this.getOutgoingInvocations().add(each); - } - - public int numberOfOutgoingInvocations() { - return getOutgoingInvocations().size(); - } - - public boolean hasOutgoingInvocations() { - return !getOutgoingInvocations().isEmpty(); - } - - @FameProperty(name = "outgoingReferences", opposite = "referencer", derived = true) - public Collection getOutgoingReferences() { - if (outgoingReferences == null) { - outgoingReferences = new MultivalueSet() { - @Override - protected void clearOpposite(TReference e) { - e.setReferencer(null); - } - @Override - protected void setOpposite(TReference e) { - e.setReferencer(Method.this); - } - }; - } - return outgoingReferences; - } - - public void setOutgoingReferences(Collection outgoingReferences) { - this.getOutgoingReferences().clear(); - this.getOutgoingReferences().addAll(outgoingReferences); - } - - - public void addOutgoingReferences(TReference one) { - this.getOutgoingReferences().add(one); - } - - public void addOutgoingReferences(TReference one, TReference... many) { - this.getOutgoingReferences().add(one); - for (TReference each : many) - this.getOutgoingReferences().add(each); - } - - public void addOutgoingReferences(Iterable many) { - for (TReference each : many) - this.getOutgoingReferences().add(each); - } - - public void addOutgoingReferences(TReference[] many) { - for (TReference each : many) - this.getOutgoingReferences().add(each); - } - - public int numberOfOutgoingReferences() { - return getOutgoingReferences().size(); - } - - public boolean hasOutgoingReferences() { - return !getOutgoingReferences().isEmpty(); - } - - @FameProperty(name = "parameters", opposite = "parentBehaviouralEntity", derived = true) - public Collection getParameters() { - if (parameters == null) { - parameters = new MultivalueSet() { - @Override - protected void clearOpposite(TParameter e) { - e.setParentBehaviouralEntity(null); - } - @Override - protected void setOpposite(TParameter e) { - e.setParentBehaviouralEntity(Method.this); - } - }; - } - return parameters; - } - - public void setParameters(Collection parameters) { - this.getParameters().clear(); - this.getParameters().addAll(parameters); - } - - - public void addParameters(TParameter one) { - this.getParameters().add(one); - } - - public void addParameters(TParameter one, TParameter... many) { - this.getParameters().add(one); - for (TParameter each : many) - this.getParameters().add(each); - } - - public void addParameters(Iterable many) { - for (TParameter each : many) - this.getParameters().add(each); - } - - public void addParameters(TParameter[] many) { - for (TParameter each : many) - this.getParameters().add(each); - } - - public int numberOfParameters() { - return getParameters().size(); - } - - public boolean hasParameters() { - return !getParameters().isEmpty(); - } - - @FameProperty(name = "parentType", opposite = "methods", container = true) - public TWithMethods getParentType() { - return parentType; - } - - public void setParentType(TWithMethods parentType) { - if (this.parentType != null) { - if (this.parentType.equals(parentType)) return; - this.parentType.getMethods().remove(this); - } - this.parentType = parentType; - if (parentType == null) return; - parentType.getMethods().add(this); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "signature") - public String getSignature() { - return signature; - } - - public void setSignature(String signature) { - this.signature = signature; - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcppnewentities/Namespace.java b/gen/org/moosetechnology/model/famix/famixcppnewentities/Namespace.java deleted file mode 100644 index eab6489..0000000 --- a/gen/org/moosetechnology/model/famix/famixcppnewentities/Namespace.java +++ /dev/null @@ -1,157 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcppnewentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; -import org.moosetechnology.model.famix.famixtraits.TNamespace; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-CppNew-Entities") -@FameDescription("Namespace") -public class Namespace extends Entity implements TEntityMetaLevelDependency, TNamedEntity, TNamespace, TSourceEntity { - - private Boolean isStub; - - private String name; - - private Number numberOfLinesOfCode; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalClients", derived = true) - public Number getNumberOfExternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfExternalProviders", derived = true) - public Number getNumberOfExternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalClients", derived = true) - public Number getNumberOfInternalClients() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfInternalProviders", derived = true) - public Number getNumberOfInternalProviders() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcpreprocentities/CFile.java b/gen/org/moosetechnology/model/famix/famixcpreprocentities/CFile.java deleted file mode 100644 index 749ea27..0000000 --- a/gen/org/moosetechnology/model/famix/famixcpreprocentities/CFile.java +++ /dev/null @@ -1,138 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcpreprocentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; - - -@FamePackage("Famix-CPreproc-Entities") -@FameDescription("CFile") -public class CFile extends Entity implements TNamedEntity { - - private Collection includes; - - private Collection inclusion; - - private String name; - - - - @FameProperty(name = "includes", opposite = "includedBy", derived = true) - public Collection getIncludes() { - if (includes == null) { - includes = new MultivalueSet() { - @Override - protected void clearOpposite(Include e) { - e.setIncludedBy(null); - } - @Override - protected void setOpposite(Include e) { - e.setIncludedBy(CFile.this); - } - }; - } - return includes; - } - - public void setIncludes(Collection includes) { - this.getIncludes().clear(); - this.getIncludes().addAll(includes); - } - - - public void addIncludes(Include one) { - this.getIncludes().add(one); - } - - public void addIncludes(Include one, Include... many) { - this.getIncludes().add(one); - for (Include each : many) - this.getIncludes().add(each); - } - - public void addIncludes(Iterable many) { - for (Include each : many) - this.getIncludes().add(each); - } - - public void addIncludes(Include[] many) { - for (Include each : many) - this.getIncludes().add(each); - } - - public int numberOfIncludes() { - return getIncludes().size(); - } - - public boolean hasIncludes() { - return !getIncludes().isEmpty(); - } - - @FameProperty(name = "inclusion", opposite = "included", derived = true) - public Collection getInclusion() { - if (inclusion == null) { - inclusion = new MultivalueSet() { - @Override - protected void clearOpposite(Include e) { - e.setIncluded(null); - } - @Override - protected void setOpposite(Include e) { - e.setIncluded(CFile.this); - } - }; - } - return inclusion; - } - - public void setInclusion(Collection inclusion) { - this.getInclusion().clear(); - this.getInclusion().addAll(inclusion); - } - - - public void addInclusion(Include one) { - this.getInclusion().add(one); - } - - public void addInclusion(Include one, Include... many) { - this.getInclusion().add(one); - for (Include each : many) - this.getInclusion().add(each); - } - - public void addInclusion(Iterable many) { - for (Include each : many) - this.getInclusion().add(each); - } - - public void addInclusion(Include[] many) { - for (Include each : many) - this.getInclusion().add(each); - } - - public int numberOfInclusion() { - return getInclusion().size(); - } - - public boolean hasInclusion() { - return !getInclusion().isEmpty(); - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcpreprocentities/CPreprocModel.java b/gen/org/moosetechnology/model/famix/famixcpreprocentities/CPreprocModel.java deleted file mode 100644 index c3c3722..0000000 --- a/gen/org/moosetechnology/model/famix/famixcpreprocentities/CPreprocModel.java +++ /dev/null @@ -1,18 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcpreprocentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moose.Model; - - -@FamePackage("Famix-CPreproc-Entities") -@FameDescription("CPreprocModel") -public class CPreprocModel extends Model { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcpreprocentities/CompilUnit.java b/gen/org/moosetechnology/model/famix/famixcpreprocentities/CompilUnit.java deleted file mode 100644 index 42c057d..0000000 --- a/gen/org/moosetechnology/model/famix/famixcpreprocentities/CompilUnit.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcpreprocentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Famix-CPreproc-Entities") -@FameDescription("CompilUnit") -public class CompilUnit extends CFile { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcpreprocentities/Entity.java b/gen/org/moosetechnology/model/famix/famixcpreprocentities/Entity.java deleted file mode 100644 index d807558..0000000 --- a/gen/org/moosetechnology/model/famix/famixcpreprocentities/Entity.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcpreprocentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Famix-CPreproc-Entities") -@FameDescription("Entity") -public class Entity extends org.moosetechnology.model.famix.moose.Entity { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcpreprocentities/FamixCPreprocEntitiesModel.java b/gen/org/moosetechnology/model/famix/famixcpreprocentities/FamixCPreprocEntitiesModel.java deleted file mode 100644 index f2215cb..0000000 --- a/gen/org/moosetechnology/model/famix/famixcpreprocentities/FamixCPreprocEntitiesModel.java +++ /dev/null @@ -1,28 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcpreprocentities; - -import ch.akuhn.fame.MetaRepository; - -public class FamixCPreprocEntitiesModel { - - public static MetaRepository metamodel() { - MetaRepository metamodel = new MetaRepository(); - importInto(metamodel); - return metamodel; - } - - public static void importInto(MetaRepository metamodel) { - metamodel.with(org.moosetechnology.model.famix.famixcpreprocentities.CFile.class); - metamodel.with(org.moosetechnology.model.famix.famixcpreprocentities.CPreprocModel.class); - metamodel.with(org.moosetechnology.model.famix.famixcpreprocentities.CompilUnit.class); - metamodel.with(org.moosetechnology.model.famix.famixcpreprocentities.Entity.class); - metamodel.with(org.moosetechnology.model.famix.famixcpreprocentities.Header.class); - metamodel.with(org.moosetechnology.model.famix.famixcpreprocentities.Include.class); - metamodel.with(org.moosetechnology.model.famix.famixcpreprocentities.PreprocDefine.class); - metamodel.with(org.moosetechnology.model.famix.famixcpreprocentities.PreprocIfdef.class); - metamodel.with(org.moosetechnology.model.famix.famixcpreprocentities.PreprocStatement.class); - - } - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcpreprocentities/Header.java b/gen/org/moosetechnology/model/famix/famixcpreprocentities/Header.java deleted file mode 100644 index d1fb652..0000000 --- a/gen/org/moosetechnology/model/famix/famixcpreprocentities/Header.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcpreprocentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Famix-CPreproc-Entities") -@FameDescription("Header") -public class Header extends CFile { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcpreprocentities/Include.java b/gen/org/moosetechnology/model/famix/famixcpreprocentities/Include.java deleted file mode 100644 index b916bc6..0000000 --- a/gen/org/moosetechnology/model/famix/famixcpreprocentities/Include.java +++ /dev/null @@ -1,157 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcpreprocentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixreplication.Replica; -import org.moosetechnology.model.famix.famixtraits.TAssociation; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("Famix-CPreproc-Entities") -@FameDescription("Include") -public class Include extends Entity implements TAssociation, TAssociationMetaLevelDependency, TSourceEntity { - - private CFile included; - - private CFile includedBy; - - private Boolean isStub; - - private TAssociation next; - - private Number numberOfLinesOfCode; - - private TAssociation previous; - - private TSourceAnchor sourceAnchor; - - - - @FameProperty(name = "included", opposite = "inclusion") - public CFile getIncluded() { - return included; - } - - public void setIncluded(CFile included) { - if (this.included != null) { - if (this.included.equals(included)) return; - this.included.getInclusion().remove(this); - } - this.included = included; - if (included == null) return; - included.getInclusion().add(this); - } - - @FameProperty(name = "includedBy", opposite = "includes") - public CFile getIncludedBy() { - return includedBy; - } - - public void setIncludedBy(CFile includedBy) { - if (this.includedBy != null) { - if (this.includedBy.equals(includedBy)) return; - this.includedBy.getIncludes().remove(this); - } - this.includedBy = includedBy; - if (includedBy == null) return; - includedBy.getIncludes().add(this); - } - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isStub") - public Boolean getIsStub() { - return isStub; - } - - public void setIsStub(Boolean isStub) { - this.isStub = isStub; - } - - @FameProperty(name = "next", opposite = "previous", derived = true) - public TAssociation getNext() { - return next; - } - - public void setNext(TAssociation next) { - if (this.next == null ? next != null : !this.next.equals(next)) { - TAssociation old_next = this.next; - this.next = next; - if (old_next != null) old_next.setPrevious(null); - if (next != null) next.setPrevious(this); - } - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "previous", opposite = "next") - public TAssociation getPrevious() { - return previous; - } - - public void setPrevious(TAssociation previous) { - if (this.previous == null ? previous != null : !this.previous.equals(previous)) { - TAssociation old_previous = this.previous; - this.previous = previous; - if (old_previous != null) old_previous.setNext(null); - if (previous != null) previous.setNext(this); - } - } - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - if (this.sourceAnchor == null ? sourceAnchor != null : !this.sourceAnchor.equals(sourceAnchor)) { - TSourceAnchor old_sourceAnchor = this.sourceAnchor; - this.sourceAnchor = sourceAnchor; - if (old_sourceAnchor != null) old_sourceAnchor.setElement(null); - if (sourceAnchor != null) sourceAnchor.setElement(this); - } - } - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcpreprocentities/PreprocDefine.java b/gen/org/moosetechnology/model/famix/famixcpreprocentities/PreprocDefine.java deleted file mode 100644 index d151a09..0000000 --- a/gen/org/moosetechnology/model/famix/famixcpreprocentities/PreprocDefine.java +++ /dev/null @@ -1,30 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcpreprocentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixtraits.TNamedEntity; - - -@FamePackage("Famix-CPreproc-Entities") -@FameDescription("PreprocDefine") -public class PreprocDefine extends PreprocStatement implements TNamedEntity { - - private String name; - - - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcpreprocentities/PreprocIfdef.java b/gen/org/moosetechnology/model/famix/famixcpreprocentities/PreprocIfdef.java deleted file mode 100644 index c37be9d..0000000 --- a/gen/org/moosetechnology/model/famix/famixcpreprocentities/PreprocIfdef.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcpreprocentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Famix-CPreproc-Entities") -@FameDescription("PreprocIfdef") -public class PreprocIfdef extends PreprocStatement { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixcpreprocentities/PreprocStatement.java b/gen/org/moosetechnology/model/famix/famixcpreprocentities/PreprocStatement.java deleted file mode 100644 index deaec38..0000000 --- a/gen/org/moosetechnology/model/famix/famixcpreprocentities/PreprocStatement.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixcpreprocentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Famix-CPreproc-Entities") -@FameDescription("PreprocStatement") -public class PreprocStatement extends Entity { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixreplication/FamixReplicationModel.java b/gen/org/moosetechnology/model/famix/famixreplication/FamixReplicationModel.java deleted file mode 100644 index a9d37c3..0000000 --- a/gen/org/moosetechnology/model/famix/famixreplication/FamixReplicationModel.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixreplication; - -import ch.akuhn.fame.MetaRepository; - -public class FamixReplicationModel { - - public static MetaRepository metamodel() { - MetaRepository metamodel = new MetaRepository(); - importInto(metamodel); - return metamodel; - } - - public static void importInto(MetaRepository metamodel) { - metamodel.with(org.moosetechnology.model.famix.famixreplication.Replica.class); - metamodel.with(org.moosetechnology.model.famix.famixreplication.ReplicatedFragment.class); - - } - -} - diff --git a/gen/org/moosetechnology/model/famix/famixreplication/Replica.java b/gen/org/moosetechnology/model/famix/famixreplication/Replica.java deleted file mode 100644 index 5feb2af..0000000 --- a/gen/org/moosetechnology/model/famix/famixreplication/Replica.java +++ /dev/null @@ -1,18 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixreplication; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moose.Entity; - - -@FamePackage("FamixReplication") -@FameDescription("Replica") -public class Replica extends Entity { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixreplication/ReplicatedFragment.java b/gen/org/moosetechnology/model/famix/famixreplication/ReplicatedFragment.java deleted file mode 100644 index fd94ed6..0000000 --- a/gen/org/moosetechnology/model/famix/famixreplication/ReplicatedFragment.java +++ /dev/null @@ -1,18 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixreplication; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moose.Entity; - - -@FamePackage("FamixReplication") -@FameDescription("ReplicatedFragment") -public class ReplicatedFragment extends Entity { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/AnnotationInstanceGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/AnnotationInstanceGroup.java deleted file mode 100644 index 3387644..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/AnnotationInstanceGroup.java +++ /dev/null @@ -1,18 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moose.SpecializedGroup; - - -@FamePackage("Famix-Traits") -@FameDescription("AnnotationInstanceGroup") -public class AnnotationInstanceGroup extends SpecializedGroup { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/AnnotationTypeGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/AnnotationTypeGroup.java deleted file mode 100644 index 963aa63..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/AnnotationTypeGroup.java +++ /dev/null @@ -1,18 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moose.SpecializedGroup; - - -@FamePackage("Famix-Traits") -@FameDescription("AnnotationTypeGroup") -public class AnnotationTypeGroup extends SpecializedGroup { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/ClassGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/ClassGroup.java deleted file mode 100644 index bbba805..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/ClassGroup.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Famix-Traits") -@FameDescription("ClassGroup") -public class ClassGroup extends TypeGroup { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/FamixModel.java b/gen/org/moosetechnology/model/famix/famixtraits/FamixModel.java deleted file mode 100644 index 334d9ee..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/FamixModel.java +++ /dev/null @@ -1,18 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moose.Model; - - -@FamePackage("Famix-Traits") -@FameDescription("FamixModel") -public class FamixModel extends Model { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/FamixTraitsModel.java b/gen/org/moosetechnology/model/famix/famixtraits/FamixTraitsModel.java deleted file mode 100644 index d847e7e..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/FamixTraitsModel.java +++ /dev/null @@ -1,145 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.MetaRepository; - -public class FamixTraitsModel { - - public static MetaRepository metamodel() { - MetaRepository metamodel = new MetaRepository(); - importInto(metamodel); - return metamodel; - } - - public static void importInto(MetaRepository metamodel) { - metamodel.with(org.moosetechnology.model.famix.famixtraits.AnnotationInstanceGroup.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.AnnotationTypeGroup.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.ClassGroup.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.FamixModel.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.FileGroup.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.FolderGroup.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.GlobalVariableGroup.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.InvocationGroup.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.MethodGroup.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.NamespaceGroup.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.PackageGroup.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TAccess.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TAccessible.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TAnnotationInstance.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TAnnotationInstanceAttribute.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TAnnotationType.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TAnnotationTypeAttribute.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TAssociation.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TAttribute.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TCanBeAbstract.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TCanBeClassSide.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TCanBeFinal.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TCanImplement.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TClass.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TClassHierarchyNavigation.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TClassMetrics.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TClassWithVisibility.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TCohesionCouplingMetrics.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TComment.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TCompilationUnit.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TDefinedInModule.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TDereferencedInvocation.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TEnum.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TEnumValue.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TException.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TFile.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TFileAnchor.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TFileInclude.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TFileNavigation.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TFileSystemEntity.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TFolder.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TFunction.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TGlobalVariable.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.THasImmediateSource.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.THasKind.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.THasModifiers.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.THasSignature.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.THasVisibility.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.THeader.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TImplementable.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TImplementation.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TImplicitVariable.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TIndexedFileNavigation.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TInheritance.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TInvocable.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TInvocation.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TInvocationsReceiver.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TLCOMMetrics.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TLocalVariable.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TMethod.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TMethodMetrics.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TModule.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TMultipleFileAnchor.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TNamedEntity.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TNamespace.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TPackage.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TPackageable.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TParameter.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TParameterType.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TParameterizedType.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TParameterizedTypeUser.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TPreprocessorDefine.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TPreprocessorIfdef.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TPrimitiveType.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TReference.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TReferenceable.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TRelativeSourceAnchor.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TSourceAnchor.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TSourceEntity.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TSourceLanguage.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TStructuralEntity.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TTemplate.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TTemplateUser.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TTrait.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TTraitUsage.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TTraitUser.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TType.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TTypeAlias.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TTypedAnnotationInstance.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TTypedAnnotationInstanceAttribute.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TTypedEntity.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TUnknownSourceLanguage.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TUnknownVariable.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithAccesses.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithAnnotationInstanceAttributes.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithAnnotationInstances.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithAnnotationTypes.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithAttributes.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithClasses.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithComments.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithCompilationUnits.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithDereferencedInvocations.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithEnumValues.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithExceptions.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithFileIncludes.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithFiles.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithFunctions.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithGlobalVariables.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithHeaders.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithImplicitVariables.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithInheritances.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithInvocations.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithLocalVariables.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithMethods.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithPackages.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithParameterizedTypeUsers.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithParameterizedTypes.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithParameters.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithReferences.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithSourceLanguages.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithStatements.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithTemplates.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithTraits.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithTypeAliases.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TWithTypes.class); - metamodel.with(org.moosetechnology.model.famix.famixtraits.TypeGroup.class); - - } - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/FileGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/FileGroup.java deleted file mode 100644 index ac7a59b..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/FileGroup.java +++ /dev/null @@ -1,18 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moose.SpecializedGroup; - - -@FamePackage("Famix-Traits") -@FameDescription("FileGroup") -public class FileGroup extends SpecializedGroup { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/FolderGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/FolderGroup.java deleted file mode 100644 index 2e7df00..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/FolderGroup.java +++ /dev/null @@ -1,18 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moose.SpecializedGroup; - - -@FamePackage("Famix-Traits") -@FameDescription("FolderGroup") -public class FolderGroup extends SpecializedGroup { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/GlobalVariableGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/GlobalVariableGroup.java deleted file mode 100644 index 51632da..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/GlobalVariableGroup.java +++ /dev/null @@ -1,18 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moose.SpecializedGroup; - - -@FamePackage("Famix-Traits") -@FameDescription("GlobalVariableGroup") -public class GlobalVariableGroup extends SpecializedGroup { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/InvocationGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/InvocationGroup.java deleted file mode 100644 index 641a5df..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/InvocationGroup.java +++ /dev/null @@ -1,18 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moose.SpecializedGroup; - - -@FamePackage("Famix-Traits") -@FameDescription("InvocationGroup") -public class InvocationGroup extends SpecializedGroup { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/MethodGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/MethodGroup.java deleted file mode 100644 index 40dcb2e..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/MethodGroup.java +++ /dev/null @@ -1,52 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moose.SpecializedGroup; - - -@FamePackage("Famix-Traits") -@FameDescription("MethodGroup") -public class MethodGroup extends SpecializedGroup { - - private Number averageNumberOfInvocations; - - private Number averageNumberOfLinesOfCode; - - private Number averageNumberOfParameters; - - - - @FameProperty(name = "averageNumberOfInvocations") - public Number getAverageNumberOfInvocations() { - return averageNumberOfInvocations; - } - - public void setAverageNumberOfInvocations(Number averageNumberOfInvocations) { - this.averageNumberOfInvocations = averageNumberOfInvocations; - } - - @FameProperty(name = "averageNumberOfLinesOfCode") - public Number getAverageNumberOfLinesOfCode() { - return averageNumberOfLinesOfCode; - } - - public void setAverageNumberOfLinesOfCode(Number averageNumberOfLinesOfCode) { - this.averageNumberOfLinesOfCode = averageNumberOfLinesOfCode; - } - - @FameProperty(name = "averageNumberOfParameters") - public Number getAverageNumberOfParameters() { - return averageNumberOfParameters; - } - - public void setAverageNumberOfParameters(Number averageNumberOfParameters) { - this.averageNumberOfParameters = averageNumberOfParameters; - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/NamespaceGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/NamespaceGroup.java deleted file mode 100644 index 1274c7a..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/NamespaceGroup.java +++ /dev/null @@ -1,18 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moose.SpecializedGroup; - - -@FamePackage("Famix-Traits") -@FameDescription("NamespaceGroup") -public class NamespaceGroup extends SpecializedGroup { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/PackageGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/PackageGroup.java deleted file mode 100644 index 64c1a4e..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/PackageGroup.java +++ /dev/null @@ -1,18 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moose.SpecializedGroup; - - -@FamePackage("Famix-Traits") -@FameDescription("PackageGroup") -public class PackageGroup extends SpecializedGroup { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TAccess.java b/gen/org/moosetechnology/model/famix/famixtraits/TAccess.java deleted file mode 100644 index e124672..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TAccess.java +++ /dev/null @@ -1,38 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TAccess") -public interface TAccess { - - @FameProperty(name = "isRead", derived = true) - public Boolean getIsRead(); - - @FameProperty(name = "isReadWriteUnknown", derived = true) - public Boolean getIsReadWriteUnknown(); - - @FameProperty(name = "accessor", opposite = "accesses") - public TWithAccesses getAccessor(); - - public void setAccessor(TWithAccesses accessor); - - @FameProperty(name = "variable", opposite = "incomingAccesses") - public TAccessible getVariable(); - - public void setVariable(TAccessible variable); - - @FameProperty(name = "isWrite") - public Boolean getIsWrite(); - - public void setIsWrite(Boolean isWrite); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TAccessible.java b/gen/org/moosetechnology/model/famix/famixtraits/TAccessible.java deleted file mode 100644 index 8436fa0..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TAccessible.java +++ /dev/null @@ -1,52 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TAccessible") -public interface TAccessible { - - @FameProperty(name = "numberOfAccesses", derived = true) - public Number getNumberOfAccesses(); - - @FameProperty(name = "numberOfLocalAccesses", derived = true) - public Number getNumberOfLocalAccesses(); - - @FameProperty(name = "accessors", derived = true) - public Collection getAccessors(); - - @FameProperty(name = "numberOfAccessingMethods", derived = true) - public Number getNumberOfAccessingMethods(); - - @FameProperty(name = "numberOfAccessingClasses", derived = true) - public Number getNumberOfAccessingClasses(); - - @FameProperty(name = "numberOfGlobalAccesses", derived = true) - public Number getNumberOfGlobalAccesses(); - - @FameProperty(name = "incomingAccesses", opposite = "variable", derived = true) - public Collection getIncomingAccesses(); - - public void setIncomingAccesses(Collection incomingAccesses); - - public void addIncomingAccesses(TAccess one); - - public void addIncomingAccesses(TAccess one, TAccess... many); - - public void addIncomingAccesses(Iterable many); - - public void addIncomingAccesses(TAccess[] many); - - public int numberOfIncomingAccesses(); - - public boolean hasIncomingAccesses(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationInstance.java b/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationInstance.java deleted file mode 100644 index b7a29ab..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationInstance.java +++ /dev/null @@ -1,22 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TAnnotationInstance") -public interface TAnnotationInstance { - - @FameProperty(name = "annotatedEntity", opposite = "annotationInstances") - public TWithAnnotationInstances getAnnotatedEntity(); - - public void setAnnotatedEntity(TWithAnnotationInstances annotatedEntity); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationInstanceAttribute.java b/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationInstanceAttribute.java deleted file mode 100644 index 8671a26..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationInstanceAttribute.java +++ /dev/null @@ -1,27 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TAnnotationInstanceAttribute") -public interface TAnnotationInstanceAttribute { - - @FameProperty(name = "parentAnnotationInstance", opposite = "attributes", container = true) - public TWithAnnotationInstanceAttributes getParentAnnotationInstance(); - - public void setParentAnnotationInstance(TWithAnnotationInstanceAttributes parentAnnotationInstance); - - @FameProperty(name = "value") - public String getValue(); - - public void setValue(String value); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationType.java b/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationType.java deleted file mode 100644 index b7f8a2b..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationType.java +++ /dev/null @@ -1,39 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TAnnotationType") -public interface TAnnotationType { - - @FameProperty(name = "instances", opposite = "annotationType", derived = true) - public Collection getInstances(); - - public void setInstances(Collection instances); - - public void addInstances(TTypedAnnotationInstance one); - - public void addInstances(TTypedAnnotationInstance one, TTypedAnnotationInstance... many); - - public void addInstances(Iterable many); - - public void addInstances(TTypedAnnotationInstance[] many); - - public int numberOfInstances(); - - public boolean hasInstances(); - - @FameProperty(name = "annotationTypesContainer", opposite = "definedAnnotationTypes", container = true) - public TWithAnnotationTypes getAnnotationTypesContainer(); - - public void setAnnotationTypesContainer(TWithAnnotationTypes annotationTypesContainer); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationTypeAttribute.java b/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationTypeAttribute.java deleted file mode 100644 index 1dbe886..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationTypeAttribute.java +++ /dev/null @@ -1,35 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TAnnotationTypeAttribute") -public interface TAnnotationTypeAttribute { - - @FameProperty(name = "annotationAttributeInstances", opposite = "annotationTypeAttribute", derived = true) - public Collection getAnnotationAttributeInstances(); - - public void setAnnotationAttributeInstances(Collection annotationAttributeInstances); - - public void addAnnotationAttributeInstances(TTypedAnnotationInstanceAttribute one); - - public void addAnnotationAttributeInstances(TTypedAnnotationInstanceAttribute one, TTypedAnnotationInstanceAttribute... many); - - public void addAnnotationAttributeInstances(Iterable many); - - public void addAnnotationAttributeInstances(TTypedAnnotationInstanceAttribute[] many); - - public int numberOfAnnotationAttributeInstances(); - - public boolean hasAnnotationAttributeInstances(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TAssociation.java b/gen/org/moosetechnology/model/famix/famixtraits/TAssociation.java deleted file mode 100644 index eef6c44..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TAssociation.java +++ /dev/null @@ -1,27 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TAssociation") -public interface TAssociation { - - @FameProperty(name = "next", opposite = "previous", derived = true) - public TAssociation getNext(); - - public void setNext(TAssociation next); - - @FameProperty(name = "previous", opposite = "next") - public TAssociation getPrevious(); - - public void setPrevious(TAssociation previous); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TAttribute.java b/gen/org/moosetechnology/model/famix/famixtraits/TAttribute.java deleted file mode 100644 index 029ba2e..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TAttribute.java +++ /dev/null @@ -1,28 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TAttribute") -public interface TAttribute { - - @FameProperty(name = "hierarchyNestingLevel", derived = true) - public Number getHierarchyNestingLevel(); - - @FameProperty(name = "hasClassScope", derived = true) - public Boolean getHasClassScope(); - - @FameProperty(name = "parentType", opposite = "attributes", container = true) - public TWithAttributes getParentType(); - - public void setParentType(TWithAttributes parentType); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TCanBeAbstract.java b/gen/org/moosetechnology/model/famix/famixtraits/TCanBeAbstract.java deleted file mode 100644 index b0bcd35..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TCanBeAbstract.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TCanBeAbstract") -public interface TCanBeAbstract { - - @FameProperty(name = "isAbstract") - public Boolean getIsAbstract(); - - public void setIsAbstract(Boolean isAbstract); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TCanBeClassSide.java b/gen/org/moosetechnology/model/famix/famixtraits/TCanBeClassSide.java deleted file mode 100644 index 905c7e1..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TCanBeClassSide.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TCanBeClassSide") -public interface TCanBeClassSide { - - @FameProperty(name = "isClassSide") - public Boolean getIsClassSide(); - - public void setIsClassSide(Boolean isClassSide); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TCanBeFinal.java b/gen/org/moosetechnology/model/famix/famixtraits/TCanBeFinal.java deleted file mode 100644 index eb84af0..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TCanBeFinal.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TCanBeFinal") -public interface TCanBeFinal { - - @FameProperty(name = "isFinal") - public Boolean getIsFinal(); - - public void setIsFinal(Boolean isFinal); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TCanImplement.java b/gen/org/moosetechnology/model/famix/famixtraits/TCanImplement.java deleted file mode 100644 index 969dec3..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TCanImplement.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TCanImplement") -public interface TCanImplement { - - @FameProperty(name = "interfaceImplementations", opposite = "implementingClass", derived = true) - public Collection getInterfaceImplementations(); - - public void setInterfaceImplementations(Collection interfaceImplementations); - - public void addInterfaceImplementations(TImplementation one); - - public void addInterfaceImplementations(TImplementation one, TImplementation... many); - - public void addInterfaceImplementations(Iterable many); - - public void addInterfaceImplementations(TImplementation[] many); - - public int numberOfInterfaceImplementations(); - - public boolean hasInterfaceImplementations(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TCaughtException.java b/gen/org/moosetechnology/model/famix/famixtraits/TCaughtException.java deleted file mode 100644 index c06b194..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TCaughtException.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TCaughtException") -public interface TCaughtException { - - @FameProperty(name = "definingEntity", opposite = "caughtExceptions") - public TWithCaughtExceptions getDefiningEntity(); - - public void setDefiningEntity(TWithCaughtExceptions definingEntity); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TClass.java b/gen/org/moosetechnology/model/famix/famixtraits/TClass.java deleted file mode 100644 index 592abac..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TClass.java +++ /dev/null @@ -1,23 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TClass") -public interface TClass { - - @FameProperty(name = "isTestCase", derived = true) - public Boolean getIsTestCase(); - - @FameProperty(name = "weightOfAClass", derived = true) - public Number getWeightOfAClass(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TClassHierarchyNavigation.java b/gen/org/moosetechnology/model/famix/famixtraits/TClassHierarchyNavigation.java deleted file mode 100644 index a8cbe8a..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TClassHierarchyNavigation.java +++ /dev/null @@ -1,15 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Famix-Traits") -@FameDescription("TClassHierarchyNavigation") -public interface TClassHierarchyNavigation { - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TClassMetrics.java b/gen/org/moosetechnology/model/famix/famixtraits/TClassMetrics.java deleted file mode 100644 index 3e7c711..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TClassMetrics.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TClassMetrics") -public interface TClassMetrics { - - @FameProperty(name = "numberOfLocallyDefinedMethods", derived = true) - public Number getNumberOfLocallyDefinedMethods(); - - @FameProperty(name = "numberOfAttributesInherited", derived = true) - public Number getNumberOfAttributesInherited(); - - @FameProperty(name = "numberOfMethodsOverriden", derived = true) - public Number getNumberOfMethodsOverriden(); - - @FameProperty(name = "totalNumberOfSubclasses", derived = true) - public Number getTotalNumberOfSubclasses(); - - @FameProperty(name = "numberOfMethodsInherited", derived = true) - public Number getNumberOfMethodsInherited(); - - @FameProperty(name = "numberOfMethodsInHierarchy", derived = true) - public Number getNumberOfMethodsInHierarchy(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TClassWithVisibility.java b/gen/org/moosetechnology/model/famix/famixtraits/TClassWithVisibility.java deleted file mode 100644 index 765dcb8..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TClassWithVisibility.java +++ /dev/null @@ -1,16 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TClassWithVisibility") -public interface TClassWithVisibility { - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TCohesionCouplingMetrics.java b/gen/org/moosetechnology/model/famix/famixtraits/TCohesionCouplingMetrics.java deleted file mode 100644 index 8865bd4..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TCohesionCouplingMetrics.java +++ /dev/null @@ -1,35 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TCohesionCouplingMetrics") -public interface TCohesionCouplingMetrics { - - @FameProperty(name = "efferentCoupling", derived = true) - public Number getEfferentCoupling(); - - @FameProperty(name = "distance", derived = true) - public Number getDistance(); - - @FameProperty(name = "afferentCoupling", derived = true) - public Number getAfferentCoupling(); - - @FameProperty(name = "instability", derived = true) - public Number getInstability(); - - @FameProperty(name = "abstractness", derived = true) - public Number getAbstractness(); - - @FameProperty(name = "martinCohesion", derived = true) - public Number getMartinCohesion(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TComment.java b/gen/org/moosetechnology/model/famix/famixtraits/TComment.java deleted file mode 100644 index 899d2de..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TComment.java +++ /dev/null @@ -1,26 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TComment") -public interface TComment { - - @FameProperty(name = "container", opposite = "comments") - public TWithComments getContainer(); - - public void setContainer(TWithComments container); - - @FameProperty(name = "content") - public String getContent(); - - public void setContent(String content); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TCompilationUnit.java b/gen/org/moosetechnology/model/famix/famixtraits/TCompilationUnit.java deleted file mode 100644 index d55763d..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TCompilationUnit.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TCompilationUnit") -public interface TCompilationUnit { - - @FameProperty(name = "compilationUnitOwner", opposite = "compilationUnit") - public TWithCompilationUnits getCompilationUnitOwner(); - - public void setCompilationUnitOwner(TWithCompilationUnits compilationUnitOwner); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TDeclaredException.java b/gen/org/moosetechnology/model/famix/famixtraits/TDeclaredException.java deleted file mode 100644 index c4e78d8..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TDeclaredException.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TDeclaredException") -public interface TDeclaredException { - - @FameProperty(name = "definingEntity", opposite = "declaredExceptions") - public TWithDeclaredExceptions getDefiningEntity(); - - public void setDefiningEntity(TWithDeclaredExceptions definingEntity); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TDefinedInModule.java b/gen/org/moosetechnology/model/famix/famixtraits/TDefinedInModule.java deleted file mode 100644 index 36ff468..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TDefinedInModule.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TDefinedInModule") -public interface TDefinedInModule { - - @FameProperty(name = "parentModule", opposite = "moduleEntities") - public TModule getParentModule(); - - public void setParentModule(TModule parentModule); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TDereferencedInvocation.java b/gen/org/moosetechnology/model/famix/famixtraits/TDereferencedInvocation.java deleted file mode 100644 index 8ab1cc0..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TDereferencedInvocation.java +++ /dev/null @@ -1,22 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TDereferencedInvocation") -public interface TDereferencedInvocation { - - @FameProperty(name = "referencer", opposite = "dereferencedInvocations") - public TWithDereferencedInvocations getReferencer(); - - public void setReferencer(TWithDereferencedInvocations referencer); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TEnum.java b/gen/org/moosetechnology/model/famix/famixtraits/TEnum.java deleted file mode 100644 index 41777b2..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TEnum.java +++ /dev/null @@ -1,16 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TEnum") -public interface TEnum { - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TEnumValue.java b/gen/org/moosetechnology/model/famix/famixtraits/TEnumValue.java deleted file mode 100644 index 8421c0f..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TEnumValue.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TEnumValue") -public interface TEnumValue { - - @FameProperty(name = "parentEnum", opposite = "enumValues", container = true) - public TWithEnumValues getParentEnum(); - - public void setParentEnum(TWithEnumValues parentEnum); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TException.java b/gen/org/moosetechnology/model/famix/famixtraits/TException.java deleted file mode 100644 index 30a1d2a..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TException.java +++ /dev/null @@ -1,69 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TException") -public interface TException { - - @FameProperty(name = "throwingEntities", opposite = "thrownExceptions", derived = true) - public Collection getThrowingEntities(); - - public void setThrowingEntities(Collection throwingEntities); - - public void addThrowingEntities(TWithExceptions one); - - public void addThrowingEntities(TWithExceptions one, TWithExceptions... many); - - public void addThrowingEntities(Iterable many); - - public void addThrowingEntities(TWithExceptions[] many); - - public int numberOfThrowingEntities(); - - public boolean hasThrowingEntities(); - - @FameProperty(name = "catchingEntities", opposite = "caughtExceptions", derived = true) - public Collection getCatchingEntities(); - - public void setCatchingEntities(Collection catchingEntities); - - public void addCatchingEntities(TWithExceptions one); - - public void addCatchingEntities(TWithExceptions one, TWithExceptions... many); - - public void addCatchingEntities(Iterable many); - - public void addCatchingEntities(TWithExceptions[] many); - - public int numberOfCatchingEntities(); - - public boolean hasCatchingEntities(); - - @FameProperty(name = "declaringEntities", opposite = "declaredExceptions", derived = true) - public Collection getDeclaringEntities(); - - public void setDeclaringEntities(Collection declaringEntities); - - public void addDeclaringEntities(TWithExceptions one); - - public void addDeclaringEntities(TWithExceptions one, TWithExceptions... many); - - public void addDeclaringEntities(Iterable many); - - public void addDeclaringEntities(TWithExceptions[] many); - - public int numberOfDeclaringEntities(); - - public boolean hasDeclaringEntities(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TFile.java b/gen/org/moosetechnology/model/famix/famixtraits/TFile.java deleted file mode 100644 index a7e1fe3..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TFile.java +++ /dev/null @@ -1,52 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TFile") -public interface TFile { - - @FameProperty(name = "averageNumberOfCharactersPerLine", derived = true) - public Number getAverageNumberOfCharactersPerLine(); - - @FameProperty(name = "entities", opposite = "containerFiles", derived = true) - public Collection getEntities(); - - public void setEntities(Collection entities); - - public void addEntities(TWithFiles one); - - public void addEntities(TWithFiles one, TWithFiles... many); - - public void addEntities(Iterable many); - - public void addEntities(TWithFiles[] many); - - public int numberOfEntities(); - - public boolean hasEntities(); - - @FameProperty(name = "totalNumberOfLinesOfText", derived = true) - public Number getTotalNumberOfLinesOfText(); - - @FameProperty(name = "numberOfKiloBytes", derived = true) - public Number getNumberOfKiloBytes(); - - @FameProperty(name = "numberOfCharacters", derived = true) - public Number getNumberOfCharacters(); - - @FameProperty(name = "numberOfEmptyLinesOfText", derived = true) - public Number getNumberOfEmptyLinesOfText(); - - @FameProperty(name = "numberOfBytes", derived = true) - public Number getNumberOfBytes(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TFileAnchor.java b/gen/org/moosetechnology/model/famix/famixtraits/TFileAnchor.java deleted file mode 100644 index 37e2cef..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TFileAnchor.java +++ /dev/null @@ -1,31 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TFileAnchor") -public interface TFileAnchor { - - @FameProperty(name = "fileName") - public String getFileName(); - - public void setFileName(String fileName); - - @FameProperty(name = "correspondingFile") - public TFile getCorrespondingFile(); - - public void setCorrespondingFile(TFile correspondingFile); - - @FameProperty(name = "encoding") - public String getEncoding(); - - public void setEncoding(String encoding); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TFileInclude.java b/gen/org/moosetechnology/model/famix/famixtraits/TFileInclude.java deleted file mode 100644 index df70ce8..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TFileInclude.java +++ /dev/null @@ -1,27 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TFileInclude") -public interface TFileInclude { - - @FameProperty(name = "source", opposite = "outgoingIncludeRelations") - public TWithFileIncludes getSource(); - - public void setSource(TWithFileIncludes source); - - @FameProperty(name = "target", opposite = "incomingIncludeRelations") - public TWithFileIncludes getTarget(); - - public void setTarget(TWithFileIncludes target); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TFileNavigation.java b/gen/org/moosetechnology/model/famix/famixtraits/TFileNavigation.java deleted file mode 100644 index eb51714..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TFileNavigation.java +++ /dev/null @@ -1,36 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TFileNavigation") -public interface TFileNavigation { - - @FameProperty(name = "endLine") - public Number getEndLine(); - - public void setEndLine(Number endLine); - - @FameProperty(name = "endColumn") - public Number getEndColumn(); - - public void setEndColumn(Number endColumn); - - @FameProperty(name = "startColumn") - public Number getStartColumn(); - - public void setStartColumn(Number startColumn); - - @FameProperty(name = "startLine") - public Number getStartLine(); - - public void setStartLine(Number startLine); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TFileSystemEntity.java b/gen/org/moosetechnology/model/famix/famixtraits/TFileSystemEntity.java deleted file mode 100644 index 054aa17..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TFileSystemEntity.java +++ /dev/null @@ -1,24 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TFileSystemEntity") -public interface TFileSystemEntity { - - @FameProperty(name = "parentFolder", opposite = "childrenFileSystemEntities", container = true) - public TFolder getParentFolder(); - - public void setParentFolder(TFolder parentFolder); - - @FameProperty(name = "numberOfLinesOfText", derived = true) - public Number getNumberOfLinesOfText(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TFolder.java b/gen/org/moosetechnology/model/famix/famixtraits/TFolder.java deleted file mode 100644 index adfb771..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TFolder.java +++ /dev/null @@ -1,46 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TFolder") -public interface TFolder { - - @FameProperty(name = "numberOfFiles", derived = true) - public Number getNumberOfFiles(); - - @FameProperty(name = "childrenFileSystemEntities", opposite = "parentFolder", derived = true) - public Collection getChildrenFileSystemEntities(); - - public void setChildrenFileSystemEntities(Collection childrenFileSystemEntities); - - public void addChildrenFileSystemEntities(TFileSystemEntity one); - - public void addChildrenFileSystemEntities(TFileSystemEntity one, TFileSystemEntity... many); - - public void addChildrenFileSystemEntities(Iterable many); - - public void addChildrenFileSystemEntities(TFileSystemEntity[] many); - - public int numberOfChildrenFileSystemEntities(); - - public boolean hasChildrenFileSystemEntities(); - - @FameProperty(name = "totalNumberOfLinesOfText", derived = true) - public Number getTotalNumberOfLinesOfText(); - - @FameProperty(name = "numberOfFolders", derived = true) - public Number getNumberOfFolders(); - - @FameProperty(name = "numberOfEmptyLinesOfText", derived = true) - public Number getNumberOfEmptyLinesOfText(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TFunction.java b/gen/org/moosetechnology/model/famix/famixtraits/TFunction.java deleted file mode 100644 index 7cd5aac..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TFunction.java +++ /dev/null @@ -1,22 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TFunction") -public interface TFunction { - - @FameProperty(name = "functionOwner", opposite = "functions", container = true) - public TWithFunctions getFunctionOwner(); - - public void setFunctionOwner(TWithFunctions functionOwner); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TGlobalVariable.java b/gen/org/moosetechnology/model/famix/famixtraits/TGlobalVariable.java deleted file mode 100644 index a86c3d9..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TGlobalVariable.java +++ /dev/null @@ -1,22 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TGlobalVariable") -public interface TGlobalVariable { - - @FameProperty(name = "parentScope", opposite = "globalVariables", container = true) - public TWithGlobalVariables getParentScope(); - - public void setParentScope(TWithGlobalVariables parentScope); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/THasImmediateSource.java b/gen/org/moosetechnology/model/famix/famixtraits/THasImmediateSource.java deleted file mode 100644 index 01f68ee..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/THasImmediateSource.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("THasImmediateSource") -public interface THasImmediateSource { - - @FameProperty(name = "source") - public String getSource(); - - public void setSource(String source); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/THasKind.java b/gen/org/moosetechnology/model/famix/famixtraits/THasKind.java deleted file mode 100644 index d14adf9..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/THasKind.java +++ /dev/null @@ -1,33 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("THasKind") -public interface THasKind { - - @FameProperty(name = "isGetter", derived = true) - public Boolean getIsGetter(); - - @FameProperty(name = "isConstant", derived = true) - public Boolean getIsConstant(); - - @FameProperty(name = "kind") - public String getKind(); - - public void setKind(String kind); - - @FameProperty(name = "isConstructor", derived = true) - public Boolean getIsConstructor(); - - @FameProperty(name = "isSetter", derived = true) - public Boolean getIsSetter(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/THasModifiers.java b/gen/org/moosetechnology/model/famix/famixtraits/THasModifiers.java deleted file mode 100644 index fded1db..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/THasModifiers.java +++ /dev/null @@ -1,40 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("THasModifiers") -public interface THasModifiers { - - @FameProperty(name = "isFinal", derived = true) - public Boolean getIsFinal(); - - @FameProperty(name = "modifiers") - public Collection getModifiers(); - - public void setModifiers(Collection modifiers); - - public void addModifiers(String one); - - public void addModifiers(String one, String... many); - - public void addModifiers(Iterable many); - - public void addModifiers(String[] many); - - public int numberOfModifiers(); - - public boolean hasModifiers(); - - @FameProperty(name = "isAbstract", derived = true) - public Boolean getIsAbstract(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/THasSignature.java b/gen/org/moosetechnology/model/famix/famixtraits/THasSignature.java deleted file mode 100644 index d94a496..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/THasSignature.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("THasSignature") -public interface THasSignature { - - @FameProperty(name = "signature") - public String getSignature(); - - public void setSignature(String signature); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/THasVisibility.java b/gen/org/moosetechnology/model/famix/famixtraits/THasVisibility.java deleted file mode 100644 index 09c02e9..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/THasVisibility.java +++ /dev/null @@ -1,33 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("THasVisibility") -public interface THasVisibility { - - @FameProperty(name = "isProtected", derived = true) - public Boolean getIsProtected(); - - @FameProperty(name = "visibility") - public String getVisibility(); - - public void setVisibility(String visibility); - - @FameProperty(name = "isPublic", derived = true) - public Boolean getIsPublic(); - - @FameProperty(name = "isPackage", derived = true) - public Boolean getIsPackage(); - - @FameProperty(name = "isPrivate", derived = true) - public Boolean getIsPrivate(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/THeader.java b/gen/org/moosetechnology/model/famix/famixtraits/THeader.java deleted file mode 100644 index a10b726..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/THeader.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("THeader") -public interface THeader { - - @FameProperty(name = "headerOwner", opposite = "header") - public TWithHeaders getHeaderOwner(); - - public void setHeaderOwner(TWithHeaders headerOwner); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TImplementable.java b/gen/org/moosetechnology/model/famix/famixtraits/TImplementable.java deleted file mode 100644 index 610cc1f..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TImplementable.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TImplementable") -public interface TImplementable { - - @FameProperty(name = "implementations", opposite = "interface", derived = true) - public Collection getImplementations(); - - public void setImplementations(Collection implementations); - - public void addImplementations(TImplementation one); - - public void addImplementations(TImplementation one, TImplementation... many); - - public void addImplementations(Iterable many); - - public void addImplementations(TImplementation[] many); - - public int numberOfImplementations(); - - public boolean hasImplementations(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TImplementation.java b/gen/org/moosetechnology/model/famix/famixtraits/TImplementation.java deleted file mode 100644 index 1d42245..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TImplementation.java +++ /dev/null @@ -1,27 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TImplementation") -public interface TImplementation { - - @FameProperty(name = "interface", opposite = "implementations") - public TImplementable getMyInterface(); - - public void setMyInterface(TImplementable myInterface); - - @FameProperty(name = "implementingClass", opposite = "interfaceImplementations") - public TCanImplement getImplementingClass(); - - public void setImplementingClass(TCanImplement implementingClass); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TImplicitVariable.java b/gen/org/moosetechnology/model/famix/famixtraits/TImplicitVariable.java deleted file mode 100644 index e13eca3..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TImplicitVariable.java +++ /dev/null @@ -1,22 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TImplicitVariable") -public interface TImplicitVariable { - - @FameProperty(name = "parentBehaviouralEntity", opposite = "implicitVariables", container = true) - public TWithImplicitVariables getParentBehaviouralEntity(); - - public void setParentBehaviouralEntity(TWithImplicitVariables parentBehaviouralEntity); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TIndexedFileNavigation.java b/gen/org/moosetechnology/model/famix/famixtraits/TIndexedFileNavigation.java deleted file mode 100644 index 39c5585..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TIndexedFileNavigation.java +++ /dev/null @@ -1,26 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TIndexedFileNavigation") -public interface TIndexedFileNavigation { - - @FameProperty(name = "startPos") - public Number getStartPos(); - - public void setStartPos(Number startPos); - - @FameProperty(name = "endPos") - public Number getEndPos(); - - public void setEndPos(Number endPos); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TInheritance.java b/gen/org/moosetechnology/model/famix/famixtraits/TInheritance.java deleted file mode 100644 index 12fe668..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TInheritance.java +++ /dev/null @@ -1,27 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TInheritance") -public interface TInheritance { - - @FameProperty(name = "superclass", opposite = "subInheritances") - public TWithInheritances getSuperclass(); - - public void setSuperclass(TWithInheritances superclass); - - @FameProperty(name = "subclass", opposite = "superInheritances") - public TWithInheritances getSubclass(); - - public void setSubclass(TWithInheritances subclass); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TInvocable.java b/gen/org/moosetechnology/model/famix/famixtraits/TInvocable.java deleted file mode 100644 index 655234e..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TInvocable.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TInvocable") -public interface TInvocable { - - @FameProperty(name = "incomingInvocations", opposite = "candidates", derived = true) - public Collection getIncomingInvocations(); - - public void setIncomingInvocations(Collection incomingInvocations); - - public void addIncomingInvocations(TInvocation one); - - public void addIncomingInvocations(TInvocation one, TInvocation... many); - - public void addIncomingInvocations(Iterable many); - - public void addIncomingInvocations(TInvocation[] many); - - public int numberOfIncomingInvocations(); - - public boolean hasIncomingInvocations(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TInvocation.java b/gen/org/moosetechnology/model/famix/famixtraits/TInvocation.java deleted file mode 100644 index be1b875..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TInvocation.java +++ /dev/null @@ -1,45 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TInvocation") -public interface TInvocation { - - @FameProperty(name = "candidates", opposite = "incomingInvocations") - public Collection getCandidates(); - - public void setCandidates(Collection candidates); - - public void addCandidates(TInvocable one); - - public void addCandidates(TInvocable one, TInvocable... many); - - public void addCandidates(Iterable many); - - public void addCandidates(TInvocable[] many); - - public int numberOfCandidates(); - - public boolean hasCandidates(); - - @FameProperty(name = "receiver", opposite = "receivingInvocations") - public TInvocationsReceiver getReceiver(); - - public void setReceiver(TInvocationsReceiver receiver); - - @FameProperty(name = "sender", opposite = "outgoingInvocations") - public TWithInvocations getSender(); - - public void setSender(TWithInvocations sender); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TInvocationsReceiver.java b/gen/org/moosetechnology/model/famix/famixtraits/TInvocationsReceiver.java deleted file mode 100644 index c74b143..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TInvocationsReceiver.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TInvocationsReceiver") -public interface TInvocationsReceiver { - - @FameProperty(name = "receivingInvocations", opposite = "receiver", derived = true) - public Collection getReceivingInvocations(); - - public void setReceivingInvocations(Collection receivingInvocations); - - public void addReceivingInvocations(TInvocation one); - - public void addReceivingInvocations(TInvocation one, TInvocation... many); - - public void addReceivingInvocations(Iterable many); - - public void addReceivingInvocations(TInvocation[] many); - - public int numberOfReceivingInvocations(); - - public boolean hasReceivingInvocations(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TLCOMMetrics.java b/gen/org/moosetechnology/model/famix/famixtraits/TLCOMMetrics.java deleted file mode 100644 index 8814145..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TLCOMMetrics.java +++ /dev/null @@ -1,22 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TLCOMMetrics") -public interface TLCOMMetrics { - - @FameProperty(name = "lcom2", derived = true) - public Number getLcom2(); - - @FameProperty(name = "lcom3", derived = true) - public Number getLcom3(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TLocalVariable.java b/gen/org/moosetechnology/model/famix/famixtraits/TLocalVariable.java deleted file mode 100644 index 48727e5..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TLocalVariable.java +++ /dev/null @@ -1,22 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TLocalVariable") -public interface TLocalVariable { - - @FameProperty(name = "parentBehaviouralEntity", opposite = "localVariables", container = true) - public TWithLocalVariables getParentBehaviouralEntity(); - - public void setParentBehaviouralEntity(TWithLocalVariables parentBehaviouralEntity); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TMethod.java b/gen/org/moosetechnology/model/famix/famixtraits/TMethod.java deleted file mode 100644 index 8729361..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TMethod.java +++ /dev/null @@ -1,25 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TMethod") -public interface TMethod { - - @FameProperty(name = "hasClassScope", derived = true) - public Boolean getHasClassScope(); - - @FameProperty(name = "parentType", opposite = "methods", container = true) - public TWithMethods getParentType(); - - public void setParentType(TWithMethods parentType); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TMethodMetrics.java b/gen/org/moosetechnology/model/famix/famixtraits/TMethodMetrics.java deleted file mode 100644 index e707ef5..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TMethodMetrics.java +++ /dev/null @@ -1,27 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TMethodMetrics") -public interface TMethodMetrics { - - @FameProperty(name = "hierarchyNestingLevel", derived = true) - public Number getHierarchyNestingLevel(); - - @FameProperty(name = "numberOfAnnotationInstances", derived = true) - public Number getNumberOfAnnotationInstances(); - - @FameProperty(name = "cyclomaticComplexity") - public Number getCyclomaticComplexity(); - - public void setCyclomaticComplexity(Number cyclomaticComplexity); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TModule.java b/gen/org/moosetechnology/model/famix/famixtraits/TModule.java deleted file mode 100644 index d7c5ce3..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TModule.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TModule") -public interface TModule { - - @FameProperty(name = "moduleEntities", opposite = "parentModule", derived = true) - public Collection getModuleEntities(); - - public void setModuleEntities(Collection moduleEntities); - - public void addModuleEntities(TDefinedInModule one); - - public void addModuleEntities(TDefinedInModule one, TDefinedInModule... many); - - public void addModuleEntities(Iterable many); - - public void addModuleEntities(TDefinedInModule[] many); - - public int numberOfModuleEntities(); - - public boolean hasModuleEntities(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TMultipleFileAnchor.java b/gen/org/moosetechnology/model/famix/famixtraits/TMultipleFileAnchor.java deleted file mode 100644 index 34fdc40..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TMultipleFileAnchor.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TMultipleFileAnchor") -public interface TMultipleFileAnchor { - - @FameProperty(name = "fileAnchors") - public Collection getFileAnchors(); - - public void setFileAnchors(Collection fileAnchors); - - public void addFileAnchors(TFileAnchor one); - - public void addFileAnchors(TFileAnchor one, TFileAnchor... many); - - public void addFileAnchors(Iterable many); - - public void addFileAnchors(TFileAnchor[] many); - - public int numberOfFileAnchors(); - - public boolean hasFileAnchors(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TNamedEntity.java b/gen/org/moosetechnology/model/famix/famixtraits/TNamedEntity.java deleted file mode 100644 index 897a351..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TNamedEntity.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TNamedEntity") -public interface TNamedEntity { - - @FameProperty(name = "name") - public String getName(); - - public void setName(String name); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TNamespace.java b/gen/org/moosetechnology/model/famix/famixtraits/TNamespace.java deleted file mode 100644 index 872c2d6..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TNamespace.java +++ /dev/null @@ -1,16 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TNamespace") -public interface TNamespace { - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TPackage.java b/gen/org/moosetechnology/model/famix/famixtraits/TPackage.java deleted file mode 100644 index e9eb83b..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TPackage.java +++ /dev/null @@ -1,38 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TPackage") -public interface TPackage { - - @FameProperty(name = "weightedMethodCount", derived = true) - public Number getWeightedMethodCount(); - - @FameProperty(name = "childEntities", opposite = "parentPackage", derived = true) - public Collection getChildEntities(); - - public void setChildEntities(Collection childEntities); - - public void addChildEntities(TPackageable one); - - public void addChildEntities(TPackageable one, TPackageable... many); - - public void addChildEntities(Iterable many); - - public void addChildEntities(TPackageable[] many); - - public int numberOfChildEntities(); - - public boolean hasChildEntities(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TPackageable.java b/gen/org/moosetechnology/model/famix/famixtraits/TPackageable.java deleted file mode 100644 index 0b1db6f..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TPackageable.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TPackageable") -public interface TPackageable { - - @FameProperty(name = "parentPackage", opposite = "childEntities", container = true) - public TPackage getParentPackage(); - - public void setParentPackage(TPackage parentPackage); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TParameter.java b/gen/org/moosetechnology/model/famix/famixtraits/TParameter.java deleted file mode 100644 index 1cd34ab..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TParameter.java +++ /dev/null @@ -1,22 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TParameter") -public interface TParameter { - - @FameProperty(name = "parentBehaviouralEntity", opposite = "parameters", container = true) - public TWithParameters getParentBehaviouralEntity(); - - public void setParentBehaviouralEntity(TWithParameters parentBehaviouralEntity); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TParameterType.java b/gen/org/moosetechnology/model/famix/famixtraits/TParameterType.java deleted file mode 100644 index 0b896d0..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TParameterType.java +++ /dev/null @@ -1,15 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Famix-Traits") -@FameDescription("TParameterType") -public interface TParameterType { - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TParameterizedType.java b/gen/org/moosetechnology/model/famix/famixtraits/TParameterizedType.java deleted file mode 100644 index 0de7f6a..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TParameterizedType.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TParameterizedType") -public interface TParameterizedType { - - @FameProperty(name = "parameterizableClass", opposite = "parameterizedTypes") - public TWithParameterizedTypes getParameterizableClass(); - - public void setParameterizableClass(TWithParameterizedTypes parameterizableClass); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TParameterizedTypeUser.java b/gen/org/moosetechnology/model/famix/famixtraits/TParameterizedTypeUser.java deleted file mode 100644 index 3afd314..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TParameterizedTypeUser.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TParameterizedTypeUser") -public interface TParameterizedTypeUser { - - @FameProperty(name = "argumentsInParameterizedTypes", opposite = "arguments", derived = true) - public Collection getArgumentsInParameterizedTypes(); - - public void setArgumentsInParameterizedTypes(Collection argumentsInParameterizedTypes); - - public void addArgumentsInParameterizedTypes(TWithParameterizedTypeUsers one); - - public void addArgumentsInParameterizedTypes(TWithParameterizedTypeUsers one, TWithParameterizedTypeUsers... many); - - public void addArgumentsInParameterizedTypes(Iterable many); - - public void addArgumentsInParameterizedTypes(TWithParameterizedTypeUsers[] many); - - public int numberOfArgumentsInParameterizedTypes(); - - public boolean hasArgumentsInParameterizedTypes(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TPreprocessorDefine.java b/gen/org/moosetechnology/model/famix/famixtraits/TPreprocessorDefine.java deleted file mode 100644 index 1afc9dc..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TPreprocessorDefine.java +++ /dev/null @@ -1,15 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Famix-Traits") -@FameDescription("TPreprocessorDefine") -public interface TPreprocessorDefine { - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TPreprocessorIfdef.java b/gen/org/moosetechnology/model/famix/famixtraits/TPreprocessorIfdef.java deleted file mode 100644 index 2c32c6a..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TPreprocessorIfdef.java +++ /dev/null @@ -1,15 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Famix-Traits") -@FameDescription("TPreprocessorIfdef") -public interface TPreprocessorIfdef { - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TPrimitiveType.java b/gen/org/moosetechnology/model/famix/famixtraits/TPrimitiveType.java deleted file mode 100644 index ac09712..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TPrimitiveType.java +++ /dev/null @@ -1,16 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TPrimitiveType") -public interface TPrimitiveType { - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TReference.java b/gen/org/moosetechnology/model/famix/famixtraits/TReference.java deleted file mode 100644 index 2d4be19..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TReference.java +++ /dev/null @@ -1,27 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TReference") -public interface TReference { - - @FameProperty(name = "referredType", opposite = "incomingReferences") - public TReferenceable getReferredType(); - - public void setReferredType(TReferenceable referredType); - - @FameProperty(name = "referencer", opposite = "outgoingReferences") - public TWithReferences getReferencer(); - - public void setReferencer(TWithReferences referencer); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TReferenceable.java b/gen/org/moosetechnology/model/famix/famixtraits/TReferenceable.java deleted file mode 100644 index 761cb4f..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TReferenceable.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TReferenceable") -public interface TReferenceable { - - @FameProperty(name = "incomingReferences", opposite = "referredType", derived = true) - public Collection getIncomingReferences(); - - public void setIncomingReferences(Collection incomingReferences); - - public void addIncomingReferences(TReference one); - - public void addIncomingReferences(TReference one, TReference... many); - - public void addIncomingReferences(Iterable many); - - public void addIncomingReferences(TReference[] many); - - public int numberOfIncomingReferences(); - - public boolean hasIncomingReferences(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TRelativeSourceAnchor.java b/gen/org/moosetechnology/model/famix/famixtraits/TRelativeSourceAnchor.java deleted file mode 100644 index eb20375..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TRelativeSourceAnchor.java +++ /dev/null @@ -1,31 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TRelativeSourceAnchor") -public interface TRelativeSourceAnchor { - - @FameProperty(name = "startPos") - public Number getStartPos(); - - public void setStartPos(Number startPos); - - @FameProperty(name = "relatedAnchor") - public TSourceAnchor getRelatedAnchor(); - - public void setRelatedAnchor(TSourceAnchor relatedAnchor); - - @FameProperty(name = "endPos") - public Number getEndPos(); - - public void setEndPos(Number endPos); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TSourceAnchor.java b/gen/org/moosetechnology/model/famix/famixtraits/TSourceAnchor.java deleted file mode 100644 index f9664f8..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TSourceAnchor.java +++ /dev/null @@ -1,24 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TSourceAnchor") -public interface TSourceAnchor { - - @FameProperty(name = "lineCount", derived = true) - public Number getLineCount(); - - @FameProperty(name = "element", opposite = "sourceAnchor") - public TSourceEntity getElement(); - - public void setElement(TSourceEntity element); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TSourceEntity.java b/gen/org/moosetechnology/model/famix/famixtraits/TSourceEntity.java deleted file mode 100644 index a8a6273..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TSourceEntity.java +++ /dev/null @@ -1,47 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixreplication.Replica; - - -@FamePackage("Famix-Traits") -@FameDescription("TSourceEntity") -public interface TSourceEntity { - - @FameProperty(name = "duplicationRate", derived = true) - public Number getDuplicationRate(); - - @FameProperty(name = "isStub") - public Boolean getIsStub(); - - public void setIsStub(Boolean isStub); - - @FameProperty(name = "sourceAnchor", opposite = "element", derived = true) - public TSourceAnchor getSourceAnchor(); - - public void setSourceAnchor(TSourceAnchor sourceAnchor); - - @FameProperty(name = "containsReplicas", derived = true) - public Boolean getContainsReplicas(); - - @FameProperty(name = "numberOfLinesOfCodeWithMoreThanOneCharacter", derived = true) - public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter(); - - @FameProperty(name = "replicas", derived = true) - public Replica getReplicas(); - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode(); - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode); - - @FameProperty(name = "sourceText", derived = true) - public String getSourceText(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TSourceLanguage.java b/gen/org/moosetechnology/model/famix/famixtraits/TSourceLanguage.java deleted file mode 100644 index 1778764..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TSourceLanguage.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TSourceLanguage") -public interface TSourceLanguage { - - @FameProperty(name = "sourcedEntities", opposite = "declaredSourceLanguage", derived = true) - public Collection getSourcedEntities(); - - public void setSourcedEntities(Collection sourcedEntities); - - public void addSourcedEntities(TWithSourceLanguages one); - - public void addSourcedEntities(TWithSourceLanguages one, TWithSourceLanguages... many); - - public void addSourcedEntities(Iterable many); - - public void addSourcedEntities(TWithSourceLanguages[] many); - - public int numberOfSourcedEntities(); - - public boolean hasSourcedEntities(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TStructuralEntity.java b/gen/org/moosetechnology/model/famix/famixtraits/TStructuralEntity.java deleted file mode 100644 index c2cb993..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TStructuralEntity.java +++ /dev/null @@ -1,16 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TStructuralEntity") -public interface TStructuralEntity { - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TTemplate.java b/gen/org/moosetechnology/model/famix/famixtraits/TTemplate.java deleted file mode 100644 index cbdc272..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TTemplate.java +++ /dev/null @@ -1,39 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TTemplate") -public interface TTemplate { - - @FameProperty(name = "templateUsers", opposite = "template", derived = true) - public Collection getTemplateUsers(); - - public void setTemplateUsers(Collection templateUsers); - - public void addTemplateUsers(TTemplateUser one); - - public void addTemplateUsers(TTemplateUser one, TTemplateUser... many); - - public void addTemplateUsers(Iterable many); - - public void addTemplateUsers(TTemplateUser[] many); - - public int numberOfTemplateUsers(); - - public boolean hasTemplateUsers(); - - @FameProperty(name = "templateOwner", opposite = "templates") - public TWithTemplates getTemplateOwner(); - - public void setTemplateOwner(TWithTemplates templateOwner); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TTemplateUser.java b/gen/org/moosetechnology/model/famix/famixtraits/TTemplateUser.java deleted file mode 100644 index d2b2441..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TTemplateUser.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TTemplateUser") -public interface TTemplateUser { - - @FameProperty(name = "template", opposite = "templateUsers") - public TTemplate getTemplate(); - - public void setTemplate(TTemplate template); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TThrownException.java b/gen/org/moosetechnology/model/famix/famixtraits/TThrownException.java deleted file mode 100644 index 8876ce0..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TThrownException.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TThrownException") -public interface TThrownException { - - @FameProperty(name = "definingEntity", opposite = "thrownExceptions") - public TWithThrownExceptions getDefiningEntity(); - - public void setDefiningEntity(TWithThrownExceptions definingEntity); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TTrait.java b/gen/org/moosetechnology/model/famix/famixtraits/TTrait.java deleted file mode 100644 index 132ceab..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TTrait.java +++ /dev/null @@ -1,39 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TTrait") -public interface TTrait { - - @FameProperty(name = "traitOwner", opposite = "traits") - public TWithTraits getTraitOwner(); - - public void setTraitOwner(TWithTraits traitOwner); - - @FameProperty(name = "incomingTraitUsages", opposite = "trait", derived = true) - public Collection getIncomingTraitUsages(); - - public void setIncomingTraitUsages(Collection incomingTraitUsages); - - public void addIncomingTraitUsages(TTraitUsage one); - - public void addIncomingTraitUsages(TTraitUsage one, TTraitUsage... many); - - public void addIncomingTraitUsages(Iterable many); - - public void addIncomingTraitUsages(TTraitUsage[] many); - - public int numberOfIncomingTraitUsages(); - - public boolean hasIncomingTraitUsages(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TTraitUsage.java b/gen/org/moosetechnology/model/famix/famixtraits/TTraitUsage.java deleted file mode 100644 index 881d6fb..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TTraitUsage.java +++ /dev/null @@ -1,27 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TTraitUsage") -public interface TTraitUsage { - - @FameProperty(name = "trait", opposite = "incomingTraitUsages") - public TTrait getTrait(); - - public void setTrait(TTrait trait); - - @FameProperty(name = "user", opposite = "outgoingTraitUsages") - public TTraitUser getUser(); - - public void setUser(TTraitUser user); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TTraitUser.java b/gen/org/moosetechnology/model/famix/famixtraits/TTraitUser.java deleted file mode 100644 index 485d3b4..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TTraitUser.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TTraitUser") -public interface TTraitUser { - - @FameProperty(name = "outgoingTraitUsages", opposite = "user", derived = true) - public Collection getOutgoingTraitUsages(); - - public void setOutgoingTraitUsages(Collection outgoingTraitUsages); - - public void addOutgoingTraitUsages(TTraitUsage one); - - public void addOutgoingTraitUsages(TTraitUsage one, TTraitUsage... many); - - public void addOutgoingTraitUsages(Iterable many); - - public void addOutgoingTraitUsages(TTraitUsage[] many); - - public int numberOfOutgoingTraitUsages(); - - public boolean hasOutgoingTraitUsages(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TType.java b/gen/org/moosetechnology/model/famix/famixtraits/TType.java deleted file mode 100644 index de8da38..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TType.java +++ /dev/null @@ -1,40 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TType") -public interface TType { - - @FameProperty(name = "typeContainer", opposite = "types", container = true) - public TWithTypes getTypeContainer(); - - public void setTypeContainer(TWithTypes typeContainer); - - @FameProperty(name = "typedEntities", opposite = "declaredType", derived = true) - public Collection getTypedEntities(); - - public void setTypedEntities(Collection typedEntities); - - public void addTypedEntities(TTypedEntity one); - - public void addTypedEntities(TTypedEntity one, TTypedEntity... many); - - public void addTypedEntities(Iterable many); - - public void addTypedEntities(TTypedEntity[] many); - - public int numberOfTypedEntities(); - - public boolean hasTypedEntities(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TTypeAlias.java b/gen/org/moosetechnology/model/famix/famixtraits/TTypeAlias.java deleted file mode 100644 index 50856b7..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TTypeAlias.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TTypeAlias") -public interface TTypeAlias { - - @FameProperty(name = "aliasedType", opposite = "typeAliases") - public TWithTypeAliases getAliasedType(); - - public void setAliasedType(TWithTypeAliases aliasedType); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TTypedAnnotationInstance.java b/gen/org/moosetechnology/model/famix/famixtraits/TTypedAnnotationInstance.java deleted file mode 100644 index bfcd46a..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TTypedAnnotationInstance.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TTypedAnnotationInstance") -public interface TTypedAnnotationInstance { - - @FameProperty(name = "annotationType", opposite = "instances") - public TAnnotationType getAnnotationType(); - - public void setAnnotationType(TAnnotationType annotationType); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TTypedAnnotationInstanceAttribute.java b/gen/org/moosetechnology/model/famix/famixtraits/TTypedAnnotationInstanceAttribute.java deleted file mode 100644 index d287233..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TTypedAnnotationInstanceAttribute.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TTypedAnnotationInstanceAttribute") -public interface TTypedAnnotationInstanceAttribute { - - @FameProperty(name = "annotationTypeAttribute", opposite = "annotationAttributeInstances") - public TAnnotationTypeAttribute getAnnotationTypeAttribute(); - - public void setAnnotationTypeAttribute(TAnnotationTypeAttribute annotationTypeAttribute); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TTypedEntity.java b/gen/org/moosetechnology/model/famix/famixtraits/TTypedEntity.java deleted file mode 100644 index 23fb169..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TTypedEntity.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TTypedEntity") -public interface TTypedEntity { - - @FameProperty(name = "declaredType", opposite = "typedEntities") - public TType getDeclaredType(); - - public void setDeclaredType(TType declaredType); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TUnknownSourceLanguage.java b/gen/org/moosetechnology/model/famix/famixtraits/TUnknownSourceLanguage.java deleted file mode 100644 index aa60ccf..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TUnknownSourceLanguage.java +++ /dev/null @@ -1,15 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Famix-Traits") -@FameDescription("TUnknownSourceLanguage") -public interface TUnknownSourceLanguage { - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TUnknownVariable.java b/gen/org/moosetechnology/model/famix/famixtraits/TUnknownVariable.java deleted file mode 100644 index b585c46..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TUnknownVariable.java +++ /dev/null @@ -1,16 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Traits") -@FameDescription("TUnknownVariable") -public interface TUnknownVariable { - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithAccesses.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithAccesses.java deleted file mode 100644 index dded391..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithAccesses.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithAccesses") -public interface TWithAccesses { - - @FameProperty(name = "accesses", opposite = "accessor", derived = true) - public Collection getAccesses(); - - public void setAccesses(Collection accesses); - - public void addAccesses(TAccess one); - - public void addAccesses(TAccess one, TAccess... many); - - public void addAccesses(Iterable many); - - public void addAccesses(TAccess[] many); - - public int numberOfAccesses(); - - public boolean hasAccesses(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithAnnotationInstanceAttributes.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithAnnotationInstanceAttributes.java deleted file mode 100644 index 4e39f17..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithAnnotationInstanceAttributes.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithAnnotationInstanceAttributes") -public interface TWithAnnotationInstanceAttributes { - - @FameProperty(name = "attributes", opposite = "parentAnnotationInstance", derived = true) - public Collection getAttributes(); - - public void setAttributes(Collection attributes); - - public void addAttributes(TAnnotationInstanceAttribute one); - - public void addAttributes(TAnnotationInstanceAttribute one, TAnnotationInstanceAttribute... many); - - public void addAttributes(Iterable many); - - public void addAttributes(TAnnotationInstanceAttribute[] many); - - public int numberOfAttributes(); - - public boolean hasAttributes(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithAnnotationInstances.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithAnnotationInstances.java deleted file mode 100644 index 38cb54e..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithAnnotationInstances.java +++ /dev/null @@ -1,37 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithAnnotationInstances") -public interface TWithAnnotationInstances { - - @FameProperty(name = "numberOfAnnotationInstances", derived = true) - public Number getNumberOfAnnotationInstances(); - - @FameProperty(name = "annotationInstances", opposite = "annotatedEntity", derived = true) - public Collection getAnnotationInstances(); - - public void setAnnotationInstances(Collection annotationInstances); - - public void addAnnotationInstances(TAnnotationInstance one); - - public void addAnnotationInstances(TAnnotationInstance one, TAnnotationInstance... many); - - public void addAnnotationInstances(Iterable many); - - public void addAnnotationInstances(TAnnotationInstance[] many); - - public int numberOfAnnotationInstances(); - - public boolean hasAnnotationInstances(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithAnnotationTypes.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithAnnotationTypes.java deleted file mode 100644 index 576ddef..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithAnnotationTypes.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithAnnotationTypes") -public interface TWithAnnotationTypes { - - @FameProperty(name = "definedAnnotationTypes", opposite = "annotationTypesContainer", derived = true) - public Collection getDefinedAnnotationTypes(); - - public void setDefinedAnnotationTypes(Collection definedAnnotationTypes); - - public void addDefinedAnnotationTypes(TAnnotationType one); - - public void addDefinedAnnotationTypes(TAnnotationType one, TAnnotationType... many); - - public void addDefinedAnnotationTypes(Iterable many); - - public void addDefinedAnnotationTypes(TAnnotationType[] many); - - public int numberOfDefinedAnnotationTypes(); - - public boolean hasDefinedAnnotationTypes(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithAttributes.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithAttributes.java deleted file mode 100644 index 1fcc93b..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithAttributes.java +++ /dev/null @@ -1,37 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithAttributes") -public interface TWithAttributes { - - @FameProperty(name = "numberOfAttributes", derived = true) - public Number getNumberOfAttributes(); - - @FameProperty(name = "attributes", opposite = "parentType", derived = true) - public Collection getAttributes(); - - public void setAttributes(Collection attributes); - - public void addAttributes(TAttribute one); - - public void addAttributes(TAttribute one, TAttribute... many); - - public void addAttributes(Iterable many); - - public void addAttributes(TAttribute[] many); - - public int numberOfAttributes(); - - public boolean hasAttributes(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithCaughtExceptions.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithCaughtExceptions.java deleted file mode 100644 index e765cec..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithCaughtExceptions.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithCaughtExceptions") -public interface TWithCaughtExceptions { - - @FameProperty(name = "caughtExceptions", opposite = "definingEntity", derived = true) - public Collection getCaughtExceptions(); - - public void setCaughtExceptions(Collection caughtExceptions); - - public void addCaughtExceptions(TCaughtException one); - - public void addCaughtExceptions(TCaughtException one, TCaughtException... many); - - public void addCaughtExceptions(Iterable many); - - public void addCaughtExceptions(TCaughtException[] many); - - public int numberOfCaughtExceptions(); - - public boolean hasCaughtExceptions(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithClassScope.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithClassScope.java deleted file mode 100644 index 3f71a12..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithClassScope.java +++ /dev/null @@ -1,15 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithClassScope") -public interface TWithClassScope { - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithClasses.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithClasses.java deleted file mode 100644 index 19b10fe..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithClasses.java +++ /dev/null @@ -1,19 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithClasses") -public interface TWithClasses { - - @FameProperty(name = "numberOfClasses", derived = true) - public Number getNumberOfClasses(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithComments.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithComments.java deleted file mode 100644 index 5acd4d4..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithComments.java +++ /dev/null @@ -1,40 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithComments") -public interface TWithComments { - - @FameProperty(name = "hasComments", derived = true) - public Boolean getHasComments(); - - @FameProperty(name = "comments", opposite = "container", derived = true) - public Collection getComments(); - - public void setComments(Collection comments); - - public void addComments(TComment one); - - public void addComments(TComment one, TComment... many); - - public void addComments(Iterable many); - - public void addComments(TComment[] many); - - public int numberOfComments(); - - public boolean hasComments(); - - @FameProperty(name = "numberOfComments", derived = true) - public Number getNumberOfComments(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithCompilationUnit.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithCompilationUnit.java deleted file mode 100644 index e610fb2..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithCompilationUnit.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithCompilationUnit") -public interface TWithCompilationUnit { - - @FameProperty(name = "compilationUnit", opposite = "compilationUnitOwner", derived = true) - public TCompilationUnit getCompilationUnit(); - - public void setCompilationUnit(TCompilationUnit compilationUnit); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithCompilationUnits.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithCompilationUnits.java deleted file mode 100644 index fe85ff0..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithCompilationUnits.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithCompilationUnits") -public interface TWithCompilationUnits { - - @FameProperty(name = "compilationUnit", opposite = "compilationUnitOwner", derived = true) - public TCompilationUnit getCompilationUnit(); - - public void setCompilationUnit(TCompilationUnit compilationUnit); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithDeclaredExceptions.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithDeclaredExceptions.java deleted file mode 100644 index d6f7a7e..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithDeclaredExceptions.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithDeclaredExceptions") -public interface TWithDeclaredExceptions { - - @FameProperty(name = "declaredExceptions", opposite = "definingEntity", derived = true) - public Collection getDeclaredExceptions(); - - public void setDeclaredExceptions(Collection declaredExceptions); - - public void addDeclaredExceptions(TDeclaredException one); - - public void addDeclaredExceptions(TDeclaredException one, TDeclaredException... many); - - public void addDeclaredExceptions(Iterable many); - - public void addDeclaredExceptions(TDeclaredException[] many); - - public int numberOfDeclaredExceptions(); - - public boolean hasDeclaredExceptions(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithDereferencedInvocations.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithDereferencedInvocations.java deleted file mode 100644 index 0eea3f8..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithDereferencedInvocations.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithDereferencedInvocations") -public interface TWithDereferencedInvocations { - - @FameProperty(name = "dereferencedInvocations", opposite = "referencer", derived = true) - public Collection getDereferencedInvocations(); - - public void setDereferencedInvocations(Collection dereferencedInvocations); - - public void addDereferencedInvocations(TDereferencedInvocation one); - - public void addDereferencedInvocations(TDereferencedInvocation one, TDereferencedInvocation... many); - - public void addDereferencedInvocations(Iterable many); - - public void addDereferencedInvocations(TDereferencedInvocation[] many); - - public int numberOfDereferencedInvocations(); - - public boolean hasDereferencedInvocations(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithEnumValues.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithEnumValues.java deleted file mode 100644 index 5e2a96d..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithEnumValues.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithEnumValues") -public interface TWithEnumValues { - - @FameProperty(name = "enumValues", opposite = "parentEnum", derived = true) - public Collection getEnumValues(); - - public void setEnumValues(Collection enumValues); - - public void addEnumValues(TEnumValue one); - - public void addEnumValues(TEnumValue one, TEnumValue... many); - - public void addEnumValues(Iterable many); - - public void addEnumValues(TEnumValue[] many); - - public int numberOfEnumValues(); - - public boolean hasEnumValues(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithExceptions.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithExceptions.java deleted file mode 100644 index be40158..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithExceptions.java +++ /dev/null @@ -1,68 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithExceptions") -public interface TWithExceptions { - - @FameProperty(name = "thrownExceptions", opposite = "throwingEntities") - public Collection getThrownExceptions(); - - public void setThrownExceptions(Collection thrownExceptions); - - public void addThrownExceptions(TException one); - - public void addThrownExceptions(TException one, TException... many); - - public void addThrownExceptions(Iterable many); - - public void addThrownExceptions(TException[] many); - - public int numberOfThrownExceptions(); - - public boolean hasThrownExceptions(); - - @FameProperty(name = "caughtExceptions", opposite = "catchingEntities") - public Collection getCaughtExceptions(); - - public void setCaughtExceptions(Collection caughtExceptions); - - public void addCaughtExceptions(TException one); - - public void addCaughtExceptions(TException one, TException... many); - - public void addCaughtExceptions(Iterable many); - - public void addCaughtExceptions(TException[] many); - - public int numberOfCaughtExceptions(); - - public boolean hasCaughtExceptions(); - - @FameProperty(name = "declaredExceptions", opposite = "declaringEntities") - public Collection getDeclaredExceptions(); - - public void setDeclaredExceptions(Collection declaredExceptions); - - public void addDeclaredExceptions(TException one); - - public void addDeclaredExceptions(TException one, TException... many); - - public void addDeclaredExceptions(Iterable many); - - public void addDeclaredExceptions(TException[] many); - - public int numberOfDeclaredExceptions(); - - public boolean hasDeclaredExceptions(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithFileIncludes.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithFileIncludes.java deleted file mode 100644 index 295f2ef..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithFileIncludes.java +++ /dev/null @@ -1,51 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithFileIncludes") -public interface TWithFileIncludes { - - @FameProperty(name = "outgoingIncludeRelations", opposite = "source", derived = true) - public Collection getOutgoingIncludeRelations(); - - public void setOutgoingIncludeRelations(Collection outgoingIncludeRelations); - - public void addOutgoingIncludeRelations(TFileInclude one); - - public void addOutgoingIncludeRelations(TFileInclude one, TFileInclude... many); - - public void addOutgoingIncludeRelations(Iterable many); - - public void addOutgoingIncludeRelations(TFileInclude[] many); - - public int numberOfOutgoingIncludeRelations(); - - public boolean hasOutgoingIncludeRelations(); - - @FameProperty(name = "incomingIncludeRelations", opposite = "target", derived = true) - public Collection getIncomingIncludeRelations(); - - public void setIncomingIncludeRelations(Collection incomingIncludeRelations); - - public void addIncomingIncludeRelations(TFileInclude one); - - public void addIncomingIncludeRelations(TFileInclude one, TFileInclude... many); - - public void addIncomingIncludeRelations(Iterable many); - - public void addIncomingIncludeRelations(TFileInclude[] many); - - public int numberOfIncomingIncludeRelations(); - - public boolean hasIncomingIncludeRelations(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithFiles.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithFiles.java deleted file mode 100644 index c2c6426..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithFiles.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithFiles") -public interface TWithFiles { - - @FameProperty(name = "containerFiles", opposite = "entities") - public Collection getContainerFiles(); - - public void setContainerFiles(Collection containerFiles); - - public void addContainerFiles(TFile one); - - public void addContainerFiles(TFile one, TFile... many); - - public void addContainerFiles(Iterable many); - - public void addContainerFiles(TFile[] many); - - public int numberOfContainerFiles(); - - public boolean hasContainerFiles(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithFunctions.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithFunctions.java deleted file mode 100644 index 2130486..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithFunctions.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithFunctions") -public interface TWithFunctions { - - @FameProperty(name = "functions", opposite = "functionOwner", derived = true) - public Collection getFunctions(); - - public void setFunctions(Collection functions); - - public void addFunctions(TFunction one); - - public void addFunctions(TFunction one, TFunction... many); - - public void addFunctions(Iterable many); - - public void addFunctions(TFunction[] many); - - public int numberOfFunctions(); - - public boolean hasFunctions(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithGlobalVariables.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithGlobalVariables.java deleted file mode 100644 index 7550243..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithGlobalVariables.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithGlobalVariables") -public interface TWithGlobalVariables { - - @FameProperty(name = "globalVariables", opposite = "parentScope", derived = true) - public Collection getGlobalVariables(); - - public void setGlobalVariables(Collection globalVariables); - - public void addGlobalVariables(TGlobalVariable one); - - public void addGlobalVariables(TGlobalVariable one, TGlobalVariable... many); - - public void addGlobalVariables(Iterable many); - - public void addGlobalVariables(TGlobalVariable[] many); - - public int numberOfGlobalVariables(); - - public boolean hasGlobalVariables(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithHeader.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithHeader.java deleted file mode 100644 index 92e91b8..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithHeader.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithHeader") -public interface TWithHeader { - - @FameProperty(name = "header", opposite = "headerOwner", derived = true) - public THeader getHeader(); - - public void setHeader(THeader header); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithHeaders.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithHeaders.java deleted file mode 100644 index 6806a68..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithHeaders.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithHeaders") -public interface TWithHeaders { - - @FameProperty(name = "header", opposite = "headerOwner", derived = true) - public THeader getHeader(); - - public void setHeader(THeader header); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithImplicitVariables.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithImplicitVariables.java deleted file mode 100644 index 92db5ca..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithImplicitVariables.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithImplicitVariables") -public interface TWithImplicitVariables { - - @FameProperty(name = "implicitVariables", opposite = "parentBehaviouralEntity", derived = true) - public Collection getImplicitVariables(); - - public void setImplicitVariables(Collection implicitVariables); - - public void addImplicitVariables(TImplicitVariable one); - - public void addImplicitVariables(TImplicitVariable one, TImplicitVariable... many); - - public void addImplicitVariables(Iterable many); - - public void addImplicitVariables(TImplicitVariable[] many); - - public int numberOfImplicitVariables(); - - public boolean hasImplicitVariables(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithInheritances.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithInheritances.java deleted file mode 100644 index 42883c5..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithInheritances.java +++ /dev/null @@ -1,63 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithInheritances") -public interface TWithInheritances { - - @FameProperty(name = "superInheritances", opposite = "subclass", derived = true) - public Collection getSuperInheritances(); - - public void setSuperInheritances(Collection superInheritances); - - public void addSuperInheritances(TInheritance one); - - public void addSuperInheritances(TInheritance one, TInheritance... many); - - public void addSuperInheritances(Iterable many); - - public void addSuperInheritances(TInheritance[] many); - - public int numberOfSuperInheritances(); - - public boolean hasSuperInheritances(); - - @FameProperty(name = "subInheritances", opposite = "superclass", derived = true) - public Collection getSubInheritances(); - - public void setSubInheritances(Collection subInheritances); - - public void addSubInheritances(TInheritance one); - - public void addSubInheritances(TInheritance one, TInheritance... many); - - public void addSubInheritances(Iterable many); - - public void addSubInheritances(TInheritance[] many); - - public int numberOfSubInheritances(); - - public boolean hasSubInheritances(); - - @FameProperty(name = "hierarchyNestingLevel", derived = true) - public Number getHierarchyNestingLevel(); - - @FameProperty(name = "subclassHierarchyDepth", derived = true) - public Number getSubclassHierarchyDepth(); - - @FameProperty(name = "numberOfSubclasses", derived = true) - public Number getNumberOfSubclasses(); - - @FameProperty(name = "numberOfDirectSubclasses", derived = true) - public Number getNumberOfDirectSubclasses(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithInvocations.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithInvocations.java deleted file mode 100644 index ee7f84d..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithInvocations.java +++ /dev/null @@ -1,37 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithInvocations") -public interface TWithInvocations { - - @FameProperty(name = "numberOfOutgoingInvocations", derived = true) - public Number getNumberOfOutgoingInvocations(); - - @FameProperty(name = "outgoingInvocations", opposite = "sender", derived = true) - public Collection getOutgoingInvocations(); - - public void setOutgoingInvocations(Collection outgoingInvocations); - - public void addOutgoingInvocations(TInvocation one); - - public void addOutgoingInvocations(TInvocation one, TInvocation... many); - - public void addOutgoingInvocations(Iterable many); - - public void addOutgoingInvocations(TInvocation[] many); - - public int numberOfOutgoingInvocations(); - - public boolean hasOutgoingInvocations(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithLocalVariables.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithLocalVariables.java deleted file mode 100644 index 3594af8..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithLocalVariables.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithLocalVariables") -public interface TWithLocalVariables { - - @FameProperty(name = "localVariables", opposite = "parentBehaviouralEntity", derived = true) - public Collection getLocalVariables(); - - public void setLocalVariables(Collection localVariables); - - public void addLocalVariables(TLocalVariable one); - - public void addLocalVariables(TLocalVariable one, TLocalVariable... many); - - public void addLocalVariables(Iterable many); - - public void addLocalVariables(TLocalVariable[] many); - - public int numberOfLocalVariables(); - - public boolean hasLocalVariables(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithMethods.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithMethods.java deleted file mode 100644 index 8683737..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithMethods.java +++ /dev/null @@ -1,46 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithMethods") -public interface TWithMethods { - - @FameProperty(name = "tightClassCohesion", derived = true) - public Number getTightClassCohesion(); - - @FameProperty(name = "numberOfMethods", derived = true) - public Number getNumberOfMethods(); - - @FameProperty(name = "weightedMethodCount", derived = true) - public Number getWeightedMethodCount(); - - @FameProperty(name = "methods", opposite = "parentType", derived = true) - public Collection getMethods(); - - public void setMethods(Collection methods); - - public void addMethods(TMethod one); - - public void addMethods(TMethod one, TMethod... many); - - public void addMethods(Iterable many); - - public void addMethods(TMethod[] many); - - public int numberOfMethods(); - - public boolean hasMethods(); - - @FameProperty(name = "numberOfAbstractMethods", derived = true) - public Number getNumberOfAbstractMethods(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithPackages.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithPackages.java deleted file mode 100644 index beb6bcb..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithPackages.java +++ /dev/null @@ -1,15 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithPackages") -public interface TWithPackages { - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithParameterizedTypeUsers.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithParameterizedTypeUsers.java deleted file mode 100644 index 684914c..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithParameterizedTypeUsers.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithParameterizedTypeUsers") -public interface TWithParameterizedTypeUsers { - - @FameProperty(name = "arguments", opposite = "argumentsInParameterizedTypes") - public Collection getArguments(); - - public void setArguments(Collection arguments); - - public void addArguments(TParameterizedTypeUser one); - - public void addArguments(TParameterizedTypeUser one, TParameterizedTypeUser... many); - - public void addArguments(Iterable many); - - public void addArguments(TParameterizedTypeUser[] many); - - public int numberOfArguments(); - - public boolean hasArguments(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithParameterizedTypes.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithParameterizedTypes.java deleted file mode 100644 index 3bbf3c7..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithParameterizedTypes.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithParameterizedTypes") -public interface TWithParameterizedTypes { - - @FameProperty(name = "parameterizedTypes", opposite = "parameterizableClass", derived = true) - public Collection getParameterizedTypes(); - - public void setParameterizedTypes(Collection parameterizedTypes); - - public void addParameterizedTypes(TParameterizedType one); - - public void addParameterizedTypes(TParameterizedType one, TParameterizedType... many); - - public void addParameterizedTypes(Iterable many); - - public void addParameterizedTypes(TParameterizedType[] many); - - public int numberOfParameterizedTypes(); - - public boolean hasParameterizedTypes(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithParameters.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithParameters.java deleted file mode 100644 index 082ad5b..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithParameters.java +++ /dev/null @@ -1,37 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithParameters") -public interface TWithParameters { - - @FameProperty(name = "numberOfParameters", derived = true) - public Number getNumberOfParameters(); - - @FameProperty(name = "parameters", opposite = "parentBehaviouralEntity", derived = true) - public Collection getParameters(); - - public void setParameters(Collection parameters); - - public void addParameters(TParameter one); - - public void addParameters(TParameter one, TParameter... many); - - public void addParameters(Iterable many); - - public void addParameters(TParameter[] many); - - public int numberOfParameters(); - - public boolean hasParameters(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithReferences.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithReferences.java deleted file mode 100644 index f99c98a..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithReferences.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithReferences") -public interface TWithReferences { - - @FameProperty(name = "outgoingReferences", opposite = "referencer", derived = true) - public Collection getOutgoingReferences(); - - public void setOutgoingReferences(Collection outgoingReferences); - - public void addOutgoingReferences(TReference one); - - public void addOutgoingReferences(TReference one, TReference... many); - - public void addOutgoingReferences(Iterable many); - - public void addOutgoingReferences(TReference[] many); - - public int numberOfOutgoingReferences(); - - public boolean hasOutgoingReferences(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithSourceLanguage.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithSourceLanguage.java deleted file mode 100644 index 00f33db..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithSourceLanguage.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithSourceLanguage") -public interface TWithSourceLanguage { - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage(); - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithSourceLanguages.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithSourceLanguages.java deleted file mode 100644 index 118d646..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithSourceLanguages.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithSourceLanguages") -public interface TWithSourceLanguages { - - @FameProperty(name = "declaredSourceLanguage", opposite = "sourcedEntities") - public TSourceLanguage getDeclaredSourceLanguage(); - - public void setDeclaredSourceLanguage(TSourceLanguage declaredSourceLanguage); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithStatements.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithStatements.java deleted file mode 100644 index c8f5bdc..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithStatements.java +++ /dev/null @@ -1,19 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithStatements") -public interface TWithStatements { - - @FameProperty(name = "numberOfStatements", derived = true) - public Number getNumberOfStatements(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithTemplates.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithTemplates.java deleted file mode 100644 index 834c328..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithTemplates.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithTemplates") -public interface TWithTemplates { - - @FameProperty(name = "templates", opposite = "templateOwner", derived = true) - public Collection getTemplates(); - - public void setTemplates(Collection templates); - - public void addTemplates(TTemplate one); - - public void addTemplates(TTemplate one, TTemplate... many); - - public void addTemplates(Iterable many); - - public void addTemplates(TTemplate[] many); - - public int numberOfTemplates(); - - public boolean hasTemplates(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithThrownExceptions.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithThrownExceptions.java deleted file mode 100644 index 12a29af..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithThrownExceptions.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithThrownExceptions") -public interface TWithThrownExceptions { - - @FameProperty(name = "thrownExceptions", opposite = "definingEntity", derived = true) - public Collection getThrownExceptions(); - - public void setThrownExceptions(Collection thrownExceptions); - - public void addThrownExceptions(TThrownException one); - - public void addThrownExceptions(TThrownException one, TThrownException... many); - - public void addThrownExceptions(Iterable many); - - public void addThrownExceptions(TThrownException[] many); - - public int numberOfThrownExceptions(); - - public boolean hasThrownExceptions(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithTraits.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithTraits.java deleted file mode 100644 index 2dfdf3d..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithTraits.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithTraits") -public interface TWithTraits { - - @FameProperty(name = "traits", opposite = "traitOwner", derived = true) - public Collection getTraits(); - - public void setTraits(Collection traits); - - public void addTraits(TTrait one); - - public void addTraits(TTrait one, TTrait... many); - - public void addTraits(Iterable many); - - public void addTraits(TTrait[] many); - - public int numberOfTraits(); - - public boolean hasTraits(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithTypeAliases.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithTypeAliases.java deleted file mode 100644 index cefb842..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithTypeAliases.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithTypeAliases") -public interface TWithTypeAliases { - - @FameProperty(name = "typeAliases", opposite = "aliasedType", derived = true) - public Collection getTypeAliases(); - - public void setTypeAliases(Collection typeAliases); - - public void addTypeAliases(TTypeAlias one); - - public void addTypeAliases(TTypeAlias one, TTypeAlias... many); - - public void addTypeAliases(Iterable many); - - public void addTypeAliases(TTypeAlias[] many); - - public int numberOfTypeAliases(); - - public boolean hasTypeAliases(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithTypes.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithTypes.java deleted file mode 100644 index b5b2036..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TWithTypes.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import java.util.*; - - -@FamePackage("Famix-Traits") -@FameDescription("TWithTypes") -public interface TWithTypes { - - @FameProperty(name = "types", opposite = "typeContainer", derived = true) - public Collection getTypes(); - - public void setTypes(Collection types); - - public void addTypes(TType one); - - public void addTypes(TType one, TType... many); - - public void addTypes(Iterable many); - - public void addTypes(TType[] many); - - public int numberOfTypes(); - - public boolean hasTypes(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TypeGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/TypeGroup.java deleted file mode 100644 index 5e56d11..0000000 --- a/gen/org/moosetechnology/model/famix/famixtraits/TypeGroup.java +++ /dev/null @@ -1,88 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moose.SpecializedGroup; - - -@FamePackage("Famix-Traits") -@FameDescription("TypeGroup") -public class TypeGroup extends SpecializedGroup { - - private Number averageNumberOfAttributes; - - private Number averageNumberOfMethods; - - private Number averageNumberOfStatements; - - - - @FameProperty(name = "abstractness", derived = true) - public Number getAbstractness() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "afferentCoupling", derived = true) - public Number getAfferentCoupling() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "averageNumberOfAttributes") - public Number getAverageNumberOfAttributes() { - return averageNumberOfAttributes; - } - - public void setAverageNumberOfAttributes(Number averageNumberOfAttributes) { - this.averageNumberOfAttributes = averageNumberOfAttributes; - } - - @FameProperty(name = "averageNumberOfMethods") - public Number getAverageNumberOfMethods() { - return averageNumberOfMethods; - } - - public void setAverageNumberOfMethods(Number averageNumberOfMethods) { - this.averageNumberOfMethods = averageNumberOfMethods; - } - - @FameProperty(name = "averageNumberOfStatements") - public Number getAverageNumberOfStatements() { - return averageNumberOfStatements; - } - - public void setAverageNumberOfStatements(Number averageNumberOfStatements) { - this.averageNumberOfStatements = averageNumberOfStatements; - } - - @FameProperty(name = "bunchCohesion", derived = true) - public Number getBunchCohesion() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "distance", derived = true) - public Number getDistance() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "efferentCoupling", derived = true) - public Number getEfferentCoupling() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "instability", derived = true) - public Number getInstability() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/moose/AbstractGroup.java b/gen/org/moosetechnology/model/famix/moose/AbstractGroup.java deleted file mode 100644 index 0cc0959..0000000 --- a/gen/org/moosetechnology/model/famix/moose/AbstractGroup.java +++ /dev/null @@ -1,73 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.moose; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Moose") -@FameDescription("AbstractGroup") -public class AbstractGroup extends Object { - - private Number numberOfAssociations; - - private Number numberOfEntities; - - private Number numberOfItems; - - private Number numberOfLinesOfCode; - - private Number numberOfPackages; - - - - @FameProperty(name = "numberOfAssociations") - public Number getNumberOfAssociations() { - return numberOfAssociations; - } - - public void setNumberOfAssociations(Number numberOfAssociations) { - this.numberOfAssociations = numberOfAssociations; - } - - @FameProperty(name = "numberOfEntities") - public Number getNumberOfEntities() { - return numberOfEntities; - } - - public void setNumberOfEntities(Number numberOfEntities) { - this.numberOfEntities = numberOfEntities; - } - - @FameProperty(name = "numberOfItems") - public Number getNumberOfItems() { - return numberOfItems; - } - - public void setNumberOfItems(Number numberOfItems) { - this.numberOfItems = numberOfItems; - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfPackages") - public Number getNumberOfPackages() { - return numberOfPackages; - } - - public void setNumberOfPackages(Number numberOfPackages) { - this.numberOfPackages = numberOfPackages; - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/moose/Entity.java b/gen/org/moosetechnology/model/famix/moose/Entity.java deleted file mode 100644 index 0a4d648..0000000 --- a/gen/org/moosetechnology/model/famix/moose/Entity.java +++ /dev/null @@ -1,92 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.moose; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.tagging.Association; - - -@FamePackage("Moose") -@FameDescription("Entity") -public class Entity extends Object { - - private Collection allTagAssociations; - - - - @FameProperty(name = "allTagAssociations", opposite = "entity") - public Collection getAllTagAssociations() { - if (allTagAssociations == null) { - allTagAssociations = new MultivalueSet() { - @Override - protected void clearOpposite(Association e) { - e.setEntity(null); - } - @Override - protected void setOpposite(Association e) { - e.setEntity(Entity.this); - } - }; - } - return allTagAssociations; - } - - public void setAllTagAssociations(Collection allTagAssociations) { - this.getAllTagAssociations().clear(); - this.getAllTagAssociations().addAll(allTagAssociations); - } - - - public void addAllTagAssociations(Association one) { - this.getAllTagAssociations().add(one); - } - - public void addAllTagAssociations(Association one, Association... many) { - this.getAllTagAssociations().add(one); - for (Association each : many) - this.getAllTagAssociations().add(each); - } - - public void addAllTagAssociations(Iterable many) { - for (Association each : many) - this.getAllTagAssociations().add(each); - } - - public void addAllTagAssociations(Association[] many) { - for (Association each : many) - this.getAllTagAssociations().add(each); - } - - public int numberOfAllTagAssociations() { - return getAllTagAssociations().size(); - } - - public boolean hasAllTagAssociations() { - return !getAllTagAssociations().isEmpty(); - } - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "isTagged", derived = true) - public Boolean getIsTagged() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfTags", derived = true) - public Number getNumberOfTags() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/moose/Group.java b/gen/org/moosetechnology/model/famix/moose/Group.java deleted file mode 100644 index 73f897f..0000000 --- a/gen/org/moosetechnology/model/famix/moose/Group.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.moose; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Moose") -@FameDescription("Group") -public class Group extends AbstractGroup { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/moose/Model.java b/gen/org/moosetechnology/model/famix/moose/Model.java deleted file mode 100644 index 2480108..0000000 --- a/gen/org/moosetechnology/model/famix/moose/Model.java +++ /dev/null @@ -1,135 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.moose; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; - - -@FamePackage("Moose") -@FameDescription("Model") -public class Model extends AbstractGroup { - - private Number numberOfClasses; - - private Number numberOfClassesPerPackage; - - private Number numberOfLinesOfCode; - - private Number numberOfLinesOfCodePerClass; - - private Number numberOfLinesOfCodePerMethod; - - private Number numberOfLinesOfCodePerPackage; - - private Number numberOfMethods; - - private Number numberOfModelClasses; - - private Number numberOfModelMethods; - - private TSourceLanguage sourceLanguage; - - - - @FameProperty(name = "averageCyclomaticComplexity", derived = true) - public Number getAverageCyclomaticComplexity() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "numberOfClasses") - public Number getNumberOfClasses() { - return numberOfClasses; - } - - public void setNumberOfClasses(Number numberOfClasses) { - this.numberOfClasses = numberOfClasses; - } - - @FameProperty(name = "numberOfClassesPerPackage") - public Number getNumberOfClassesPerPackage() { - return numberOfClassesPerPackage; - } - - public void setNumberOfClassesPerPackage(Number numberOfClassesPerPackage) { - this.numberOfClassesPerPackage = numberOfClassesPerPackage; - } - - @FameProperty(name = "numberOfLinesOfCode") - public Number getNumberOfLinesOfCode() { - return numberOfLinesOfCode; - } - - public void setNumberOfLinesOfCode(Number numberOfLinesOfCode) { - this.numberOfLinesOfCode = numberOfLinesOfCode; - } - - @FameProperty(name = "numberOfLinesOfCodePerClass") - public Number getNumberOfLinesOfCodePerClass() { - return numberOfLinesOfCodePerClass; - } - - public void setNumberOfLinesOfCodePerClass(Number numberOfLinesOfCodePerClass) { - this.numberOfLinesOfCodePerClass = numberOfLinesOfCodePerClass; - } - - @FameProperty(name = "numberOfLinesOfCodePerMethod") - public Number getNumberOfLinesOfCodePerMethod() { - return numberOfLinesOfCodePerMethod; - } - - public void setNumberOfLinesOfCodePerMethod(Number numberOfLinesOfCodePerMethod) { - this.numberOfLinesOfCodePerMethod = numberOfLinesOfCodePerMethod; - } - - @FameProperty(name = "numberOfLinesOfCodePerPackage") - public Number getNumberOfLinesOfCodePerPackage() { - return numberOfLinesOfCodePerPackage; - } - - public void setNumberOfLinesOfCodePerPackage(Number numberOfLinesOfCodePerPackage) { - this.numberOfLinesOfCodePerPackage = numberOfLinesOfCodePerPackage; - } - - @FameProperty(name = "numberOfMethods") - public Number getNumberOfMethods() { - return numberOfMethods; - } - - public void setNumberOfMethods(Number numberOfMethods) { - this.numberOfMethods = numberOfMethods; - } - - @FameProperty(name = "numberOfModelClasses") - public Number getNumberOfModelClasses() { - return numberOfModelClasses; - } - - public void setNumberOfModelClasses(Number numberOfModelClasses) { - this.numberOfModelClasses = numberOfModelClasses; - } - - @FameProperty(name = "numberOfModelMethods") - public Number getNumberOfModelMethods() { - return numberOfModelMethods; - } - - public void setNumberOfModelMethods(Number numberOfModelMethods) { - this.numberOfModelMethods = numberOfModelMethods; - } - - @FameProperty(name = "sourceLanguage") - public TSourceLanguage getSourceLanguage() { - return sourceLanguage; - } - - public void setSourceLanguage(TSourceLanguage sourceLanguage) { - this.sourceLanguage = sourceLanguage; - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/moose/MooseModel.java b/gen/org/moosetechnology/model/famix/moose/MooseModel.java deleted file mode 100644 index bd78a78..0000000 --- a/gen/org/moosetechnology/model/famix/moose/MooseModel.java +++ /dev/null @@ -1,26 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.moose; - -import ch.akuhn.fame.MetaRepository; - -public class MooseModel { - - public static MetaRepository metamodel() { - MetaRepository metamodel = new MetaRepository(); - importInto(metamodel); - return metamodel; - } - - public static void importInto(MetaRepository metamodel) { - metamodel.with(org.moosetechnology.model.famix.moose.AbstractGroup.class); - metamodel.with(org.moosetechnology.model.famix.moose.Entity.class); - metamodel.with(org.moosetechnology.model.famix.moose.Group.class); - metamodel.with(org.moosetechnology.model.famix.moose.Model.class); - metamodel.with(org.moosetechnology.model.famix.moose.Object.class); - metamodel.with(org.moosetechnology.model.famix.moose.PropertyGroup.class); - metamodel.with(org.moosetechnology.model.famix.moose.SpecializedGroup.class); - - } - -} - diff --git a/gen/org/moosetechnology/model/famix/moose/Object.java b/gen/org/moosetechnology/model/famix/moose/Object.java deleted file mode 100644 index 6b7682b..0000000 --- a/gen/org/moosetechnology/model/famix/moose/Object.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.moose; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Moose") -@FameDescription("Object") -public class Object { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/moose/PropertyGroup.java b/gen/org/moosetechnology/model/famix/moose/PropertyGroup.java deleted file mode 100644 index ad414eb..0000000 --- a/gen/org/moosetechnology/model/famix/moose/PropertyGroup.java +++ /dev/null @@ -1,84 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.moose; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Moose") -@FameDescription("PropertyGroup") -public class PropertyGroup extends Group { - - private String property; - - private Number propertyRatio; - - private Number propertyTotal; - - private Number propertyTotalOriginal; - - private Number sizeOriginal; - - private Number sizeRatio; - - - - @FameProperty(name = "property") - public String getProperty() { - return property; - } - - public void setProperty(String property) { - this.property = property; - } - - @FameProperty(name = "propertyRatio") - public Number getPropertyRatio() { - return propertyRatio; - } - - public void setPropertyRatio(Number propertyRatio) { - this.propertyRatio = propertyRatio; - } - - @FameProperty(name = "propertyTotal") - public Number getPropertyTotal() { - return propertyTotal; - } - - public void setPropertyTotal(Number propertyTotal) { - this.propertyTotal = propertyTotal; - } - - @FameProperty(name = "propertyTotalOriginal") - public Number getPropertyTotalOriginal() { - return propertyTotalOriginal; - } - - public void setPropertyTotalOriginal(Number propertyTotalOriginal) { - this.propertyTotalOriginal = propertyTotalOriginal; - } - - @FameProperty(name = "sizeOriginal") - public Number getSizeOriginal() { - return sizeOriginal; - } - - public void setSizeOriginal(Number sizeOriginal) { - this.sizeOriginal = sizeOriginal; - } - - @FameProperty(name = "sizeRatio") - public Number getSizeRatio() { - return sizeRatio; - } - - public void setSizeRatio(Number sizeRatio) { - this.sizeRatio = sizeRatio; - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/moose/SpecializedGroup.java b/gen/org/moosetechnology/model/famix/moose/SpecializedGroup.java deleted file mode 100644 index 234337b..0000000 --- a/gen/org/moosetechnology/model/famix/moose/SpecializedGroup.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.moose; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Moose") -@FameDescription("SpecializedGroup") -public class SpecializedGroup extends Group { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/moosequery/MooseQueryModel.java b/gen/org/moosetechnology/model/famix/moosequery/MooseQueryModel.java deleted file mode 100644 index d188adc..0000000 --- a/gen/org/moosetechnology/model/famix/moosequery/MooseQueryModel.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.moosequery; - -import ch.akuhn.fame.MetaRepository; - -public class MooseQueryModel { - - public static MetaRepository metamodel() { - MetaRepository metamodel = new MetaRepository(); - importInto(metamodel); - return metamodel; - } - - public static void importInto(MetaRepository metamodel) { - metamodel.with(org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency.class); - metamodel.with(org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency.class); - - } - -} - diff --git a/gen/org/moosetechnology/model/famix/moosequery/TAssociationMetaLevelDependency.java b/gen/org/moosetechnology/model/famix/moosequery/TAssociationMetaLevelDependency.java deleted file mode 100644 index 22e31ad..0000000 --- a/gen/org/moosetechnology/model/famix/moosequery/TAssociationMetaLevelDependency.java +++ /dev/null @@ -1,15 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.moosequery; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Moose-Query") -@FameDescription("TAssociationMetaLevelDependency") -public interface TAssociationMetaLevelDependency { - - - -} - diff --git a/gen/org/moosetechnology/model/famix/moosequery/TEntityMetaLevelDependency.java b/gen/org/moosetechnology/model/famix/moosequery/TEntityMetaLevelDependency.java deleted file mode 100644 index 4e1e262..0000000 --- a/gen/org/moosetechnology/model/famix/moosequery/TEntityMetaLevelDependency.java +++ /dev/null @@ -1,43 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.moosequery; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Moose-Query") -@FameDescription("TEntityMetaLevelDependency") -public interface TEntityMetaLevelDependency { - - @FameProperty(name = "numberOfDeadChildren", derived = true) - public Number getNumberOfDeadChildren(); - - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut(); - - @FameProperty(name = "fanIn", derived = true) - public Number getFanIn(); - - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren(); - - @FameProperty(name = "numberOfInternalProviders", derived = true) - public Number getNumberOfInternalProviders(); - - @FameProperty(name = "numberOfExternalProviders", derived = true) - public Number getNumberOfExternalProviders(); - - @FameProperty(name = "numberOfInternalClients", derived = true) - public Number getNumberOfInternalClients(); - - @FameProperty(name = "isDead", derived = true) - public Boolean getIsDead(); - - @FameProperty(name = "numberOfExternalClients", derived = true) - public Number getNumberOfExternalClients(); - - - -} - diff --git a/gen/org/moosetechnology/model/famix/moosequery/TOODependencyQueries.java b/gen/org/moosetechnology/model/famix/moosequery/TOODependencyQueries.java deleted file mode 100644 index 279409e..0000000 --- a/gen/org/moosetechnology/model/famix/moosequery/TOODependencyQueries.java +++ /dev/null @@ -1,15 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.moosequery; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Moose-Query") -@FameDescription("TOODependencyQueries") -public interface TOODependencyQueries { - - - -} - diff --git a/gen/org/moosetechnology/model/famix/smalltalk/SmalltalkModel.java b/gen/org/moosetechnology/model/famix/smalltalk/SmalltalkModel.java deleted file mode 100644 index 4bf142a..0000000 --- a/gen/org/moosetechnology/model/famix/smalltalk/SmalltalkModel.java +++ /dev/null @@ -1,19 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.smalltalk; - -import ch.akuhn.fame.MetaRepository; - -public class SmalltalkModel { - - public static MetaRepository metamodel() { - MetaRepository metamodel = new MetaRepository(); - importInto(metamodel); - return metamodel; - } - - public static void importInto(MetaRepository metamodel) { - - } - -} - diff --git a/gen/org/moosetechnology/model/famix/tagging/Association.java b/gen/org/moosetechnology/model/famix/tagging/Association.java deleted file mode 100644 index 0d51927..0000000 --- a/gen/org/moosetechnology/model/famix/tagging/Association.java +++ /dev/null @@ -1,53 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.tagging; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.moose.Entity; - - -@FamePackage("Tagging") -@FameDescription("Association") -public class Association extends Entity { - - private Entity entity; - - private Number tagId; - - - - @FameProperty(name = "entity", opposite = "allTagAssociations") - public Entity getEntity() { - return entity; - } - - public void setEntity(Entity entity) { - if (this.entity != null) { - if (this.entity.equals(entity)) return; - this.entity.getAllTagAssociations().remove(this); - } - this.entity = entity; - if (entity == null) return; - entity.getAllTagAssociations().add(this); - } - - @FameProperty(name = "tag", derived = true) - public Tag getTag() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "tagId") - public Number getTagId() { - return tagId; - } - - public void setTagId(Number tagId) { - this.tagId = tagId; - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/tagging/Category.java b/gen/org/moosetechnology/model/famix/tagging/Category.java deleted file mode 100644 index d8a9ae5..0000000 --- a/gen/org/moosetechnology/model/famix/tagging/Category.java +++ /dev/null @@ -1,84 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.tagging; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.moose.Entity; - - -@FamePackage("Tagging") -@FameDescription("Category") -public class Category extends Entity { - - private Collection markedTags; - - private String name; - - - - @FameProperty(name = "markedTags", opposite = "categories") - public Collection getMarkedTags() { - if (markedTags == null) { - markedTags = new MultivalueSet() { - @Override - protected void clearOpposite(Tag e) { - e.getCategories().remove(Category.this); - } - @Override - protected void setOpposite(Tag e) { - e.getCategories().add(Category.this); - } - }; - } - return markedTags; - } - - public void setMarkedTags(Collection markedTags) { - this.getMarkedTags().clear(); - this.getMarkedTags().addAll(markedTags); - } - - public void addMarkedTags(Tag one) { - this.getMarkedTags().add(one); - } - - public void addMarkedTags(Tag one, Tag... many) { - this.getMarkedTags().add(one); - for (Tag each : many) - this.getMarkedTags().add(each); - } - - public void addMarkedTags(Iterable many) { - for (Tag each : many) - this.getMarkedTags().add(each); - } - - public void addMarkedTags(Tag[] many) { - for (Tag each : many) - this.getMarkedTags().add(each); - } - - public int numberOfMarkedTags() { - return getMarkedTags().size(); - } - - public boolean hasMarkedTags() { - return !getMarkedTags().isEmpty(); - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/tagging/EntityAssociation.java b/gen/org/moosetechnology/model/famix/tagging/EntityAssociation.java deleted file mode 100644 index ba32e80..0000000 --- a/gen/org/moosetechnology/model/famix/tagging/EntityAssociation.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.tagging; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Tagging") -@FameDescription("EntityAssociation") -public class EntityAssociation extends Association { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/tagging/IntervalAssociation.java b/gen/org/moosetechnology/model/famix/tagging/IntervalAssociation.java deleted file mode 100644 index 80c1ec9..0000000 --- a/gen/org/moosetechnology/model/famix/tagging/IntervalAssociation.java +++ /dev/null @@ -1,52 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.tagging; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; - - -@FamePackage("Tagging") -@FameDescription("IntervalAssociation") -public class IntervalAssociation extends Association { - - private TSourceAnchor sourceAnchor; - - private Number start; - - private Number stop; - - - - @FameProperty(name = "sourceAnchor") - public TSourceAnchor getSourceAnchor() { - return sourceAnchor; - } - - public void setSourceAnchor(TSourceAnchor sourceAnchor) { - this.sourceAnchor = sourceAnchor; - } - - @FameProperty(name = "start") - public Number getStart() { - return start; - } - - public void setStart(Number start) { - this.start = start; - } - - @FameProperty(name = "stop") - public Number getStop() { - return stop; - } - - public void setStop(Number stop) { - this.stop = stop; - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/tagging/Tag.java b/gen/org/moosetechnology/model/famix/tagging/Tag.java deleted file mode 100644 index e363769..0000000 --- a/gen/org/moosetechnology/model/famix/tagging/Tag.java +++ /dev/null @@ -1,204 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.tagging; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; -import ch.akuhn.fame.internal.MultivalueSet; -import java.util.*; -import org.moosetechnology.model.famix.moose.Entity; - - -@FamePackage("Tagging") -@FameDescription("Tag") -public class Tag extends Entity { - - private Collection categories; - - private String description; - - private Number id; - - private Boolean isHidden; - - private String name; - - private Tag parentTag; - - private String serializedColor; - - private Collection subTags; - - - - @FameProperty(name = "categories", opposite = "markedTags") - public Collection getCategories() { - if (categories == null) { - categories = new MultivalueSet() { - @Override - protected void clearOpposite(Category e) { - e.getMarkedTags().remove(Tag.this); - } - @Override - protected void setOpposite(Category e) { - e.getMarkedTags().add(Tag.this); - } - }; - } - return categories; - } - - public void setCategories(Collection categories) { - this.getCategories().clear(); - this.getCategories().addAll(categories); - } - - public void addCategories(Category one) { - this.getCategories().add(one); - } - - public void addCategories(Category one, Category... many) { - this.getCategories().add(one); - for (Category each : many) - this.getCategories().add(each); - } - - public void addCategories(Iterable many) { - for (Category each : many) - this.getCategories().add(each); - } - - public void addCategories(Category[] many) { - for (Category each : many) - this.getCategories().add(each); - } - - public int numberOfCategories() { - return getCategories().size(); - } - - public boolean hasCategories() { - return !getCategories().isEmpty(); - } - - @FameProperty(name = "children", derived = true) - public Collection getChildren() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - @FameProperty(name = "id") - public Number getId() { - return id; - } - - public void setId(Number id) { - this.id = id; - } - - @FameProperty(name = "isHidden") - public Boolean getIsHidden() { - return isHidden; - } - - public void setIsHidden(Boolean isHidden) { - this.isHidden = isHidden; - } - - @FameProperty(name = "name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - @FameProperty(name = "parentTag", opposite = "subTags", container = true) - public Tag getParentTag() { - return parentTag; - } - - public void setParentTag(Tag parentTag) { - if (this.parentTag != null) { - if (this.parentTag.equals(parentTag)) return; - this.parentTag.getSubTags().remove(this); - } - this.parentTag = parentTag; - if (parentTag == null) return; - parentTag.getSubTags().add(this); - } - - @FameProperty(name = "serializedColor") - public String getSerializedColor() { - return serializedColor; - } - - public void setSerializedColor(String serializedColor) { - this.serializedColor = serializedColor; - } - - @FameProperty(name = "subTags", opposite = "parentTag", derived = true) - public Collection getSubTags() { - if (subTags == null) { - subTags = new MultivalueSet() { - @Override - protected void clearOpposite(Tag e) { - e.setParentTag(null); - } - @Override - protected void setOpposite(Tag e) { - e.setParentTag(Tag.this); - } - }; - } - return subTags; - } - - public void setSubTags(Collection subTags) { - this.getSubTags().clear(); - this.getSubTags().addAll(subTags); - } - - - public void addSubTags(Tag one) { - this.getSubTags().add(one); - } - - public void addSubTags(Tag one, Tag... many) { - this.getSubTags().add(one); - for (Tag each : many) - this.getSubTags().add(each); - } - - public void addSubTags(Iterable many) { - for (Tag each : many) - this.getSubTags().add(each); - } - - public void addSubTags(Tag[] many) { - for (Tag each : many) - this.getSubTags().add(each); - } - - public int numberOfSubTags() { - return getSubTags().size(); - } - - public boolean hasSubTags() { - return !getSubTags().isEmpty(); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famix/tagging/TagModel.java b/gen/org/moosetechnology/model/famix/tagging/TagModel.java deleted file mode 100644 index 2c9477f..0000000 --- a/gen/org/moosetechnology/model/famix/tagging/TagModel.java +++ /dev/null @@ -1,18 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.tagging; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famix.moose.AbstractGroup; - - -@FamePackage("Tagging") -@FameDescription("TagModel") -public class TagModel extends AbstractGroup { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famix/tagging/TaggingModel.java b/gen/org/moosetechnology/model/famix/tagging/TaggingModel.java deleted file mode 100644 index fa5bd7f..0000000 --- a/gen/org/moosetechnology/model/famix/tagging/TaggingModel.java +++ /dev/null @@ -1,25 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famix.tagging; - -import ch.akuhn.fame.MetaRepository; - -public class TaggingModel { - - public static MetaRepository metamodel() { - MetaRepository metamodel = new MetaRepository(); - importInto(metamodel); - return metamodel; - } - - public static void importInto(MetaRepository metamodel) { - metamodel.with(org.moosetechnology.model.famix.tagging.Association.class); - metamodel.with(org.moosetechnology.model.famix.tagging.Category.class); - metamodel.with(org.moosetechnology.model.famix.tagging.EntityAssociation.class); - metamodel.with(org.moosetechnology.model.famix.tagging.IntervalAssociation.class); - metamodel.with(org.moosetechnology.model.famix.tagging.Tag.class); - metamodel.with(org.moosetechnology.model.famix.tagging.TagModel.class); - - } - -} -