diff --git a/gen/org/moosetechnology/model/famix/famix/AbstractFileAnchor.java b/gen/org/moosetechnology/model/famix/famix/AbstractFileAnchor.java new file mode 100644 index 0000000..50da503 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/AbstractFileAnchor.java @@ -0,0 +1,77 @@ +// 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 new file mode 100644 index 0000000..c4d8ee4 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/Access.java @@ -0,0 +1,266 @@ +// 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/famixjava/famixjavaentities/AnnotationInstance.java b/gen/org/moosetechnology/model/famix/famix/AnnotationInstance.java similarity index 73% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/AnnotationInstance.java rename to gen/org/moosetechnology/model/famix/famix/AnnotationInstance.java index 7c26b29..7da5f11 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/AnnotationInstance.java +++ b/gen/org/moosetechnology/model/famix/famix/AnnotationInstance.java @@ -1,21 +1,21 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixtraits.TAnnotationInstance; -import org.moosetechnology.model.famixjava.famixtraits.TAnnotationInstanceAttribute; -import org.moosetechnology.model.famixjava.famixtraits.TAnnotationType; -import org.moosetechnology.model.famixjava.famixtraits.TTypedAnnotationInstance; -import org.moosetechnology.model.famixjava.famixtraits.TWithAnnotationInstanceAttributes; -import org.moosetechnology.model.famixjava.famixtraits.TWithAnnotationInstances; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; +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-Java-Entities") +@FamePackage("FAMIX") @FameDescription("AnnotationInstance") public class AnnotationInstance extends SourcedEntity implements TAnnotationInstance, TEntityMetaLevelDependency, TTypedAnnotationInstance, TWithAnnotationInstanceAttributes { @@ -27,7 +27,7 @@ public class AnnotationInstance extends SourcedEntity implements TAnnotationInst - @FameProperty(name = "annotatedEntity", opposite = "annotationInstances") + @FameProperty(name = "annotatedEntity", opposite = "annotationInstances", container = true) public TWithAnnotationInstances getAnnotatedEntity() { return annotatedEntity; } @@ -138,30 +138,6 @@ public Number getNumberOfDeadChildren() { 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!"); - } - } diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/AnnotationInstanceAttribute.java b/gen/org/moosetechnology/model/famix/famix/AnnotationInstanceAttribute.java similarity index 67% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/AnnotationInstanceAttribute.java rename to gen/org/moosetechnology/model/famix/famix/AnnotationInstanceAttribute.java index 261a7fe..b10c2ea 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/AnnotationInstanceAttribute.java +++ b/gen/org/moosetechnology/model/famix/famix/AnnotationInstanceAttribute.java @@ -1,17 +1,17 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixtraits.TAnnotationInstanceAttribute; -import org.moosetechnology.model.famixjava.famixtraits.TAnnotationTypeAttribute; -import org.moosetechnology.model.famixjava.famixtraits.TTypedAnnotationInstanceAttribute; -import org.moosetechnology.model.famixjava.famixtraits.TWithAnnotationInstanceAttributes; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; +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-Java-Entities") +@FamePackage("FAMIX") @FameDescription("AnnotationInstanceAttribute") public class AnnotationInstanceAttribute extends SourcedEntity implements TAnnotationInstanceAttribute, TEntityMetaLevelDependency, TTypedAnnotationInstanceAttribute { @@ -68,30 +68,6 @@ public Number getNumberOfDeadChildren() { 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 = "parentAnnotationInstance", opposite = "attributes", container = true) public TWithAnnotationInstanceAttributes getParentAnnotationInstance() { return parentAnnotationInstance; diff --git a/gen/org/moosetechnology/model/famix/famix/AnnotationType.java b/gen/org/moosetechnology/model/famix/famix/AnnotationType.java new file mode 100644 index 0000000..8b4c2a0 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/AnnotationType.java @@ -0,0 +1,93 @@ +// 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/famixjava/famixjavaentities/AnnotationTypeAttribute.java b/gen/org/moosetechnology/model/famix/famix/AnnotationTypeAttribute.java similarity index 76% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/AnnotationTypeAttribute.java rename to gen/org/moosetechnology/model/famix/famix/AnnotationTypeAttribute.java index 28358e7..bde5046 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/AnnotationTypeAttribute.java +++ b/gen/org/moosetechnology/model/famix/famix/AnnotationTypeAttribute.java @@ -1,33 +1,37 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TAccess; -import org.moosetechnology.model.famixjava.famixtraits.TAccessible; -import org.moosetechnology.model.famixjava.famixtraits.TAnnotationTypeAttribute; -import org.moosetechnology.model.famixjava.famixtraits.TAttribute; -import org.moosetechnology.model.famixjava.famixtraits.TComment; -import org.moosetechnology.model.famixjava.famixtraits.TNamedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famixjava.famixtraits.TType; -import org.moosetechnology.model.famixjava.famixtraits.TTypedAnnotationInstanceAttribute; -import org.moosetechnology.model.famixjava.famixtraits.TTypedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TWithAccesses; -import org.moosetechnology.model.famixjava.famixtraits.TWithAttributes; -import org.moosetechnology.model.famixjava.famixtraits.TWithComments; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; +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-Java-Entities") +@FamePackage("FAMIX") @FameDescription("AnnotationTypeAttribute") -public class AnnotationTypeAttribute extends NamedEntity implements TAccessible, TAnnotationTypeAttribute, TAttribute, TEntityMetaLevelDependency, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedAnnotationInstanceAttribute, TTypedEntity, TWithComments { +public class AnnotationTypeAttribute extends Attribute implements TAccessible, TAnnotationTypeAttribute, TAttribute, TEntityMetaLevelDependency, TInvocationsReceiver, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedAnnotationInstanceAttribute, TTypedEntity, TWithComments, TWithSourceLanguage { private Collection annotationAttributeInstances; @@ -35,10 +39,14 @@ public class AnnotationTypeAttribute extends NamedEntity implements TAccessible, private Collection comments; + private TSourceLanguage declaredSourceLanguage; + private TType declaredType; private Collection incomingAccesses; + private Boolean isClassSide; + private Boolean isStub; private String name; @@ -47,6 +55,8 @@ public class AnnotationTypeAttribute extends NamedEntity implements TAccessible, private TWithAttributes parentType; + private Collection receivingInvocations; + private TSourceAnchor sourceAnchor; @@ -186,6 +196,21 @@ public Boolean getContainsReplicas() { 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; @@ -288,6 +313,15 @@ 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. @@ -348,36 +382,12 @@ public Number getNumberOfDeadChildren() { 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; @@ -414,6 +424,57 @@ public void setParentType(TWithAttributes parentType) { 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. diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Attribute.java b/gen/org/moosetechnology/model/famix/famix/Attribute.java similarity index 73% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/Attribute.java rename to gen/org/moosetechnology/model/famix/famix/Attribute.java index bc8334d..d45fd36 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Attribute.java +++ b/gen/org/moosetechnology/model/famix/famix/Attribute.java @@ -1,53 +1,49 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TAccess; -import org.moosetechnology.model.famixjava.famixtraits.TAccessible; -import org.moosetechnology.model.famixjava.famixtraits.TAttribute; -import org.moosetechnology.model.famixjava.famixtraits.TCanBeClassSide; -import org.moosetechnology.model.famixjava.famixtraits.TCanBeFinal; -import org.moosetechnology.model.famixjava.famixtraits.TComment; -import org.moosetechnology.model.famixjava.famixtraits.THasVisibility; -import org.moosetechnology.model.famixjava.famixtraits.TInvocation; -import org.moosetechnology.model.famixjava.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famixjava.famixtraits.TNamedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famixjava.famixtraits.TType; -import org.moosetechnology.model.famixjava.famixtraits.TTypedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TWithAccesses; -import org.moosetechnology.model.famixjava.famixtraits.TWithAttributes; -import org.moosetechnology.model.famixjava.famixtraits.TWithComments; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; +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-Java-Entities") +@FamePackage("FAMIX") @FameDescription("Attribute") -public class Attribute extends NamedEntity implements TAccessible, TAttribute, TCanBeClassSide, TCanBeFinal, TCanBeTransient, TCanBeVolatile, TEntityMetaLevelDependency, THasVisibility, TInvocationsReceiver, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity, TWithComments { +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 isFinal; - private Boolean isStub; - private Boolean isTransient; - - private Boolean isVolatile; - private String name; private Number numberOfLinesOfCode; @@ -58,8 +54,6 @@ public class Attribute extends NamedEntity implements TAccessible, TAttribute, T private TSourceAnchor sourceAnchor; - private String visibility; - @FameProperty(name = "accessors", derived = true) @@ -125,6 +119,21 @@ public Boolean getContainsReplicas() { 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; @@ -242,39 +251,6 @@ public Boolean getIsDead() { throw new UnsupportedOperationException("Not yet implemented!"); } - @FameProperty(name = "isFinal") - public Boolean getIsFinal() { - return isFinal; - } - - public void setIsFinal(Boolean isFinal) { - this.isFinal = isFinal; - } - - @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; @@ -284,24 +260,6 @@ public void setIsStub(Boolean isStub) { this.isStub = isStub; } - @FameProperty(name = "isTransient") - public Boolean getIsTransient() { - return isTransient; - } - - public void setIsTransient(Boolean isTransient) { - this.isTransient = isTransient; - } - - @FameProperty(name = "isVolatile") - public Boolean getIsVolatile() { - return isVolatile; - } - - public void setIsVolatile(Boolean isVolatile) { - this.isVolatile = isVolatile; - } - @FameProperty(name = "name") public String getName() { return name; @@ -347,36 +305,12 @@ public Number getNumberOfDeadChildren() { 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; @@ -490,15 +424,6 @@ public String getSourceText() { throw new UnsupportedOperationException("Not yet implemented!"); } - @FameProperty(name = "visibility") - public String getVisibility() { - return visibility; - } - - public void setVisibility(String visibility) { - this.visibility = visibility; - } - } diff --git a/gen/org/moosetechnology/model/famix/famix/BehaviouralEntity.java b/gen/org/moosetechnology/model/famix/famix/BehaviouralEntity.java new file mode 100644 index 0000000..6f19f79 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/BehaviouralEntity.java @@ -0,0 +1,712 @@ +// 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 new file mode 100644 index 0000000..3b9b33e --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/CFile.java @@ -0,0 +1,140 @@ +// 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 new file mode 100644 index 0000000..d92905e --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/CSourceLanguage.java @@ -0,0 +1,17 @@ +// 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/famixjava/famixjavaentities/CaughtException.java b/gen/org/moosetechnology/model/famix/famix/CaughtException.java similarity index 78% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/CaughtException.java rename to gen/org/moosetechnology/model/famix/famix/CaughtException.java index 6dc3588..127d81a 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/CaughtException.java +++ b/gen/org/moosetechnology/model/famix/famix/CaughtException.java @@ -1,14 +1,14 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixtraits.TCaughtException; -import org.moosetechnology.model.famixjava.famixtraits.TWithCaughtExceptions; +import org.moosetechnology.model.famix.famixtraits.TCaughtException; +import org.moosetechnology.model.famix.famixtraits.TWithCaughtExceptions; -@FamePackage("Famix-Java-Entities") +@FamePackage("FAMIX") @FameDescription("CaughtException") public class CaughtException extends Exception implements TCaughtException { diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Class.java b/gen/org/moosetechnology/model/famix/famix/Class.java similarity index 80% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/Class.java rename to gen/org/moosetechnology/model/famix/famix/Class.java index c5534b5..b8ff60f 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Class.java +++ b/gen/org/moosetechnology/model/famix/famix/Class.java @@ -1,49 +1,44 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TAttribute; -import org.moosetechnology.model.famixjava.famixtraits.TCanBeAbstract; -import org.moosetechnology.model.famixjava.famixtraits.TCanBeClassSide; -import org.moosetechnology.model.famixjava.famixtraits.TCanBeFinal; -import org.moosetechnology.model.famixjava.famixtraits.TCanImplement; -import org.moosetechnology.model.famixjava.famixtraits.TClass; -import org.moosetechnology.model.famixjava.famixtraits.TComment; -import org.moosetechnology.model.famixjava.famixtraits.TException; -import org.moosetechnology.model.famixjava.famixtraits.THasVisibility; -import org.moosetechnology.model.famixjava.famixtraits.TImplementation; -import org.moosetechnology.model.famixjava.famixtraits.TInheritance; -import org.moosetechnology.model.famixjava.famixtraits.TInvocation; -import org.moosetechnology.model.famixjava.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famixjava.famixtraits.TLCOMMetrics; -import org.moosetechnology.model.famixjava.famixtraits.TMethod; -import org.moosetechnology.model.famixjava.famixtraits.TNamedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TPackage; -import org.moosetechnology.model.famixjava.famixtraits.TPackageable; -import org.moosetechnology.model.famixjava.famixtraits.TReference; -import org.moosetechnology.model.famixjava.famixtraits.TReferenceable; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.famixtraits.TType; -import org.moosetechnology.model.famixjava.famixtraits.TTypedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TWithAttributes; -import org.moosetechnology.model.famixjava.famixtraits.TWithComments; -import org.moosetechnology.model.famixjava.famixtraits.TWithExceptions; -import org.moosetechnology.model.famixjava.famixtraits.TWithInheritances; -import org.moosetechnology.model.famixjava.famixtraits.TWithMethods; -import org.moosetechnology.model.famixjava.famixtraits.TWithTypes; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; -import org.moosetechnology.model.famixjava.moosequery.TOODependencyQueries; - - -@FamePackage("Famix-Java-Entities") +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 TCanBeAbstract, TCanBeClassSide, TCanBeFinal, TCanImplement, TClass, TClassMetrics, TEntityMetaLevelDependency, THasVisibility, TInvocationsReceiver, TLCOMMetrics, TNamedEntity, TOODependencyQueries, TPackageable, TReferenceable, TSourceEntity, TType, TWithAttributes, TWithComments, TWithExceptions, TWithInheritances, TWithMethods { +public class Class extends Type implements TClass, TEntityMetaLevelDependency, TInvocationsReceiver, TNamedEntity, TOODependencyQueries, TPackageable, TReferenceable, TSourceEntity, TType, TWithAttributes, TWithComments, TWithExceptions, TWithInheritances, TWithMethods, TWithSourceLanguage { private Boolean isInterface; @@ -51,18 +46,12 @@ public class Class extends Type implements TCanBeAbstract, TCanBeClassSide, TCan private Collection comments; + private TSourceLanguage declaredSourceLanguage; + private Collection exceptions; private Collection incomingReferences; - private Collection interfaceImplementations; - - private Boolean isAbstract; - - private Boolean isClassSide; - - private Boolean isFinal; - private Boolean isStub; private Collection methods; @@ -85,8 +74,6 @@ public class Class extends Type implements TCanBeAbstract, TCanBeClassSide, TCan private Collection typedEntities; - private String visibility; - @FameProperty(name = "isIgnored", derived = true) @@ -212,6 +199,21 @@ public Boolean getContainsReplicas() { 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. @@ -344,114 +346,12 @@ public boolean hasIncomingReferences() { return !getIncomingReferences().isEmpty(); } - @FameProperty(name = "interfaceImplementations", opposite = "implementingClass", derived = true) - public Collection getInterfaceImplementations() { - if (interfaceImplementations == null) { - interfaceImplementations = new MultivalueSet() { - @Override - protected void clearOpposite(TImplementation e) { - e.setImplementingClass(null); - } - @Override - protected void setOpposite(TImplementation e) { - e.setImplementingClass(Class.this); - } - }; - } - return interfaceImplementations; - } - - public void setInterfaceImplementations(Collection interfaceImplementations) { - this.getInterfaceImplementations().clear(); - this.getInterfaceImplementations().addAll(interfaceImplementations); - } - - - public void addInterfaceImplementations(TImplementation one) { - this.getInterfaceImplementations().add(one); - } - - public void addInterfaceImplementations(TImplementation one, TImplementation... many) { - this.getInterfaceImplementations().add(one); - for (TImplementation each : many) - this.getInterfaceImplementations().add(each); - } - - public void addInterfaceImplementations(Iterable many) { - for (TImplementation each : many) - this.getInterfaceImplementations().add(each); - } - - public void addInterfaceImplementations(TImplementation[] many) { - for (TImplementation each : many) - this.getInterfaceImplementations().add(each); - } - - public int numberOfInterfaceImplementations() { - return getInterfaceImplementations().size(); - } - - public boolean hasInterfaceImplementations() { - return !getInterfaceImplementations().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 = "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") - public Boolean getIsFinal() { - return isFinal; - } - - public void setIsFinal(Boolean isFinal) { - this.isFinal = isFinal; - } - - @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; @@ -467,18 +367,6 @@ public Boolean getIsTestCase() { throw new UnsupportedOperationException("Not yet implemented!"); } - @FameProperty(name = "lcom2", derived = true) - public Number getLcom2() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "lcom3", derived = true) - public Number getLcom3() { - // 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) { @@ -545,6 +433,12 @@ public Number getNumberOfAbstractMethods() { 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. @@ -557,6 +451,12 @@ public Number getNumberOfAttributes() { 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. @@ -587,26 +487,8 @@ public Number getNumberOfDirectSubclasses() { 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() { + @FameProperty(name = "numberOfDuplicatedLinesOfCodeInternally", derived = true) + public Number getNumberOfDuplicatedLinesOfCodeInternally() { // TODO: this is a derived property, implement this method manually. throw new UnsupportedOperationException("Not yet implemented!"); } @@ -638,24 +520,72 @@ public Number getNumberOfMethods() { 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. @@ -868,6 +798,12 @@ public Number getTightClassCohesion() { 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; @@ -934,15 +870,6 @@ public boolean hasTypedEntities() { return !getTypedEntities().isEmpty(); } - @FameProperty(name = "visibility") - public String getVisibility() { - return visibility; - } - - public void setVisibility(String visibility) { - this.visibility = visibility; - } - @FameProperty(name = "weightOfAClass", derived = true) public Number getWeightOfAClass() { // TODO: this is a derived property, implement this method manually. diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Comment.java b/gen/org/moosetechnology/model/famix/famix/Comment.java similarity index 81% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/Comment.java rename to gen/org/moosetechnology/model/famix/famix/Comment.java index 6240cda..6d1531f 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Comment.java +++ b/gen/org/moosetechnology/model/famix/famix/Comment.java @@ -1,14 +1,14 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixtraits.TComment; -import org.moosetechnology.model.famixjava.famixtraits.TWithComments; +import org.moosetechnology.model.famix.famixtraits.TComment; +import org.moosetechnology.model.famix.famixtraits.TWithComments; -@FamePackage("Famix-Java-Entities") +@FamePackage("FAMIX") @FameDescription("Comment") public class Comment extends SourcedEntity implements TComment { diff --git a/gen/org/moosetechnology/model/famix/famix/CompilationUnit.java b/gen/org/moosetechnology/model/famix/famix/CompilationUnit.java new file mode 100644 index 0000000..95d7f27 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/CompilationUnit.java @@ -0,0 +1,172 @@ +// 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/famixjava/famixjavaentities/ContainerEntity.java b/gen/org/moosetechnology/model/famix/famix/ContainerEntity.java similarity index 70% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/ContainerEntity.java rename to gen/org/moosetechnology/model/famix/famix/ContainerEntity.java index 063bc25..4a11e30 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/ContainerEntity.java +++ b/gen/org/moosetechnology/model/famix/famix/ContainerEntity.java @@ -1,26 +1,30 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixtraits.TAnnotationType; -import org.moosetechnology.model.famixjava.famixtraits.TType; -import org.moosetechnology.model.famixjava.famixtraits.TWithAnnotationTypes; -import org.moosetechnology.model.famixjava.famixtraits.TWithClasses; -import org.moosetechnology.model.famixjava.famixtraits.TWithTypes; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; -import org.moosetechnology.model.famixjava.moosequery.TOODependencyQueries; +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-Java-Entities") +@FamePackage("FAMIX") @FameDescription("ContainerEntity") -public class ContainerEntity extends NamedEntity implements TEntityMetaLevelDependency, TOODependencyQueries, TWithAnnotationTypes, TWithClasses, TWithInterfaces, TWithTypes { +public class ContainerEntity extends NamedEntity implements TEntityMetaLevelDependency, TOODependencyQueries, TWithAnnotationTypes, TWithClasses, TWithFunctions, TWithTypes { private Collection definedAnnotationTypes; + private Collection functions; + private Collection types; @@ -88,6 +92,57 @@ public Number getFanOut() { 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. @@ -112,30 +167,6 @@ public Number getNumberOfDeadChildren() { 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 = "types", opposite = "typeContainer", derived = true) public Collection getTypes() { if (types == null) { diff --git a/gen/org/moosetechnology/model/famix/famix/CppSourceLanguage.java b/gen/org/moosetechnology/model/famix/famix/CppSourceLanguage.java new file mode 100644 index 0000000..27ef359 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/CppSourceLanguage.java @@ -0,0 +1,17 @@ +// 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 new file mode 100644 index 0000000..a040f3d --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/CustomSourceLanguage.java @@ -0,0 +1,220 @@ +// 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/famixjava/famixjavaentities/DeclaredException.java b/gen/org/moosetechnology/model/famix/famix/DeclaredException.java similarity index 78% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/DeclaredException.java rename to gen/org/moosetechnology/model/famix/famix/DeclaredException.java index 7ff5206..903a87c 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/DeclaredException.java +++ b/gen/org/moosetechnology/model/famix/famix/DeclaredException.java @@ -1,14 +1,14 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixtraits.TDeclaredException; -import org.moosetechnology.model.famixjava.famixtraits.TWithDeclaredExceptions; +import org.moosetechnology.model.famix.famixtraits.TDeclaredException; +import org.moosetechnology.model.famix.famixtraits.TWithDeclaredExceptions; -@FamePackage("Famix-Java-Entities") +@FamePackage("FAMIX") @FameDescription("DeclaredException") public class DeclaredException extends Exception implements TDeclaredException { diff --git a/gen/org/moosetechnology/model/famix/famix/DereferencedInvocation.java b/gen/org/moosetechnology/model/famix/famix/DereferencedInvocation.java new file mode 100644 index 0000000..ca55b8f --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/DereferencedInvocation.java @@ -0,0 +1,320 @@ +// 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 new file mode 100644 index 0000000..3613dea --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/Entity.java @@ -0,0 +1,17 @@ +// 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 new file mode 100644 index 0000000..3c8ac11 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/Enum.java @@ -0,0 +1,416 @@ +// 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 new file mode 100644 index 0000000..3ff34ad --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/EnumValue.java @@ -0,0 +1,37 @@ +// 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/famixjava/famixjavaentities/Exception.java b/gen/org/moosetechnology/model/famix/famix/Exception.java similarity index 64% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/Exception.java rename to gen/org/moosetechnology/model/famix/famix/Exception.java index 9bb228a..15ee770 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Exception.java +++ b/gen/org/moosetechnology/model/famix/famix/Exception.java @@ -1,21 +1,32 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixtraits.TException; -import org.moosetechnology.model.famixjava.famixtraits.TWithExceptions; +import org.moosetechnology.model.famix.famixtraits.TException; +import org.moosetechnology.model.famix.famixtraits.TWithExceptions; -@FamePackage("Famix-Java-Entities") +@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; diff --git a/gen/org/moosetechnology/model/famix/famix/FAMIXModel.java b/gen/org/moosetechnology/model/famix/famix/FAMIXModel.java new file mode 100644 index 0000000..8ea6f7d --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/FAMIXModel.java @@ -0,0 +1,86 @@ +// 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/famixjava/famixjavaentities/File.java b/gen/org/moosetechnology/model/famix/famix/File.java similarity index 92% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/File.java rename to gen/org/moosetechnology/model/famix/famix/File.java index 6d57c23..25216c9 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/File.java +++ b/gen/org/moosetechnology/model/famix/famix/File.java @@ -1,18 +1,18 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixtraits.TFile; -import org.moosetechnology.model.famixjava.famixtraits.TFileSystemEntity; -import org.moosetechnology.model.famixjava.famixtraits.TFolder; -import org.moosetechnology.model.famixjava.famixtraits.TWithFiles; +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-Java-Entities") +@FamePackage("FAMIX") @FameDescription("File") public class File extends NamedEntity implements TFile, TFileSystemEntity { diff --git a/gen/org/moosetechnology/model/famix/famix/FileAnchor.java b/gen/org/moosetechnology/model/famix/famix/FileAnchor.java new file mode 100644 index 0000000..dcdd8dd --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/FileAnchor.java @@ -0,0 +1,122 @@ +// 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/famixjava/famixjavaentities/Folder.java b/gen/org/moosetechnology/model/famix/famix/Folder.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/Folder.java rename to gen/org/moosetechnology/model/famix/famix/Folder.java index 1060149..7bdc93e 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Folder.java +++ b/gen/org/moosetechnology/model/famix/famix/Folder.java @@ -1,16 +1,16 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixtraits.TFileSystemEntity; -import org.moosetechnology.model.famixjava.famixtraits.TFolder; +import org.moosetechnology.model.famix.famixtraits.TFileSystemEntity; +import org.moosetechnology.model.famix.famixtraits.TFolder; -@FamePackage("Famix-Java-Entities") +@FamePackage("FAMIX") @FameDescription("Folder") public class Folder extends NamedEntity implements TFileSystemEntity, TFolder { diff --git a/gen/org/moosetechnology/model/famix/famix/Function.java b/gen/org/moosetechnology/model/famix/famix/Function.java new file mode 100644 index 0000000..4c66ed5 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/Function.java @@ -0,0 +1,484 @@ +// 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 new file mode 100644 index 0000000..6b0f42b --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/GlobalVariable.java @@ -0,0 +1,425 @@ +// 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 new file mode 100644 index 0000000..1d62263 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/Header.java @@ -0,0 +1,153 @@ +// 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 new file mode 100644 index 0000000..26b7883 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/ImplicitVariable.java @@ -0,0 +1,406 @@ +// 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 new file mode 100644 index 0000000..1b0db96 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/Include.java @@ -0,0 +1,247 @@ +// 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/famixjava/famixjavaentities/IndexedFileAnchor.java b/gen/org/moosetechnology/model/famix/famix/IndexedFileAnchor.java similarity index 51% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/IndexedFileAnchor.java rename to gen/org/moosetechnology/model/famix/famix/IndexedFileAnchor.java index f461aa9..f09feef 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/IndexedFileAnchor.java +++ b/gen/org/moosetechnology/model/famix/famix/IndexedFileAnchor.java @@ -1,20 +1,24 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixtraits.TFile; -import org.moosetechnology.model.famixjava.famixtraits.TFileAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TIndexedFileNavigation; +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-Java-Entities") +@FamePackage("FAMIX") @FameDescription("IndexedFileAnchor") -public class IndexedFileAnchor extends SourceAnchor implements TFileAnchor, TIndexedFileNavigation { +public class IndexedFileAnchor extends AbstractFileAnchor implements TFileAnchor, TIndexedFileNavigation, TSourceAnchor { private TFile correspondingFile; + private TSourceEntity element; + private String encoding; private Number endPos; @@ -34,6 +38,20 @@ 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; @@ -61,6 +79,12 @@ 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; diff --git a/gen/org/moosetechnology/model/famix/famix/Inheritance.java b/gen/org/moosetechnology/model/famix/famix/Inheritance.java new file mode 100644 index 0000000..d3fa2a6 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/Inheritance.java @@ -0,0 +1,247 @@ +// 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 new file mode 100644 index 0000000..dabd13e --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/Invocation.java @@ -0,0 +1,313 @@ +// 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 new file mode 100644 index 0000000..9a51d66 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/JavaSourceLanguage.java @@ -0,0 +1,17 @@ +// 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 new file mode 100644 index 0000000..4bcc787 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/LeafEntity.java @@ -0,0 +1,17 @@ +// 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/famixjava/famixjavaentities/LocalVariable.java b/gen/org/moosetechnology/model/famix/famix/LocalVariable.java similarity index 81% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/LocalVariable.java rename to gen/org/moosetechnology/model/famix/famix/LocalVariable.java index f684dc3..2018adb 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/LocalVariable.java +++ b/gen/org/moosetechnology/model/famix/famix/LocalVariable.java @@ -1,43 +1,44 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TAccess; -import org.moosetechnology.model.famixjava.famixtraits.TAccessible; -import org.moosetechnology.model.famixjava.famixtraits.TCanBeFinal; -import org.moosetechnology.model.famixjava.famixtraits.TComment; -import org.moosetechnology.model.famixjava.famixtraits.TInvocation; -import org.moosetechnology.model.famixjava.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famixjava.famixtraits.TLocalVariable; -import org.moosetechnology.model.famixjava.famixtraits.TNamedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famixjava.famixtraits.TType; -import org.moosetechnology.model.famixjava.famixtraits.TTypedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TWithAccesses; -import org.moosetechnology.model.famixjava.famixtraits.TWithComments; -import org.moosetechnology.model.famixjava.famixtraits.TWithLocalVariables; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; +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-Java-Entities") +@FamePackage("FAMIX") @FameDescription("LocalVariable") -public class LocalVariable extends NamedEntity implements TAccessible, TCanBeFinal, TEntityMetaLevelDependency, TInvocationsReceiver, TLocalVariable, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity, TWithComments { +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 isFinal; - private Boolean isStub; private String name; @@ -115,6 +116,21 @@ public Boolean getContainsReplicas() { 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; @@ -211,15 +227,6 @@ public Boolean getIsDead() { throw new UnsupportedOperationException("Not yet implemented!"); } - @FameProperty(name = "isFinal") - public Boolean getIsFinal() { - return isFinal; - } - - public void setIsFinal(Boolean isFinal) { - this.isFinal = isFinal; - } - @FameProperty(name = "isStub") public Boolean getIsStub() { return isStub; @@ -274,36 +281,12 @@ public Number getNumberOfDeadChildren() { 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; diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Method.java b/gen/org/moosetechnology/model/famix/famix/Method.java similarity index 81% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/Method.java rename to gen/org/moosetechnology/model/famix/famix/Method.java index 9c3a8fd..1fea4d2 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Method.java +++ b/gen/org/moosetechnology/model/famix/famix/Method.java @@ -1,57 +1,56 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TAccess; -import org.moosetechnology.model.famixjava.famixtraits.TCanBeAbstract; -import org.moosetechnology.model.famixjava.famixtraits.TCanBeClassSide; -import org.moosetechnology.model.famixjava.famixtraits.TCanBeFinal; -import org.moosetechnology.model.famixjava.famixtraits.TCaughtException; -import org.moosetechnology.model.famixjava.famixtraits.TComment; -import org.moosetechnology.model.famixjava.famixtraits.TDeclaredException; -import org.moosetechnology.model.famixjava.famixtraits.THasKind; -import org.moosetechnology.model.famixjava.famixtraits.THasSignature; -import org.moosetechnology.model.famixjava.famixtraits.THasVisibility; -import org.moosetechnology.model.famixjava.famixtraits.TImplicitVariable; -import org.moosetechnology.model.famixjava.famixtraits.TInvocable; -import org.moosetechnology.model.famixjava.famixtraits.TInvocation; -import org.moosetechnology.model.famixjava.famixtraits.TLocalVariable; -import org.moosetechnology.model.famixjava.famixtraits.TMethod; -import org.moosetechnology.model.famixjava.famixtraits.TMethodMetrics; -import org.moosetechnology.model.famixjava.famixtraits.TNamedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TParameter; -import org.moosetechnology.model.famixjava.famixtraits.TReference; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.famixtraits.TThrownException; -import org.moosetechnology.model.famixjava.famixtraits.TType; -import org.moosetechnology.model.famixjava.famixtraits.TTypedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TWithAccesses; -import org.moosetechnology.model.famixjava.famixtraits.TWithCaughtExceptions; -import org.moosetechnology.model.famixjava.famixtraits.TWithComments; -import org.moosetechnology.model.famixjava.famixtraits.TWithDeclaredExceptions; -import org.moosetechnology.model.famixjava.famixtraits.TWithImplicitVariables; -import org.moosetechnology.model.famixjava.famixtraits.TWithInvocations; -import org.moosetechnology.model.famixjava.famixtraits.TWithLocalVariables; -import org.moosetechnology.model.famixjava.famixtraits.TWithMethods; -import org.moosetechnology.model.famixjava.famixtraits.TWithParameters; -import org.moosetechnology.model.famixjava.famixtraits.TWithReferences; -import org.moosetechnology.model.famixjava.famixtraits.TWithStatements; -import org.moosetechnology.model.famixjava.famixtraits.TWithThrownExceptions; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; -import org.moosetechnology.model.famixjava.moosequery.TOODependencyQueries; - - -@FamePackage("Famix-Java-Entities") +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 ContainerEntity implements TCanBeAbstract, TCanBeClassSide, TCanBeFinal, TCanBeSynchronized, TEntityMetaLevelDependency, THasKind, THasSignature, THasVisibility, TInvocable, TMethod, TMethodMetrics, TNamedEntity, TOODependencyQueries, TSourceEntity, TTypedEntity, TWithAccesses, TWithCaughtExceptions, TWithComments, TWithDeclaredExceptions, TWithImplicitVariables, TWithInvocations, TWithLocalVariables, TWithParameters, TWithReferences, TWithStatements, TWithThrownExceptions { +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 Number numberOfConditionals; + private String category; + + private String timeStamp; private Collection accesses; @@ -63,6 +62,8 @@ public class Method extends ContainerEntity implements TCanBeAbstract, TCanBeCla private Collection declaredExceptions; + private TSourceLanguage declaredSourceLanguage; + private TType declaredType; private Collection implicitVariables; @@ -73,12 +74,8 @@ public class Method extends ContainerEntity implements TCanBeAbstract, TCanBeCla private Boolean isClassSide; - private Boolean isFinal; - private Boolean isStub; - private Boolean isSynchronized; - private String kind; private Collection localVariables; @@ -101,16 +98,17 @@ public class Method extends ContainerEntity implements TCanBeAbstract, TCanBeCla private Collection thrownExceptions; - private String visibility; - - @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 = "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. @@ -135,6 +133,12 @@ public Boolean getIsImplementing() { 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. @@ -153,39 +157,27 @@ public Boolean getIsOverriding() { throw new UnsupportedOperationException("Not yet implemented!"); } - @FameProperty(name = "numberOfAccesses", derived = true) - public Number getNumberOfAccesses() { + @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 = "numberOfComments", derived = true) - public Number getNumberOfComments() { + @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 = "numberOfConditionals") - public Number getNumberOfConditionals() { - return numberOfConditionals; + @FameProperty(name = "timeStamp") + public String getTimeStamp() { + return timeStamp; } - public void setNumberOfConditionals(Number numberOfConditionals) { - this.numberOfConditionals = numberOfConditionals; + public void setTimeStamp(String timeStamp) { + this.timeStamp = timeStamp; } - @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 = "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) { @@ -405,6 +397,21 @@ 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; @@ -593,45 +600,12 @@ public Boolean getIsDead() { throw new UnsupportedOperationException("Not yet implemented!"); } - @FameProperty(name = "isFinal") - public Boolean getIsFinal() { - return isFinal; - } - - public void setIsFinal(Boolean isFinal) { - this.isFinal = isFinal; - } - @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 = "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 = "isSetter", derived = true) public Boolean getIsSetter() { // TODO: this is a derived property, implement this method manually. @@ -647,15 +621,6 @@ public void setIsStub(Boolean isStub) { this.isStub = isStub; } - @FameProperty(name = "isSynchronized") - public Boolean getIsSynchronized() { - return isSynchronized; - } - - public void setIsSynchronized(Boolean isSynchronized) { - this.isSynchronized = isSynchronized; - } - @FameProperty(name = "kind") public String getKind() { return kind; @@ -725,44 +690,20 @@ 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() { + @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 = "numberOfInternalProviders", derived = true) - public Number getNumberOfInternalProviders() { + @FameProperty(name = "numberOfDeadChildren", derived = true) + public Number getNumberOfDeadChildren() { // TODO: this is a derived property, implement this method manually. throw new UnsupportedOperationException("Not yet implemented!"); } @@ -788,12 +729,6 @@ public Number getNumberOfMessageSends() { 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. @@ -806,6 +741,12 @@ public Number getNumberOfStatements() { 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) { @@ -1060,15 +1001,6 @@ public boolean hasThrownExceptions() { return !getThrownExceptions().isEmpty(); } - @FameProperty(name = "visibility") - public String getVisibility() { - return visibility; - } - - public void setVisibility(String visibility) { - this.visibility = visibility; - } - } diff --git a/gen/org/moosetechnology/model/famix/famix/Module.java b/gen/org/moosetechnology/model/famix/famix/Module.java new file mode 100644 index 0000000..2ecf104 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/Module.java @@ -0,0 +1,111 @@ +// 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 new file mode 100644 index 0000000..3598f7c --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/MultipleFileAnchor.java @@ -0,0 +1,86 @@ +// 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 new file mode 100644 index 0000000..18654af --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/NamedEntity.java @@ -0,0 +1,433 @@ +// 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 new file mode 100644 index 0000000..5d6f89e --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/Namespace.java @@ -0,0 +1,252 @@ +// 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/famixjava/famixjavaentities/Package.java b/gen/org/moosetechnology/model/famix/famix/Package.java similarity index 72% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/Package.java rename to gen/org/moosetechnology/model/famix/famix/Package.java index d958bdc..8467ac4 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Package.java +++ b/gen/org/moosetechnology/model/famix/famix/Package.java @@ -1,28 +1,38 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TGlobalVariable; -import org.moosetechnology.model.famixjava.famixtraits.TNamedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TPackage; -import org.moosetechnology.model.famixjava.famixtraits.TPackageable; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.famixtraits.TWithGlobalVariables; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; +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-Java-Entities") +@FamePackage("FAMIX") @FameDescription("Package") -public class Package extends ContainerEntity implements TEntityMetaLevelDependency, TNamedEntity, TPackage, TPackageable, TSourceEntity, TWithGlobalVariables { +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; @@ -31,7 +41,7 @@ public class Package extends ContainerEntity implements TEntityMetaLevelDependen private Number numberOfLinesOfCode; - private TPackage parentPackage; + private TWithPackages packageOwner; private TSourceAnchor sourceAnchor; @@ -55,24 +65,12 @@ public Number getBunchCohesion() { 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!"); - } - @FameProperty(name = "martinCohesion", derived = true) public Number getMartinCohesion() { // TODO: this is a derived property, implement this method manually. @@ -148,12 +146,84 @@ 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. @@ -223,6 +293,18 @@ 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. @@ -253,32 +335,14 @@ public Number getNumberOfChildren() { 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() { + @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 = "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() { + @FameProperty(name = "numberOfDeadChildren", derived = true) + public Number getNumberOfDeadChildren() { // TODO: this is a derived property, implement this method manually. throw new UnsupportedOperationException("Not yet implemented!"); } @@ -298,19 +362,19 @@ public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { throw new UnsupportedOperationException("Not yet implemented!"); } - @FameProperty(name = "parentPackage", opposite = "childEntities", container = true) - public TPackage getParentPackage() { - return parentPackage; + @FameProperty(name = "packageOwner", opposite = "packages") + public TWithPackages getPackageOwner() { + return packageOwner; } - public void setParentPackage(TPackage parentPackage) { - if (this.parentPackage != null) { - if (this.parentPackage.equals(parentPackage)) return; - this.parentPackage.getChildEntities().remove(this); + public void setPackageOwner(TWithPackages packageOwner) { + if (this.packageOwner != null) { + if (this.packageOwner.equals(packageOwner)) return; + this.packageOwner.getPackages().remove(this); } - this.parentPackage = parentPackage; - if (parentPackage == null) return; - parentPackage.getChildEntities().add(this); + this.packageOwner = packageOwner; + if (packageOwner == null) return; + packageOwner.getPackages().add(this); } @FameProperty(name = "replicas", derived = true) diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Parameter.java b/gen/org/moosetechnology/model/famix/famix/Parameter.java similarity index 73% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/Parameter.java rename to gen/org/moosetechnology/model/famix/famix/Parameter.java index b3e9b52..22fec24 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Parameter.java +++ b/gen/org/moosetechnology/model/famix/famix/Parameter.java @@ -1,41 +1,44 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TAccess; -import org.moosetechnology.model.famixjava.famixtraits.TAccessible; -import org.moosetechnology.model.famixjava.famixtraits.TCanBeFinal; -import org.moosetechnology.model.famixjava.famixtraits.TComment; -import org.moosetechnology.model.famixjava.famixtraits.TNamedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TParameter; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famixjava.famixtraits.TType; -import org.moosetechnology.model.famixjava.famixtraits.TTypedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TWithAccesses; -import org.moosetechnology.model.famixjava.famixtraits.TWithComments; -import org.moosetechnology.model.famixjava.famixtraits.TWithParameters; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; +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-Java-Entities") +@FamePackage("FAMIX") @FameDescription("Parameter") -public class Parameter extends NamedEntity implements TAccessible, TCanBeFinal, TEntityMetaLevelDependency, TNamedEntity, TParameter, TSourceEntity, TStructuralEntity, TTypedEntity, TWithComments { +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 isFinal; - private Boolean isStub; private String name; @@ -44,6 +47,8 @@ public class Parameter extends NamedEntity implements TAccessible, TCanBeFinal, private TWithParameters parentBehaviouralEntity; + private Collection receivingInvocations; + private TSourceAnchor sourceAnchor; @@ -111,6 +116,21 @@ public Boolean getContainsReplicas() { 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; @@ -207,15 +227,6 @@ public Boolean getIsDead() { throw new UnsupportedOperationException("Not yet implemented!"); } - @FameProperty(name = "isFinal") - public Boolean getIsFinal() { - return isFinal; - } - - public void setIsFinal(Boolean isFinal) { - this.isFinal = isFinal; - } - @FameProperty(name = "isStub") public Boolean getIsStub() { return isStub; @@ -270,36 +281,12 @@ public Number getNumberOfDeadChildren() { 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; @@ -336,6 +323,57 @@ public void setParentBehaviouralEntity(TWithParameters parentBehaviouralEntity) 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. diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/ParameterType.java b/gen/org/moosetechnology/model/famix/famix/ParameterType.java similarity index 58% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/ParameterType.java rename to gen/org/moosetechnology/model/famix/famix/ParameterType.java index e7a3907..a1423fd 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/ParameterType.java +++ b/gen/org/moosetechnology/model/famix/famix/ParameterType.java @@ -1,12 +1,12 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +package org.moosetechnology.model.famix.famix; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.famixtraits.TParameterType; +import org.moosetechnology.model.famix.famixtraits.TParameterType; -@FamePackage("Famix-Java-Entities") +@FamePackage("FAMIX") @FameDescription("ParameterType") public class ParameterType extends Type implements TParameterType { diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/ParameterizableClass.java b/gen/org/moosetechnology/model/famix/famix/ParameterizableClass.java similarity index 91% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/ParameterizableClass.java rename to gen/org/moosetechnology/model/famix/famix/ParameterizableClass.java index fd23f78..d7f2709 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/ParameterizableClass.java +++ b/gen/org/moosetechnology/model/famix/famix/ParameterizableClass.java @@ -1,16 +1,16 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixtraits.TParameterizedType; -import org.moosetechnology.model.famixjava.famixtraits.TWithParameterizedTypes; +import org.moosetechnology.model.famix.famixtraits.TParameterizedType; +import org.moosetechnology.model.famix.famixtraits.TWithParameterizedTypes; -@FamePackage("Famix-Java-Entities") +@FamePackage("FAMIX") @FameDescription("ParameterizableClass") public class ParameterizableClass extends Class implements TWithParameterizedTypes { diff --git a/gen/org/moosetechnology/model/famix/famix/ParameterizedType.java b/gen/org/moosetechnology/model/famix/famix/ParameterizedType.java new file mode 100644 index 0000000..cdc688d --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/ParameterizedType.java @@ -0,0 +1,93 @@ +// 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 new file mode 100644 index 0000000..e32fdec --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/PharoAnchor.java @@ -0,0 +1,17 @@ +// 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 new file mode 100644 index 0000000..a90c585 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/PreprocessorDefine.java @@ -0,0 +1,30 @@ +// 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 new file mode 100644 index 0000000..e2b1722 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/PreprocessorIfdef.java @@ -0,0 +1,40 @@ +// 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 new file mode 100644 index 0000000..7a97bd3 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/PreprocessorStatement.java @@ -0,0 +1,17 @@ +// 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 new file mode 100644 index 0000000..63b6c05 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/PrimitiveType.java @@ -0,0 +1,361 @@ +// 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 new file mode 100644 index 0000000..deb65dc --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/Reference.java @@ -0,0 +1,248 @@ +// 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 new file mode 100644 index 0000000..4076270 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/ScopingEntity.java @@ -0,0 +1,145 @@ +// 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 new file mode 100644 index 0000000..47b9d9b --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/SmalltalkSourceLanguage.java @@ -0,0 +1,17 @@ +// 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/famixjava/famixjavaentities/SourceAnchor.java b/gen/org/moosetechnology/model/famix/famix/SourceAnchor.java similarity index 81% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/SourceAnchor.java rename to gen/org/moosetechnology/model/famix/famix/SourceAnchor.java index 3d081d6..9ed58b4 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/SourceAnchor.java +++ b/gen/org/moosetechnology/model/famix/famix/SourceAnchor.java @@ -1,14 +1,14 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; +import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; +import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -@FamePackage("Famix-Java-Entities") +@FamePackage("FAMIX") @FameDescription("SourceAnchor") public class SourceAnchor extends Entity implements TSourceAnchor { diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/SourceLanguage.java b/gen/org/moosetechnology/model/famix/famix/SourceLanguage.java similarity index 68% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/SourceLanguage.java rename to gen/org/moosetechnology/model/famix/famix/SourceLanguage.java index 7a9604f..7e99d8d 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/SourceLanguage.java +++ b/gen/org/moosetechnology/model/famix/famix/SourceLanguage.java @@ -1,20 +1,20 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famixjava.famixtraits.TWithSourceLanguages; +import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; +import org.moosetechnology.model.famix.famixtraits.TWithSourceLanguage; -@FamePackage("Famix-Java-Entities") +@FamePackage("FAMIX") @FameDescription("SourceLanguage") public class SourceLanguage extends Entity implements TSourceLanguage { - private Collection sourcedEntities; + private Collection sourcedEntities; @@ -25,15 +25,15 @@ public String getName() { } @FameProperty(name = "sourcedEntities", opposite = "declaredSourceLanguage", derived = true) - public Collection getSourcedEntities() { + public Collection getSourcedEntities() { if (sourcedEntities == null) { - sourcedEntities = new MultivalueSet() { + sourcedEntities = new MultivalueSet() { @Override - protected void clearOpposite(TWithSourceLanguages e) { + protected void clearOpposite(TWithSourceLanguage e) { e.setDeclaredSourceLanguage(null); } @Override - protected void setOpposite(TWithSourceLanguages e) { + protected void setOpposite(TWithSourceLanguage e) { e.setDeclaredSourceLanguage(SourceLanguage.this); } }; @@ -41,29 +41,29 @@ protected void setOpposite(TWithSourceLanguages e) { return sourcedEntities; } - public void setSourcedEntities(Collection sourcedEntities) { + public void setSourcedEntities(Collection sourcedEntities) { this.getSourcedEntities().clear(); this.getSourcedEntities().addAll(sourcedEntities); } - public void addSourcedEntities(TWithSourceLanguages one) { + public void addSourcedEntities(TWithSourceLanguage one) { this.getSourcedEntities().add(one); } - public void addSourcedEntities(TWithSourceLanguages one, TWithSourceLanguages... many) { + public void addSourcedEntities(TWithSourceLanguage one, TWithSourceLanguage... many) { this.getSourcedEntities().add(one); - for (TWithSourceLanguages each : many) + for (TWithSourceLanguage each : many) this.getSourcedEntities().add(each); } - public void addSourcedEntities(Iterable many) { - for (TWithSourceLanguages each : many) + public void addSourcedEntities(Iterable many) { + for (TWithSourceLanguage each : many) this.getSourcedEntities().add(each); } - public void addSourcedEntities(TWithSourceLanguages[] many) { - for (TWithSourceLanguages each : many) + public void addSourcedEntities(TWithSourceLanguage[] many) { + for (TWithSourceLanguage each : many) this.getSourcedEntities().add(each); } diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/SourceTextAnchor.java b/gen/org/moosetechnology/model/famix/famix/SourceTextAnchor.java similarity index 80% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/SourceTextAnchor.java rename to gen/org/moosetechnology/model/famix/famix/SourceTextAnchor.java index 35841ba..09be06f 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/SourceTextAnchor.java +++ b/gen/org/moosetechnology/model/famix/famix/SourceTextAnchor.java @@ -1,15 +1,15 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixtraits.THasImmediateSource; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; +import org.moosetechnology.model.famix.famixtraits.THasImmediateSource; +import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; +import org.moosetechnology.model.famix.famixtraits.TSourceEntity; -@FamePackage("Famix-Java-Entities") +@FamePackage("FAMIX") @FameDescription("SourceTextAnchor") public class SourceTextAnchor extends SourceAnchor implements THasImmediateSource, TSourceAnchor { diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/SourcedEntity.java b/gen/org/moosetechnology/model/famix/famix/SourcedEntity.java similarity index 57% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/SourcedEntity.java rename to gen/org/moosetechnology/model/famix/famix/SourcedEntity.java index 573d51d..4acd8fc 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/SourcedEntity.java +++ b/gen/org/moosetechnology/model/famix/famix/SourcedEntity.java @@ -1,24 +1,32 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TFile; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.famixtraits.TWithFiles; +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-Java-Entities") +@FamePackage("FAMIX") @FameDescription("SourcedEntity") -public class SourcedEntity extends Entity implements TSourceEntity, TWithFiles { +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; @@ -33,6 +41,57 @@ public Number getNumberOfJavaNullChecks() { 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) { @@ -89,12 +148,33 @@ public Boolean getContainsReplicas() { 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; @@ -104,6 +184,12 @@ 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; diff --git a/gen/org/moosetechnology/model/famix/famix/StructuralEntity.java b/gen/org/moosetechnology/model/famix/famix/StructuralEntity.java new file mode 100644 index 0000000..63e61a0 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/StructuralEntity.java @@ -0,0 +1,442 @@ +// 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/famixjava/famixjavaentities/ThrownException.java b/gen/org/moosetechnology/model/famix/famix/ThrownException.java similarity index 78% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/ThrownException.java rename to gen/org/moosetechnology/model/famix/famix/ThrownException.java index c68cc3c..5fa29ac 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/ThrownException.java +++ b/gen/org/moosetechnology/model/famix/famix/ThrownException.java @@ -1,14 +1,14 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixtraits.TThrownException; -import org.moosetechnology.model.famixjava.famixtraits.TWithThrownExceptions; +import org.moosetechnology.model.famix.famixtraits.TThrownException; +import org.moosetechnology.model.famix.famixtraits.TWithThrownExceptions; -@FamePackage("Famix-Java-Entities") +@FamePackage("FAMIX") @FameDescription("ThrownException") public class ThrownException extends Exception implements TThrownException { diff --git a/gen/org/moosetechnology/model/famix/famix/Trait.java b/gen/org/moosetechnology/model/famix/famix/Trait.java new file mode 100644 index 0000000..1c23dfb --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/Trait.java @@ -0,0 +1,93 @@ +// 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 new file mode 100644 index 0000000..fd89d38 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/TraitUsage.java @@ -0,0 +1,248 @@ +// 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 new file mode 100644 index 0000000..69f0b1e --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/Type.java @@ -0,0 +1,892 @@ +// 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 new file mode 100644 index 0000000..db82f41 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/TypeAlias.java @@ -0,0 +1,37 @@ +// 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 new file mode 100644 index 0000000..e17749d --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/UnknownSourceLanguage.java @@ -0,0 +1,18 @@ +// 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 new file mode 100644 index 0000000..f7973a3 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famix/UnknownVariable.java @@ -0,0 +1,388 @@ +// 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/famixjava/famixjavaentities/Access.java b/gen/org/moosetechnology/model/famix/famixcentities/Access.java similarity index 89% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/Access.java rename to gen/org/moosetechnology/model/famix/famixcentities/Access.java index 8d91409..08299cb 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Access.java +++ b/gen/org/moosetechnology/model/famix/famixcentities/Access.java @@ -1,20 +1,20 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TAccess; -import org.moosetechnology.model.famixjava.famixtraits.TAccessible; -import org.moosetechnology.model.famixjava.famixtraits.TAssociation; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.famixtraits.TWithAccesses; -import org.moosetechnology.model.famixjava.moosequery.TAssociationMetaLevelDependency; +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-Java-Entities") +@FamePackage("Famix-C-Entities") @FameDescription("Access") public class Access extends Entity implements TAccess, TAssociation, TAssociationMetaLevelDependency, TSourceEntity { diff --git a/gen/org/moosetechnology/model/famix/famixcentities/AliasType.java b/gen/org/moosetechnology/model/famix/famixcentities/AliasType.java new file mode 100644 index 0000000..bca6407 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcentities/AliasType.java @@ -0,0 +1,37 @@ +// 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/famixjava/famixjavaentities/UnknownVariable.java b/gen/org/moosetechnology/model/famix/famixcentities/Attribute.java similarity index 74% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/UnknownVariable.java rename to gen/org/moosetechnology/model/famix/famixcentities/Attribute.java index cb9fa1c..d75776b 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/UnknownVariable.java +++ b/gen/org/moosetechnology/model/famix/famixcentities/Attribute.java @@ -1,30 +1,29 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TAccess; -import org.moosetechnology.model.famixjava.famixtraits.TAccessible; -import org.moosetechnology.model.famixjava.famixtraits.TInvocation; -import org.moosetechnology.model.famixjava.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famixjava.famixtraits.TNamedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famixjava.famixtraits.TType; -import org.moosetechnology.model.famixjava.famixtraits.TTypedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TUnknownVariable; -import org.moosetechnology.model.famixjava.famixtraits.TWithAccesses; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; +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-Java-Entities") -@FameDescription("UnknownVariable") -public class UnknownVariable extends NamedEntity implements TAccessible, TEntityMetaLevelDependency, TInvocationsReceiver, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity, TUnknownVariable { +@FamePackage("Famix-C-Entities") +@FameDescription("Attribute") +public class Attribute extends Entity implements TAccessible, TAttribute, TEntityMetaLevelDependency, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity { private TType declaredType; @@ -36,8 +35,8 @@ public class UnknownVariable extends NamedEntity implements TAccessible, TEntity private Number numberOfLinesOfCode; - private Collection receivingInvocations; - + private TWithAttributes parentType; + private TSourceAnchor sourceAnchor; @@ -87,6 +86,18 @@ public Number getFanOut() { 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) { @@ -97,7 +108,7 @@ protected void clearOpposite(TAccess e) { } @Override protected void setOpposite(TAccess e) { - e.setVariable(UnknownVariable.this); + e.setVariable(Attribute.this); } }; } @@ -243,57 +254,21 @@ public Number getNumberOfLocalAccesses() { 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(); + @FameProperty(name = "parentType", opposite = "attributes", container = true) + public TWithAttributes getParentType() { + return parentType; } - public boolean hasReceivingInvocations() { - return !getReceivingInvocations().isEmpty(); + 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. diff --git a/gen/org/moosetechnology/model/famix/famixcentities/BehaviouralReference.java b/gen/org/moosetechnology/model/famix/famixcentities/BehaviouralReference.java new file mode 100644 index 0000000..ace938a --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcentities/BehaviouralReference.java @@ -0,0 +1,17 @@ +// 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 new file mode 100644 index 0000000..14012b8 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcentities/CModel.java @@ -0,0 +1,18 @@ +// 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 new file mode 100644 index 0000000..91b0772 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcentities/DerefInvocation.java @@ -0,0 +1,17 @@ +// 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 new file mode 100644 index 0000000..48e165f --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcentities/Entity.java @@ -0,0 +1,17 @@ +// 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/famixjava/famixjavaentities/Type.java b/gen/org/moosetechnology/model/famix/famixcentities/Enum.java similarity index 52% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/Type.java rename to gen/org/moosetechnology/model/famix/famixcentities/Enum.java index 7593b5a..722174d 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Type.java +++ b/gen/org/moosetechnology/model/famix/famixcentities/Enum.java @@ -1,135 +1,111 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TMethod; -import org.moosetechnology.model.famixjava.famixtraits.TNamedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TParameterizedTypeUser; -import org.moosetechnology.model.famixjava.famixtraits.TReference; -import org.moosetechnology.model.famixjava.famixtraits.TReferenceable; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.famixtraits.TType; -import org.moosetechnology.model.famixjava.famixtraits.TTypeAlias; -import org.moosetechnology.model.famixjava.famixtraits.TTypedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TWithMethods; -import org.moosetechnology.model.famixjava.famixtraits.TWithParameterizedTypeUsers; -import org.moosetechnology.model.famixjava.famixtraits.TWithTypeAliases; -import org.moosetechnology.model.famixjava.famixtraits.TWithTypes; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; +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-Java-Entities") -@FameDescription("Type") -public class Type extends ContainerEntity implements TEntityMetaLevelDependency, TNamedEntity, TParameterizedTypeUser, TReferenceable, TSourceEntity, TType, TWithMethods, TWithTypeAliases { +@FamePackage("Famix-C-Entities") +@FameDescription("Enum") +public class Enum extends Type implements TEntityMetaLevelDependency, TEnum, TNamedEntity, TReferenceable, TSourceEntity, TType, TWithEnumValues { - private Collection argumentsInParameterizedTypes; + private Collection enumValues; private Collection incomingReferences; private Boolean isStub; - private Collection methods; - private String name; private Number numberOfLinesOfCode; private TSourceAnchor sourceAnchor; - private Collection typeAliases; - private TWithTypes typeContainer; private Collection typedEntities; - @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() { + @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 = "isTestCase", derived = true) - public Boolean getIsTestCase() { + @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 = "argumentsInParameterizedTypes", opposite = "arguments", derived = true) - public Collection getArgumentsInParameterizedTypes() { - if (argumentsInParameterizedTypes == null) { - argumentsInParameterizedTypes = new MultivalueSet() { + @FameProperty(name = "enumValues", opposite = "parentEnum", derived = true) + public Collection getEnumValues() { + if (enumValues == null) { + enumValues = new MultivalueSet() { @Override - protected void clearOpposite(TWithParameterizedTypeUsers e) { - e.getArguments().remove(Type.this); + protected void clearOpposite(TEnumValue e) { + e.setParentEnum(null); } @Override - protected void setOpposite(TWithParameterizedTypeUsers e) { - e.getArguments().add(Type.this); + protected void setOpposite(TEnumValue e) { + e.setParentEnum(Enum.this); } }; } - return argumentsInParameterizedTypes; + return enumValues; } - public void setArgumentsInParameterizedTypes(Collection argumentsInParameterizedTypes) { - this.getArgumentsInParameterizedTypes().clear(); - this.getArgumentsInParameterizedTypes().addAll(argumentsInParameterizedTypes); - } + public void setEnumValues(Collection enumValues) { + this.getEnumValues().clear(); + this.getEnumValues().addAll(enumValues); + } - public void addArgumentsInParameterizedTypes(TWithParameterizedTypeUsers one) { - this.getArgumentsInParameterizedTypes().add(one); + + public void addEnumValues(TEnumValue one) { + this.getEnumValues().add(one); } - public void addArgumentsInParameterizedTypes(TWithParameterizedTypeUsers one, TWithParameterizedTypeUsers... many) { - this.getArgumentsInParameterizedTypes().add(one); - for (TWithParameterizedTypeUsers each : many) - this.getArgumentsInParameterizedTypes().add(each); + public void addEnumValues(TEnumValue one, TEnumValue... many) { + this.getEnumValues().add(one); + for (TEnumValue each : many) + this.getEnumValues().add(each); } - public void addArgumentsInParameterizedTypes(Iterable many) { - for (TWithParameterizedTypeUsers each : many) - this.getArgumentsInParameterizedTypes().add(each); + public void addEnumValues(Iterable many) { + for (TEnumValue each : many) + this.getEnumValues().add(each); } - public void addArgumentsInParameterizedTypes(TWithParameterizedTypeUsers[] many) { - for (TWithParameterizedTypeUsers each : many) - this.getArgumentsInParameterizedTypes().add(each); + public void addEnumValues(TEnumValue[] many) { + for (TEnumValue each : many) + this.getEnumValues().add(each); } - public int numberOfArgumentsInParameterizedTypes() { - return getArgumentsInParameterizedTypes().size(); + public int numberOfEnumValues() { + return getEnumValues().size(); } - public boolean hasArgumentsInParameterizedTypes() { - return !getArgumentsInParameterizedTypes().isEmpty(); + public boolean hasEnumValues() { + return !getEnumValues().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. @@ -152,7 +128,7 @@ protected void clearOpposite(TReference e) { } @Override protected void setOpposite(TReference e) { - e.setReferredType(Type.this); + e.setReferredType(Enum.this); } }; } @@ -208,57 +184,6 @@ 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; @@ -268,12 +193,6 @@ 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 = "numberOfChildren", derived = true) public Number getNumberOfChildren() { // TODO: this is a derived property, implement this method manually. @@ -325,18 +244,6 @@ public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { 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 = "replicas", derived = true) public Replica getReplicas() { // TODO: this is a derived property, implement this method manually. @@ -363,63 +270,6 @@ public String getSourceText() { throw new UnsupportedOperationException("Not yet implemented!"); } - @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 = "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; @@ -445,7 +295,7 @@ protected void clearOpposite(TTypedEntity e) { } @Override protected void setOpposite(TTypedEntity e) { - e.setDeclaredType(Type.this); + e.setDeclaredType(Enum.this); } }; } @@ -486,12 +336,6 @@ 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/famixjava/famixjavaentities/EnumValue.java b/gen/org/moosetechnology/model/famix/famixcentities/EnumValue.java similarity index 90% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/EnumValue.java rename to gen/org/moosetechnology/model/famix/famixcentities/EnumValue.java index c60e91f..f360c55 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/EnumValue.java +++ b/gen/org/moosetechnology/model/famix/famixcentities/EnumValue.java @@ -1,31 +1,31 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TAccess; -import org.moosetechnology.model.famixjava.famixtraits.TAccessible; -import org.moosetechnology.model.famixjava.famixtraits.TComment; -import org.moosetechnology.model.famixjava.famixtraits.TEnumValue; -import org.moosetechnology.model.famixjava.famixtraits.TNamedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famixjava.famixtraits.TType; -import org.moosetechnology.model.famixjava.famixtraits.TTypedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TWithAccesses; -import org.moosetechnology.model.famixjava.famixtraits.TWithComments; -import org.moosetechnology.model.famixjava.famixtraits.TWithEnumValues; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; +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-Java-Entities") +@FamePackage("Famix-C-Entities") @FameDescription("EnumValue") -public class EnumValue extends NamedEntity implements TAccessible, TEntityMetaLevelDependency, TEnumValue, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity, TWithComments { +public class EnumValue extends Entity implements TAccessible, TEntityMetaLevelDependency, TEnumValue, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity, TWithComments { private Collection comments; diff --git a/gen/org/moosetechnology/model/famix/famixcentities/FamixCEntitiesModel.java b/gen/org/moosetechnology/model/famix/famixcentities/FamixCEntitiesModel.java new file mode 100644 index 0000000..f94a5e0 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcentities/FamixCEntitiesModel.java @@ -0,0 +1,39 @@ +// 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 new file mode 100644 index 0000000..dfa900d --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcentities/Function.java @@ -0,0 +1,447 @@ +// 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/famixjava/famixjavaentities/GlobalVariable.java b/gen/org/moosetechnology/model/famix/famixcentities/GlobalVar.java similarity index 74% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/GlobalVariable.java rename to gen/org/moosetechnology/model/famix/famixcentities/GlobalVar.java index 32857ff..fcfae07 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/GlobalVariable.java +++ b/gen/org/moosetechnology/model/famix/famixcentities/GlobalVar.java @@ -1,31 +1,29 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TAccess; -import org.moosetechnology.model.famixjava.famixtraits.TAccessible; -import org.moosetechnology.model.famixjava.famixtraits.TGlobalVariable; -import org.moosetechnology.model.famixjava.famixtraits.TInvocation; -import org.moosetechnology.model.famixjava.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famixjava.famixtraits.TNamedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famixjava.famixtraits.TType; -import org.moosetechnology.model.famixjava.famixtraits.TTypedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TWithAccesses; -import org.moosetechnology.model.famixjava.famixtraits.TWithGlobalVariables; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; +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-Java-Entities") -@FameDescription("GlobalVariable") -public class GlobalVariable extends NamedEntity implements TAccessible, TEntityMetaLevelDependency, TGlobalVariable, TInvocationsReceiver, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity { +@FamePackage("Famix-C-Entities") +@FameDescription("GlobalVar") +public class GlobalVar extends Entity implements TAccessible, TEntityMetaLevelDependency, TGlobalVariable, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity { private TType declaredType; @@ -39,8 +37,6 @@ public class GlobalVariable extends NamedEntity implements TAccessible, TEntityM private TWithGlobalVariables parentScope; - private Collection receivingInvocations; - private TSourceAnchor sourceAnchor; @@ -100,7 +96,7 @@ protected void clearOpposite(TAccess e) { } @Override protected void setOpposite(TAccess e) { - e.setVariable(GlobalVariable.this); + e.setVariable(GlobalVar.this); } }; } @@ -261,57 +257,6 @@ public void setParentScope(TWithGlobalVariables parentScope) { 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. diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Invocation.java b/gen/org/moosetechnology/model/famix/famixcentities/Invocation.java similarity index 85% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/Invocation.java rename to gen/org/moosetechnology/model/famix/famixcentities/Invocation.java index bc2e719..3874fab 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Invocation.java +++ b/gen/org/moosetechnology/model/famix/famixcentities/Invocation.java @@ -1,26 +1,25 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TAssociation; -import org.moosetechnology.model.famixjava.famixtraits.THasSignature; -import org.moosetechnology.model.famixjava.famixtraits.TInvocable; -import org.moosetechnology.model.famixjava.famixtraits.TInvocation; -import org.moosetechnology.model.famixjava.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.famixtraits.TWithInvocations; -import org.moosetechnology.model.famixjava.moosequery.TAssociationMetaLevelDependency; - - -@FamePackage("Famix-Java-Entities") +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, THasSignature, TInvocation, TSourceEntity { +public class Invocation extends Entity implements TAssociation, TAssociationMetaLevelDependency, TInvocation, TSourceEntity { private Collection candidates; @@ -36,8 +35,6 @@ public class Invocation extends Entity implements TAssociation, TAssociationMeta private TWithInvocations sender; - private String signature; - private TSourceAnchor sourceAnchor; @@ -192,15 +189,6 @@ public void setSender(TWithInvocations sender) { 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; diff --git a/gen/org/moosetechnology/model/famix/famixcentities/LocalVar.java b/gen/org/moosetechnology/model/famix/famixcentities/LocalVar.java new file mode 100644 index 0000000..4478022 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcentities/LocalVar.java @@ -0,0 +1,289 @@ +// 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 new file mode 100644 index 0000000..b159441 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcentities/Parameter.java @@ -0,0 +1,270 @@ +// 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 new file mode 100644 index 0000000..5b52240 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcentities/PrimitiveType.java @@ -0,0 +1,17 @@ +// 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/famixjava/famixjavaentities/Reference.java b/gen/org/moosetechnology/model/famix/famixcentities/Reference.java similarity index 88% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/Reference.java rename to gen/org/moosetechnology/model/famix/famixcentities/Reference.java index a93dcef..58ba27b 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Reference.java +++ b/gen/org/moosetechnology/model/famix/famixcentities/Reference.java @@ -1,20 +1,20 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TAssociation; -import org.moosetechnology.model.famixjava.famixtraits.TReference; -import org.moosetechnology.model.famixjava.famixtraits.TReferenceable; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.famixtraits.TWithReferences; -import org.moosetechnology.model.famixjava.moosequery.TAssociationMetaLevelDependency; +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-Java-Entities") +@FamePackage("Famix-C-Entities") @FameDescription("Reference") public class Reference extends Entity implements TAssociation, TAssociationMetaLevelDependency, TReference, TSourceEntity { diff --git a/gen/org/moosetechnology/model/famix/famixcentities/Struct.java b/gen/org/moosetechnology/model/famix/famixcentities/Struct.java new file mode 100644 index 0000000..7d7b339 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcentities/Struct.java @@ -0,0 +1,148 @@ +// 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/famixjava/famixjavaentities/PrimitiveType.java b/gen/org/moosetechnology/model/famix/famixcentities/Type.java similarity index 77% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/PrimitiveType.java rename to gen/org/moosetechnology/model/famix/famixcentities/Type.java index 09b2c6d..a3606f3 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/PrimitiveType.java +++ b/gen/org/moosetechnology/model/famix/famixcentities/Type.java @@ -1,27 +1,28 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TNamedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TPrimitiveType; -import org.moosetechnology.model.famixjava.famixtraits.TReference; -import org.moosetechnology.model.famixjava.famixtraits.TReferenceable; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.famixtraits.TType; -import org.moosetechnology.model.famixjava.famixtraits.TTypedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TWithTypes; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; +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-Java-Entities") -@FameDescription("PrimitiveType") -public class PrimitiveType extends Type implements TEntityMetaLevelDependency, TNamedEntity, TPrimitiveType, TReferenceable, TSourceEntity, TType { +@FamePackage("Famix-C-Entities") +@FameDescription("Type") +public class Type extends Entity implements TEntityMetaLevelDependency, TNamedEntity, TReferenceable, TSourceEntity, TType, TWithTypeAliases { private Collection incomingReferences; @@ -33,6 +34,8 @@ public class PrimitiveType extends Type implements TEntityMetaLevelDependency, T private TSourceAnchor sourceAnchor; + private Collection typeAliases; + private TWithTypes typeContainer; private Collection typedEntities; @@ -73,7 +76,7 @@ protected void clearOpposite(TReference e) { } @Override protected void setOpposite(TReference e) { - e.setReferredType(PrimitiveType.this); + e.setReferredType(Type.this); } }; } @@ -215,6 +218,57 @@ public String getSourceText() { 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; @@ -240,7 +294,7 @@ protected void clearOpposite(TTypedEntity e) { } @Override protected void setOpposite(TTypedEntity e) { - e.setDeclaredType(PrimitiveType.this); + e.setDeclaredType(Type.this); } }; } diff --git a/gen/org/moosetechnology/model/famix/famixcentities/Union.java b/gen/org/moosetechnology/model/famix/famixcentities/Union.java new file mode 100644 index 0000000..969f002 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcentities/Union.java @@ -0,0 +1,148 @@ +// 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 new file mode 100644 index 0000000..7d527ae --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcentities/UnknownBehaviour.java @@ -0,0 +1,30 @@ +// 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/famixjava/famixjavaentities/Enum.java b/gen/org/moosetechnology/model/famix/famixcppnewentities/Class.java similarity index 81% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/Enum.java rename to gen/org/moosetechnology/model/famix/famixcppnewentities/Class.java index 865eccb..533f45a 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Enum.java +++ b/gen/org/moosetechnology/model/famix/famixcppnewentities/Class.java @@ -1,45 +1,45 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TAttribute; -import org.moosetechnology.model.famixjava.famixtraits.TComment; -import org.moosetechnology.model.famixjava.famixtraits.TEnum; -import org.moosetechnology.model.famixjava.famixtraits.TEnumValue; -import org.moosetechnology.model.famixjava.famixtraits.THasVisibility; -import org.moosetechnology.model.famixjava.famixtraits.TInheritance; -import org.moosetechnology.model.famixjava.famixtraits.TMethod; -import org.moosetechnology.model.famixjava.famixtraits.TNamedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TReference; -import org.moosetechnology.model.famixjava.famixtraits.TReferenceable; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.famixtraits.TType; -import org.moosetechnology.model.famixjava.famixtraits.TTypedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TWithAttributes; -import org.moosetechnology.model.famixjava.famixtraits.TWithComments; -import org.moosetechnology.model.famixjava.famixtraits.TWithEnumValues; -import org.moosetechnology.model.famixjava.famixtraits.TWithInheritances; -import org.moosetechnology.model.famixjava.famixtraits.TWithMethods; -import org.moosetechnology.model.famixjava.famixtraits.TWithTypes; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Java-Entities") -@FameDescription("Enum") -public class Enum extends Type implements TEntityMetaLevelDependency, TEnum, THasVisibility, TNamedEntity, TReferenceable, TSourceEntity, TType, TWithAttributes, TWithComments, TWithEnumValues, TWithInheritances, TWithMethods { +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 enumValues; - private Collection incomingReferences; private Boolean isStub; @@ -50,6 +50,10 @@ public class Enum extends Type implements TEntityMetaLevelDependency, TEnum, THa private Number numberOfLinesOfCode; + private TPackage parentPackage; + + private Collection receivingInvocations; + private TSourceAnchor sourceAnchor; private Collection subInheritances; @@ -60,8 +64,6 @@ public class Enum extends Type implements TEntityMetaLevelDependency, TEnum, THa private Collection typedEntities; - private String visibility; - @FameProperty(name = "attributes", opposite = "parentType", derived = true) @@ -74,7 +76,7 @@ protected void clearOpposite(TAttribute e) { } @Override protected void setOpposite(TAttribute e) { - e.setParentType(Enum.this); + e.setParentType(Class.this); } }; } @@ -125,7 +127,7 @@ protected void clearOpposite(TComment e) { } @Override protected void setOpposite(TComment e) { - e.setContainer(Enum.this); + e.setContainer(Class.this); } }; } @@ -178,57 +180,6 @@ public Number getDuplicationRate() { 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. @@ -263,7 +214,7 @@ protected void clearOpposite(TReference e) { } @Override protected void setOpposite(TReference e) { - e.setReferredType(Enum.this); + e.setReferredType(Class.this); } }; } @@ -310,30 +261,6 @@ public Boolean getIsDead() { 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; @@ -343,6 +270,12 @@ 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) { @@ -353,7 +286,7 @@ protected void clearOpposite(TMethod e) { } @Override protected void setOpposite(TMethod e) { - e.setParentType(Enum.this); + e.setParentType(Class.this); } }; } @@ -478,12 +411,6 @@ public Number getNumberOfLinesOfCodeWithMoreThanOneCharacter() { 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. @@ -496,6 +423,72 @@ public Number getNumberOfSubclasses() { 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. @@ -532,7 +525,7 @@ protected void clearOpposite(TInheritance e) { } @Override protected void setOpposite(TInheritance e) { - e.setSuperclass(Enum.this); + e.setSuperclass(Class.this); } }; } @@ -589,7 +582,7 @@ protected void clearOpposite(TInheritance e) { } @Override protected void setOpposite(TInheritance e) { - e.setSubclass(Enum.this); + e.setSubclass(Class.this); } }; } @@ -661,7 +654,7 @@ protected void clearOpposite(TTypedEntity e) { } @Override protected void setOpposite(TTypedEntity e) { - e.setDeclaredType(Enum.this); + e.setDeclaredType(Class.this); } }; } @@ -702,13 +695,10 @@ public boolean hasTypedEntities() { return !getTypedEntities().isEmpty(); } - @FameProperty(name = "visibility") - public String getVisibility() { - return visibility; - } - - public void setVisibility(String visibility) { - this.visibility = visibility; + @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) diff --git a/gen/org/moosetechnology/model/famix/famixcppnewentities/CppNewModel.java b/gen/org/moosetechnology/model/famix/famixcppnewentities/CppNewModel.java new file mode 100644 index 0000000..6d4d10e --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcppnewentities/CppNewModel.java @@ -0,0 +1,18 @@ +// 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 new file mode 100644 index 0000000..9d17b40 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcppnewentities/Entity.java @@ -0,0 +1,17 @@ +// 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 new file mode 100644 index 0000000..5b7a174 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcppnewentities/FamixCppNewEntitiesModel.java @@ -0,0 +1,26 @@ +// 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/famixjava/famixjavaentities/ImplicitVariable.java b/gen/org/moosetechnology/model/famix/famixcppnewentities/ImplicitVar.java similarity index 75% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/ImplicitVariable.java rename to gen/org/moosetechnology/model/famix/famixcppnewentities/ImplicitVar.java index aba66d4..e8bb4f2 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/ImplicitVariable.java +++ b/gen/org/moosetechnology/model/famix/famixcppnewentities/ImplicitVar.java @@ -1,31 +1,29 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TAccess; -import org.moosetechnology.model.famixjava.famixtraits.TAccessible; -import org.moosetechnology.model.famixjava.famixtraits.TImplicitVariable; -import org.moosetechnology.model.famixjava.famixtraits.TInvocation; -import org.moosetechnology.model.famixjava.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famixjava.famixtraits.TNamedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.famixtraits.TStructuralEntity; -import org.moosetechnology.model.famixjava.famixtraits.TType; -import org.moosetechnology.model.famixjava.famixtraits.TTypedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TWithAccesses; -import org.moosetechnology.model.famixjava.famixtraits.TWithImplicitVariables; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; +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-Java-Entities") -@FameDescription("ImplicitVariable") -public class ImplicitVariable extends NamedEntity implements TAccessible, TEntityMetaLevelDependency, TImplicitVariable, TInvocationsReceiver, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity { +@FamePackage("Famix-CppNew-Entities") +@FameDescription("ImplicitVar") +public class ImplicitVar extends Entity implements TAccessible, TEntityMetaLevelDependency, TImplicitVariable, TNamedEntity, TSourceEntity, TStructuralEntity, TTypedEntity { private TType declaredType; @@ -39,8 +37,6 @@ public class ImplicitVariable extends NamedEntity implements TAccessible, TEntit private TWithImplicitVariables parentBehaviouralEntity; - private Collection receivingInvocations; - private TSourceAnchor sourceAnchor; @@ -100,7 +96,7 @@ protected void clearOpposite(TAccess e) { } @Override protected void setOpposite(TAccess e) { - e.setVariable(ImplicitVariable.this); + e.setVariable(ImplicitVar.this); } }; } @@ -261,57 +257,6 @@ public void setParentBehaviouralEntity(TWithImplicitVariables parentBehaviouralE 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. diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Inheritance.java b/gen/org/moosetechnology/model/famix/famixcppnewentities/Inheritance.java similarity index 89% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/Inheritance.java rename to gen/org/moosetechnology/model/famix/famixcppnewentities/Inheritance.java index 8069319..940d9a0 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Inheritance.java +++ b/gen/org/moosetechnology/model/famix/famixcppnewentities/Inheritance.java @@ -1,19 +1,19 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TAssociation; -import org.moosetechnology.model.famixjava.famixtraits.TInheritance; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.famixtraits.TWithInheritances; -import org.moosetechnology.model.famixjava.moosequery.TAssociationMetaLevelDependency; +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-Java-Entities") +@FamePackage("Famix-CppNew-Entities") @FameDescription("Inheritance") public class Inheritance extends Entity implements TAssociation, TAssociationMetaLevelDependency, TInheritance, TSourceEntity { diff --git a/gen/org/moosetechnology/model/famix/famixcppnewentities/Method.java b/gen/org/moosetechnology/model/famix/famixcppnewentities/Method.java new file mode 100644 index 0000000..20de38e --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcppnewentities/Method.java @@ -0,0 +1,640 @@ +// 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 new file mode 100644 index 0000000..eab6489 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcppnewentities/Namespace.java @@ -0,0 +1,157 @@ +// 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 new file mode 100644 index 0000000..749ea27 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcpreprocentities/CFile.java @@ -0,0 +1,138 @@ +// 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 new file mode 100644 index 0000000..c3c3722 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcpreprocentities/CPreprocModel.java @@ -0,0 +1,18 @@ +// 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 new file mode 100644 index 0000000..42c057d --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcpreprocentities/CompilUnit.java @@ -0,0 +1,17 @@ +// 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 new file mode 100644 index 0000000..d807558 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcpreprocentities/Entity.java @@ -0,0 +1,17 @@ +// 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 new file mode 100644 index 0000000..f2215cb --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcpreprocentities/FamixCPreprocEntitiesModel.java @@ -0,0 +1,28 @@ +// 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 new file mode 100644 index 0000000..d1fb652 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcpreprocentities/Header.java @@ -0,0 +1,17 @@ +// 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/famixjava/famixjavaentities/Implementation.java b/gen/org/moosetechnology/model/famix/famixcpreprocentities/Include.java similarity index 65% rename from gen/org/moosetechnology/model/famixjava/famixjavaentities/Implementation.java rename to gen/org/moosetechnology/model/famix/famixcpreprocentities/Include.java index 67122f0..b916bc6 100644 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Implementation.java +++ b/gen/org/moosetechnology/model/famix/famixcpreprocentities/Include.java @@ -1,26 +1,23 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; +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.famixjava.famixreplication.Replica; -import org.moosetechnology.model.famixjava.famixtraits.TAssociation; -import org.moosetechnology.model.famixjava.famixtraits.TCanImplement; -import org.moosetechnology.model.famixjava.famixtraits.TImplementable; -import org.moosetechnology.model.famixjava.famixtraits.TImplementation; -import org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor; -import org.moosetechnology.model.famixjava.famixtraits.TSourceEntity; -import org.moosetechnology.model.famixjava.moosequery.TAssociationMetaLevelDependency; +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-Java-Entities") -@FameDescription("Implementation") -public class Implementation extends Entity implements TAssociation, TAssociationMetaLevelDependency, TImplementation, TSourceEntity { +@FamePackage("Famix-CPreproc-Entities") +@FameDescription("Include") +public class Include extends Entity implements TAssociation, TAssociationMetaLevelDependency, TSourceEntity { - private TCanImplement implementingClass; + private CFile included; - private TImplementable myInterface; + private CFile includedBy; private Boolean isStub; @@ -34,6 +31,36 @@ public class Implementation extends Entity implements TAssociation, TAssociation + @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. @@ -46,36 +73,6 @@ public Number getDuplicationRate() { throw new UnsupportedOperationException("Not yet implemented!"); } - @FameProperty(name = "implementingClass", opposite = "interfaceImplementations") - public TCanImplement getImplementingClass() { - return implementingClass; - } - - public void setImplementingClass(TCanImplement implementingClass) { - if (this.implementingClass != null) { - if (this.implementingClass.equals(implementingClass)) return; - this.implementingClass.getInterfaceImplementations().remove(this); - } - this.implementingClass = implementingClass; - if (implementingClass == null) return; - implementingClass.getInterfaceImplementations().add(this); - } - - @FameProperty(name = "interface", opposite = "implementations") - public TImplementable getMyInterface() { - return myInterface; - } - - public void setMyInterface(TImplementable myInterface) { - if (this.myInterface != null) { - if (this.myInterface.equals(myInterface)) return; - this.myInterface.getImplementations().remove(this); - } - this.myInterface = myInterface; - if (myInterface == null) return; - myInterface.getImplementations().add(this); - } - @FameProperty(name = "isStub") public Boolean getIsStub() { return isStub; diff --git a/gen/org/moosetechnology/model/famix/famixcpreprocentities/PreprocDefine.java b/gen/org/moosetechnology/model/famix/famixcpreprocentities/PreprocDefine.java new file mode 100644 index 0000000..d151a09 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcpreprocentities/PreprocDefine.java @@ -0,0 +1,30 @@ +// 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 new file mode 100644 index 0000000..c37be9d --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcpreprocentities/PreprocIfdef.java @@ -0,0 +1,17 @@ +// 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 new file mode 100644 index 0000000..deaec38 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixcpreprocentities/PreprocStatement.java @@ -0,0 +1,17 @@ +// 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/famixjava/famixreplication/FamixReplicationModel.java b/gen/org/moosetechnology/model/famix/famixreplication/FamixReplicationModel.java similarity index 60% rename from gen/org/moosetechnology/model/famixjava/famixreplication/FamixReplicationModel.java rename to gen/org/moosetechnology/model/famix/famixreplication/FamixReplicationModel.java index 9bf0d85..a9d37c3 100644 --- a/gen/org/moosetechnology/model/famixjava/famixreplication/FamixReplicationModel.java +++ b/gen/org/moosetechnology/model/famix/famixreplication/FamixReplicationModel.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixreplication; +package org.moosetechnology.model.famix.famixreplication; import ch.akuhn.fame.MetaRepository; @@ -12,8 +12,8 @@ public static MetaRepository metamodel() { } public static void importInto(MetaRepository metamodel) { - metamodel.with(org.moosetechnology.model.famixjava.famixreplication.Replica.class); - metamodel.with(org.moosetechnology.model.famixjava.famixreplication.ReplicatedFragment.class); + 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/famixjava/famixreplication/Replica.java b/gen/org/moosetechnology/model/famix/famixreplication/Replica.java similarity index 66% rename from gen/org/moosetechnology/model/famixjava/famixreplication/Replica.java rename to gen/org/moosetechnology/model/famix/famixreplication/Replica.java index b8dc4fa..5feb2af 100644 --- a/gen/org/moosetechnology/model/famixjava/famixreplication/Replica.java +++ b/gen/org/moosetechnology/model/famix/famixreplication/Replica.java @@ -1,9 +1,9 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixreplication; +package org.moosetechnology.model.famix.famixreplication; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.moose.Entity; +import org.moosetechnology.model.famix.moose.Entity; @FamePackage("FamixReplication") diff --git a/gen/org/moosetechnology/model/famixjava/famixreplication/ReplicatedFragment.java b/gen/org/moosetechnology/model/famix/famixreplication/ReplicatedFragment.java similarity index 68% rename from gen/org/moosetechnology/model/famixjava/famixreplication/ReplicatedFragment.java rename to gen/org/moosetechnology/model/famix/famixreplication/ReplicatedFragment.java index 0146bbb..fd94ed6 100644 --- a/gen/org/moosetechnology/model/famixjava/famixreplication/ReplicatedFragment.java +++ b/gen/org/moosetechnology/model/famix/famixreplication/ReplicatedFragment.java @@ -1,9 +1,9 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixreplication; +package org.moosetechnology.model.famix.famixreplication; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.moose.Entity; +import org.moosetechnology.model.famix.moose.Entity; @FamePackage("FamixReplication") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/AnnotationInstanceGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/AnnotationInstanceGroup.java similarity index 68% rename from gen/org/moosetechnology/model/famixjava/famixtraits/AnnotationInstanceGroup.java rename to gen/org/moosetechnology/model/famix/famixtraits/AnnotationInstanceGroup.java index 218c621..3387644 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/AnnotationInstanceGroup.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/AnnotationInstanceGroup.java @@ -1,9 +1,9 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.moose.SpecializedGroup; +import org.moosetechnology.model.famix.moose.SpecializedGroup; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/AnnotationTypeGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/AnnotationTypeGroup.java similarity index 68% rename from gen/org/moosetechnology/model/famixjava/famixtraits/AnnotationTypeGroup.java rename to gen/org/moosetechnology/model/famix/famixtraits/AnnotationTypeGroup.java index da0beea..963aa63 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/AnnotationTypeGroup.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/AnnotationTypeGroup.java @@ -1,9 +1,9 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.moose.SpecializedGroup; +import org.moosetechnology.model.famix.moose.SpecializedGroup; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/ClassGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/ClassGroup.java similarity index 80% rename from gen/org/moosetechnology/model/famixjava/famixtraits/ClassGroup.java rename to gen/org/moosetechnology/model/famix/famixtraits/ClassGroup.java index c234465..bbba805 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/ClassGroup.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/ClassGroup.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/FamixModel.java b/gen/org/moosetechnology/model/famix/famixtraits/FamixModel.java similarity index 67% rename from gen/org/moosetechnology/model/famixjava/famixtraits/FamixModel.java rename to gen/org/moosetechnology/model/famix/famixtraits/FamixModel.java index 3d4405b..334d9ee 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/FamixModel.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/FamixModel.java @@ -1,9 +1,9 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.moose.Model; +import org.moosetechnology.model.famix.moose.Model; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famix/famixtraits/FamixTraitsModel.java b/gen/org/moosetechnology/model/famix/famixtraits/FamixTraitsModel.java new file mode 100644 index 0000000..d847e7e --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixtraits/FamixTraitsModel.java @@ -0,0 +1,145 @@ +// 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/famixjava/famixtraits/FileGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/FileGroup.java similarity index 66% rename from gen/org/moosetechnology/model/famixjava/famixtraits/FileGroup.java rename to gen/org/moosetechnology/model/famix/famixtraits/FileGroup.java index cb7b02d..ac7a59b 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/FileGroup.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/FileGroup.java @@ -1,9 +1,9 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.moose.SpecializedGroup; +import org.moosetechnology.model.famix.moose.SpecializedGroup; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/FolderGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/FolderGroup.java similarity index 66% rename from gen/org/moosetechnology/model/famixjava/famixtraits/FolderGroup.java rename to gen/org/moosetechnology/model/famix/famixtraits/FolderGroup.java index a1f411e..2e7df00 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/FolderGroup.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/FolderGroup.java @@ -1,9 +1,9 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.moose.SpecializedGroup; +import org.moosetechnology.model.famix.moose.SpecializedGroup; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/GlobalVariableGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/GlobalVariableGroup.java similarity index 68% rename from gen/org/moosetechnology/model/famixjava/famixtraits/GlobalVariableGroup.java rename to gen/org/moosetechnology/model/famix/famixtraits/GlobalVariableGroup.java index 0477f94..51632da 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/GlobalVariableGroup.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/GlobalVariableGroup.java @@ -1,9 +1,9 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.moose.SpecializedGroup; +import org.moosetechnology.model.famix.moose.SpecializedGroup; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/InvocationGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/InvocationGroup.java similarity index 67% rename from gen/org/moosetechnology/model/famixjava/famixtraits/InvocationGroup.java rename to gen/org/moosetechnology/model/famix/famixtraits/InvocationGroup.java index a5da84b..641a5df 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/InvocationGroup.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/InvocationGroup.java @@ -1,9 +1,9 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.moose.SpecializedGroup; +import org.moosetechnology.model.famix.moose.SpecializedGroup; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/MethodGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/MethodGroup.java similarity index 91% rename from gen/org/moosetechnology/model/famixjava/famixtraits/MethodGroup.java rename to gen/org/moosetechnology/model/famix/famixtraits/MethodGroup.java index e70c10f..40dcb2e 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/MethodGroup.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/MethodGroup.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moose.SpecializedGroup; +import org.moosetechnology.model.famix.moose.SpecializedGroup; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/NamespaceGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/NamespaceGroup.java similarity index 67% rename from gen/org/moosetechnology/model/famixjava/famixtraits/NamespaceGroup.java rename to gen/org/moosetechnology/model/famix/famixtraits/NamespaceGroup.java index fcbb41d..1274c7a 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/NamespaceGroup.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/NamespaceGroup.java @@ -1,9 +1,9 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.moose.SpecializedGroup; +import org.moosetechnology.model.famix.moose.SpecializedGroup; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/PackageGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/PackageGroup.java similarity index 67% rename from gen/org/moosetechnology/model/famixjava/famixtraits/PackageGroup.java rename to gen/org/moosetechnology/model/famix/famixtraits/PackageGroup.java index 7af7bc9..64c1a4e 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/PackageGroup.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/PackageGroup.java @@ -1,9 +1,9 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.moose.SpecializedGroup; +import org.moosetechnology.model.famix.moose.SpecializedGroup; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TAccess.java b/gen/org/moosetechnology/model/famix/famixtraits/TAccess.java similarity index 74% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TAccess.java rename to gen/org/moosetechnology/model/famix/famixtraits/TAccess.java index 74ec28a..e124672 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TAccess.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TAccess.java @@ -1,17 +1,23 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TAssociationMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; @FamePackage("Famix-Traits") @FameDescription("TAccess") public interface TAccess { - @FameProperty(name = "accessor", opposite = "accesses") + @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); @@ -21,12 +27,6 @@ public interface TAccess { public void setVariable(TAccessible variable); - @FameProperty(name = "isReadWriteUnknown", derived = true) - public Boolean getIsReadWriteUnknown(); - - @FameProperty(name = "isRead", derived = true) - public Boolean getIsRead(); - @FameProperty(name = "isWrite") public Boolean getIsWrite(); diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TAccessible.java b/gen/org/moosetechnology/model/famix/famixtraits/TAccessible.java similarity index 96% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TAccessible.java rename to gen/org/moosetechnology/model/famix/famixtraits/TAccessible.java index 2d3f29e..8436fa0 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TAccessible.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TAccessible.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TAnnotationInstance.java b/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationInstance.java similarity index 78% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TAnnotationInstance.java rename to gen/org/moosetechnology/model/famix/famixtraits/TAnnotationInstance.java index 4523aac..b7a29ab 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TAnnotationInstance.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationInstance.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TEntityMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TAnnotationInstanceAttribute.java b/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationInstanceAttribute.java similarity index 83% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TAnnotationInstanceAttribute.java rename to gen/org/moosetechnology/model/famix/famixtraits/TAnnotationInstanceAttribute.java index 95316c4..8671a26 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TAnnotationInstanceAttribute.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationInstanceAttribute.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TEntityMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TAnnotationType.java b/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationType.java similarity index 95% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TAnnotationType.java rename to gen/org/moosetechnology/model/famix/famixtraits/TAnnotationType.java index 6847fd6..b7f8a2b 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TAnnotationType.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationType.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TAnnotationTypeAttribute.java b/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationTypeAttribute.java similarity index 89% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TAnnotationTypeAttribute.java rename to gen/org/moosetechnology/model/famix/famixtraits/TAnnotationTypeAttribute.java index 630d248..1dbe886 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TAnnotationTypeAttribute.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TAnnotationTypeAttribute.java @@ -1,11 +1,11 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TEntityMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TAssociation.java b/gen/org/moosetechnology/model/famix/famixtraits/TAssociation.java similarity index 79% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TAssociation.java rename to gen/org/moosetechnology/model/famix/famixtraits/TAssociation.java index aae8d1e..eef6c44 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TAssociation.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TAssociation.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TAssociationMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TAttribute.java b/gen/org/moosetechnology/model/famix/famixtraits/TAttribute.java similarity index 82% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TAttribute.java rename to gen/org/moosetechnology/model/famix/famixtraits/TAttribute.java index 6a1d482..029ba2e 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TAttribute.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TAttribute.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TEntityMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TCanBeAbstract.java b/gen/org/moosetechnology/model/famix/famixtraits/TCanBeAbstract.java similarity index 87% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TCanBeAbstract.java rename to gen/org/moosetechnology/model/famix/famixtraits/TCanBeAbstract.java index cdc7d27..b0bcd35 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TCanBeAbstract.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TCanBeAbstract.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TCanBeClassSide.java b/gen/org/moosetechnology/model/famix/famixtraits/TCanBeClassSide.java similarity index 87% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TCanBeClassSide.java rename to gen/org/moosetechnology/model/famix/famixtraits/TCanBeClassSide.java index 9ec7ff8..905c7e1 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TCanBeClassSide.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TCanBeClassSide.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TCanBeFinal.java b/gen/org/moosetechnology/model/famix/famixtraits/TCanBeFinal.java similarity index 87% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TCanBeFinal.java rename to gen/org/moosetechnology/model/famix/famixtraits/TCanBeFinal.java index 8111b02..eb84af0 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TCanBeFinal.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TCanBeFinal.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TCanImplement.java b/gen/org/moosetechnology/model/famix/famixtraits/TCanImplement.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TCanImplement.java rename to gen/org/moosetechnology/model/famix/famixtraits/TCanImplement.java index abcab35..969dec3 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TCanImplement.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TCanImplement.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TCaughtException.java b/gen/org/moosetechnology/model/famix/famixtraits/TCaughtException.java similarity index 89% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TCaughtException.java rename to gen/org/moosetechnology/model/famix/famixtraits/TCaughtException.java index 9a44482..c06b194 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TCaughtException.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TCaughtException.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TClass.java b/gen/org/moosetechnology/model/famix/famixtraits/TClass.java similarity index 67% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TClass.java rename to gen/org/moosetechnology/model/famix/famixtraits/TClass.java index 82069e6..592abac 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TClass.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TClass.java @@ -1,11 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TEntityMetaLevelDependency; -import org.moosetechnology.model.famixjava.moosequery.TOODependencyQueries; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TClassHierarchyNavigation.java b/gen/org/moosetechnology/model/famix/famixtraits/TClassHierarchyNavigation.java similarity index 82% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TClassHierarchyNavigation.java rename to gen/org/moosetechnology/model/famix/famixtraits/TClassHierarchyNavigation.java index 3d3886f..a8cbe8a 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TClassHierarchyNavigation.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TClassHierarchyNavigation.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TClassMetrics.java b/gen/org/moosetechnology/model/famix/famixtraits/TClassMetrics.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TClassMetrics.java rename to gen/org/moosetechnology/model/famix/famixtraits/TClassMetrics.java index 5210bd1..3e7c711 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TClassMetrics.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TClassMetrics.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; @@ -13,12 +13,12 @@ public interface TClassMetrics { @FameProperty(name = "numberOfLocallyDefinedMethods", derived = true) public Number getNumberOfLocallyDefinedMethods(); - @FameProperty(name = "numberOfMethodsOverriden", derived = true) - public Number getNumberOfMethodsOverriden(); - @FameProperty(name = "numberOfAttributesInherited", derived = true) public Number getNumberOfAttributesInherited(); + @FameProperty(name = "numberOfMethodsOverriden", derived = true) + public Number getNumberOfMethodsOverriden(); + @FameProperty(name = "totalNumberOfSubclasses", derived = true) public Number getTotalNumberOfSubclasses(); diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TClassWithVisibility.java b/gen/org/moosetechnology/model/famix/famixtraits/TClassWithVisibility.java similarity index 53% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TClassWithVisibility.java rename to gen/org/moosetechnology/model/famix/famixtraits/TClassWithVisibility.java index ebb2b77..765dcb8 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TClassWithVisibility.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TClassWithVisibility.java @@ -1,10 +1,9 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; -import org.moosetechnology.model.famixjava.moosequery.TOODependencyQueries; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TCohesionCouplingMetrics.java b/gen/org/moosetechnology/model/famix/famixtraits/TCohesionCouplingMetrics.java similarity index 86% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TCohesionCouplingMetrics.java rename to gen/org/moosetechnology/model/famix/famixtraits/TCohesionCouplingMetrics.java index e1d678e..8865bd4 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TCohesionCouplingMetrics.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TCohesionCouplingMetrics.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TEntityMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") @@ -14,12 +14,12 @@ public interface TCohesionCouplingMetrics { @FameProperty(name = "efferentCoupling", derived = true) public Number getEfferentCoupling(); - @FameProperty(name = "afferentCoupling", derived = true) - public Number getAfferentCoupling(); - @FameProperty(name = "distance", derived = true) public Number getDistance(); + @FameProperty(name = "afferentCoupling", derived = true) + public Number getAfferentCoupling(); + @FameProperty(name = "instability", derived = true) public Number getInstability(); diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TComment.java b/gen/org/moosetechnology/model/famix/famixtraits/TComment.java similarity index 90% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TComment.java rename to gen/org/moosetechnology/model/famix/famixtraits/TComment.java index 89029ba..899d2de 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TComment.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TComment.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TCompilationUnit.java b/gen/org/moosetechnology/model/famix/famixtraits/TCompilationUnit.java similarity index 89% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TCompilationUnit.java rename to gen/org/moosetechnology/model/famix/famixtraits/TCompilationUnit.java index a4046bd..d55763d 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TCompilationUnit.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TCompilationUnit.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TDeclaredException.java b/gen/org/moosetechnology/model/famix/famixtraits/TDeclaredException.java similarity index 89% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TDeclaredException.java rename to gen/org/moosetechnology/model/famix/famixtraits/TDeclaredException.java index 44e485e..c4e78d8 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TDeclaredException.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TDeclaredException.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TDefinedInModule.java b/gen/org/moosetechnology/model/famix/famixtraits/TDefinedInModule.java similarity index 88% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TDefinedInModule.java rename to gen/org/moosetechnology/model/famix/famixtraits/TDefinedInModule.java index f5b91dc..36ff468 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TDefinedInModule.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TDefinedInModule.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TDereferencedInvocation.java b/gen/org/moosetechnology/model/famix/famixtraits/TDereferencedInvocation.java similarity index 77% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TDereferencedInvocation.java rename to gen/org/moosetechnology/model/famix/famixtraits/TDereferencedInvocation.java index 93deb75..8ab1cc0 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TDereferencedInvocation.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TDereferencedInvocation.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TAssociationMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TEnum.java b/gen/org/moosetechnology/model/famix/famixtraits/TEnum.java similarity index 61% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TEnum.java rename to gen/org/moosetechnology/model/famix/famixtraits/TEnum.java index ab5ac60..41777b2 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TEnum.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TEnum.java @@ -1,9 +1,9 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TEnumValue.java b/gen/org/moosetechnology/model/famix/famixtraits/TEnumValue.java similarity index 88% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TEnumValue.java rename to gen/org/moosetechnology/model/famix/famixtraits/TEnumValue.java index a30f671..8421c0f 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TEnumValue.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TEnumValue.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TException.java b/gen/org/moosetechnology/model/famix/famixtraits/TException.java new file mode 100644 index 0000000..30a1d2a --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixtraits/TException.java @@ -0,0 +1,69 @@ +// 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/famixjava/famixtraits/TFile.java b/gen/org/moosetechnology/model/famix/famixtraits/TFile.java similarity index 96% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TFile.java rename to gen/org/moosetechnology/model/famix/famixtraits/TFile.java index 3a7fb9e..a7e1fe3 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TFile.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TFile.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; @@ -31,18 +31,18 @@ public interface TFile { public boolean hasEntities(); - @FameProperty(name = "numberOfKiloBytes", derived = true) - public Number getNumberOfKiloBytes(); - @FameProperty(name = "totalNumberOfLinesOfText", derived = true) public Number getTotalNumberOfLinesOfText(); - @FameProperty(name = "numberOfEmptyLinesOfText", derived = true) - public Number getNumberOfEmptyLinesOfText(); + @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/famixjava/famixtraits/TFileAnchor.java b/gen/org/moosetechnology/model/famix/famixtraits/TFileAnchor.java similarity index 91% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TFileAnchor.java rename to gen/org/moosetechnology/model/famix/famixtraits/TFileAnchor.java index 5b43757..37e2cef 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TFileAnchor.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TFileAnchor.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TFileInclude.java b/gen/org/moosetechnology/model/famix/famixtraits/TFileInclude.java similarity index 80% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TFileInclude.java rename to gen/org/moosetechnology/model/famix/famixtraits/TFileInclude.java index e73ada7..df70ce8 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TFileInclude.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TFileInclude.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TAssociationMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TFileNavigation.java b/gen/org/moosetechnology/model/famix/famixtraits/TFileNavigation.java similarity index 93% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TFileNavigation.java rename to gen/org/moosetechnology/model/famix/famixtraits/TFileNavigation.java index 98b8c82..eb51714 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TFileNavigation.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TFileNavigation.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TFileSystemEntity.java b/gen/org/moosetechnology/model/famix/famixtraits/TFileSystemEntity.java similarity index 91% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TFileSystemEntity.java rename to gen/org/moosetechnology/model/famix/famixtraits/TFileSystemEntity.java index 7ef1ea3..054aa17 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TFileSystemEntity.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TFileSystemEntity.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TFolder.java b/gen/org/moosetechnology/model/famix/famixtraits/TFolder.java similarity index 96% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TFolder.java rename to gen/org/moosetechnology/model/famix/famixtraits/TFolder.java index 538a459..adfb771 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TFolder.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TFolder.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; @@ -31,12 +31,12 @@ public interface TFolder { public boolean hasChildrenFileSystemEntities(); - @FameProperty(name = "numberOfFolders", derived = true) - public Number getNumberOfFolders(); - @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/famixjava/famixtraits/TFunction.java b/gen/org/moosetechnology/model/famix/famixtraits/TFunction.java similarity index 76% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TFunction.java rename to gen/org/moosetechnology/model/famix/famixtraits/TFunction.java index 1556ce2..7cd5aac 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TFunction.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TFunction.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TEntityMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TGlobalVariable.java b/gen/org/moosetechnology/model/famix/famixtraits/TGlobalVariable.java similarity index 77% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TGlobalVariable.java rename to gen/org/moosetechnology/model/famix/famixtraits/TGlobalVariable.java index 7466208..a86c3d9 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TGlobalVariable.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TGlobalVariable.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TEntityMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/THasImmediateSource.java b/gen/org/moosetechnology/model/famix/famixtraits/THasImmediateSource.java similarity index 87% rename from gen/org/moosetechnology/model/famixjava/famixtraits/THasImmediateSource.java rename to gen/org/moosetechnology/model/famix/famixtraits/THasImmediateSource.java index 66f5809..01f68ee 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/THasImmediateSource.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/THasImmediateSource.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/THasKind.java b/gen/org/moosetechnology/model/famix/famixtraits/THasKind.java similarity index 92% rename from gen/org/moosetechnology/model/famixjava/famixtraits/THasKind.java rename to gen/org/moosetechnology/model/famix/famixtraits/THasKind.java index 86517a8..d14adf9 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/THasKind.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/THasKind.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/THasModifiers.java b/gen/org/moosetechnology/model/famix/famixtraits/THasModifiers.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/THasModifiers.java rename to gen/org/moosetechnology/model/famix/famixtraits/THasModifiers.java index 7e7d396..fded1db 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/THasModifiers.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/THasModifiers.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/THasSignature.java b/gen/org/moosetechnology/model/famix/famixtraits/THasSignature.java similarity index 87% rename from gen/org/moosetechnology/model/famixjava/famixtraits/THasSignature.java rename to gen/org/moosetechnology/model/famix/famixtraits/THasSignature.java index 4ac309f..d94a496 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/THasSignature.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/THasSignature.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/THasVisibility.java b/gen/org/moosetechnology/model/famix/famixtraits/THasVisibility.java similarity index 93% rename from gen/org/moosetechnology/model/famixjava/famixtraits/THasVisibility.java rename to gen/org/moosetechnology/model/famix/famixtraits/THasVisibility.java index 994451c..09c02e9 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/THasVisibility.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/THasVisibility.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/THeader.java b/gen/org/moosetechnology/model/famix/famixtraits/THeader.java similarity index 88% rename from gen/org/moosetechnology/model/famixjava/famixtraits/THeader.java rename to gen/org/moosetechnology/model/famix/famixtraits/THeader.java index 0d8fd0a..a10b726 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/THeader.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/THeader.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TImplementable.java b/gen/org/moosetechnology/model/famix/famixtraits/TImplementable.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TImplementable.java rename to gen/org/moosetechnology/model/famix/famixtraits/TImplementable.java index a3f45da..610cc1f 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TImplementable.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TImplementable.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TImplementation.java b/gen/org/moosetechnology/model/famix/famixtraits/TImplementation.java similarity index 82% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TImplementation.java rename to gen/org/moosetechnology/model/famix/famixtraits/TImplementation.java index 8da7dfa..1d42245 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TImplementation.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TImplementation.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TAssociationMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TImplicitVariable.java b/gen/org/moosetechnology/model/famix/famixtraits/TImplicitVariable.java similarity index 79% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TImplicitVariable.java rename to gen/org/moosetechnology/model/famix/famixtraits/TImplicitVariable.java index d5eeb69..e13eca3 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TImplicitVariable.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TImplicitVariable.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TEntityMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TIndexedFileNavigation.java b/gen/org/moosetechnology/model/famix/famixtraits/TIndexedFileNavigation.java similarity index 90% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TIndexedFileNavigation.java rename to gen/org/moosetechnology/model/famix/famixtraits/TIndexedFileNavigation.java index 05bdb2a..39c5585 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TIndexedFileNavigation.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TIndexedFileNavigation.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TInheritance.java b/gen/org/moosetechnology/model/famix/famixtraits/TInheritance.java similarity index 81% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TInheritance.java rename to gen/org/moosetechnology/model/famix/famixtraits/TInheritance.java index 5e80e0b..12fe668 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TInheritance.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TInheritance.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TAssociationMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TInvocable.java b/gen/org/moosetechnology/model/famix/famixtraits/TInvocable.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TInvocable.java rename to gen/org/moosetechnology/model/famix/famixtraits/TInvocable.java index c5d15d1..655234e 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TInvocable.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TInvocable.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TInvocation.java b/gen/org/moosetechnology/model/famix/famixtraits/TInvocation.java similarity index 88% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TInvocation.java rename to gen/org/moosetechnology/model/famix/famixtraits/TInvocation.java index 0b26b6d..be1b875 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TInvocation.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TInvocation.java @@ -1,11 +1,11 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TAssociationMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TInvocationsReceiver.java b/gen/org/moosetechnology/model/famix/famixtraits/TInvocationsReceiver.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TInvocationsReceiver.java rename to gen/org/moosetechnology/model/famix/famixtraits/TInvocationsReceiver.java index f858432..c74b143 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TInvocationsReceiver.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TInvocationsReceiver.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TLCOMMetrics.java b/gen/org/moosetechnology/model/famix/famixtraits/TLCOMMetrics.java similarity index 88% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TLCOMMetrics.java rename to gen/org/moosetechnology/model/famix/famixtraits/TLCOMMetrics.java index 9537ee6..8814145 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TLCOMMetrics.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TLCOMMetrics.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TLocalVariable.java b/gen/org/moosetechnology/model/famix/famixtraits/TLocalVariable.java similarity index 79% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TLocalVariable.java rename to gen/org/moosetechnology/model/famix/famixtraits/TLocalVariable.java index 354f58c..48727e5 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TLocalVariable.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TLocalVariable.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TEntityMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TMethod.java b/gen/org/moosetechnology/model/famix/famixtraits/TMethod.java similarity index 62% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TMethod.java rename to gen/org/moosetechnology/model/famix/famixtraits/TMethod.java index 46c3f31..8729361 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TMethod.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TMethod.java @@ -1,11 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TEntityMetaLevelDependency; -import org.moosetechnology.model.famixjava.moosequery.TOODependencyQueries; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") @@ -15,9 +14,6 @@ public interface TMethod { @FameProperty(name = "hasClassScope", derived = true) public Boolean getHasClassScope(); - @FameProperty(name = "numberOfMessageSends", derived = true) - public Number getNumberOfMessageSends(); - @FameProperty(name = "parentType", opposite = "methods", container = true) public TWithMethods getParentType(); diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TMethodMetrics.java b/gen/org/moosetechnology/model/famix/famixtraits/TMethodMetrics.java similarity index 92% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TMethodMetrics.java rename to gen/org/moosetechnology/model/famix/famixtraits/TMethodMetrics.java index 4ff7da2..e707ef5 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TMethodMetrics.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TMethodMetrics.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TModule.java b/gen/org/moosetechnology/model/famix/famixtraits/TModule.java similarity index 93% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TModule.java rename to gen/org/moosetechnology/model/famix/famixtraits/TModule.java index 16d74b4..d7c5ce3 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TModule.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TModule.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TMultipleFileAnchor.java b/gen/org/moosetechnology/model/famix/famixtraits/TMultipleFileAnchor.java similarity index 93% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TMultipleFileAnchor.java rename to gen/org/moosetechnology/model/famix/famixtraits/TMultipleFileAnchor.java index a4fc049..34fdc40 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TMultipleFileAnchor.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TMultipleFileAnchor.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TNamedEntity.java b/gen/org/moosetechnology/model/famix/famixtraits/TNamedEntity.java similarity index 86% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TNamedEntity.java rename to gen/org/moosetechnology/model/famix/famixtraits/TNamedEntity.java index 9f3e342..897a351 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TNamedEntity.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TNamedEntity.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TNamespace.java b/gen/org/moosetechnology/model/famix/famixtraits/TNamespace.java similarity index 51% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TNamespace.java rename to gen/org/moosetechnology/model/famix/famixtraits/TNamespace.java index 3259fe0..872c2d6 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TNamespace.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TNamespace.java @@ -1,10 +1,9 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; -import org.moosetechnology.model.famixjava.moosequery.TOODependencyQueries; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TPackage.java b/gen/org/moosetechnology/model/famix/famixtraits/TPackage.java similarity index 87% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TPackage.java rename to gen/org/moosetechnology/model/famix/famixtraits/TPackage.java index 162362a..e9eb83b 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TPackage.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TPackage.java @@ -1,11 +1,11 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TEntityMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TPackageable.java b/gen/org/moosetechnology/model/famix/famixtraits/TPackageable.java similarity index 88% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TPackageable.java rename to gen/org/moosetechnology/model/famix/famixtraits/TPackageable.java index 2fc59e3..0b1db6f 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TPackageable.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TPackageable.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TParameter.java b/gen/org/moosetechnology/model/famix/famixtraits/TParameter.java similarity index 78% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TParameter.java rename to gen/org/moosetechnology/model/famix/famixtraits/TParameter.java index df59b00..1cd34ab 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TParameter.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TParameter.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TEntityMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TParameterType.java b/gen/org/moosetechnology/model/famix/famixtraits/TParameterType.java similarity index 80% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TParameterType.java rename to gen/org/moosetechnology/model/famix/famixtraits/TParameterType.java index 34c4f79..0b896d0 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TParameterType.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TParameterType.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TParameterizedType.java b/gen/org/moosetechnology/model/famix/famixtraits/TParameterizedType.java similarity index 90% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TParameterizedType.java rename to gen/org/moosetechnology/model/famix/famixtraits/TParameterizedType.java index 9d31b99..0de7f6a 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TParameterizedType.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TParameterizedType.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TParameterizedTypeUser.java b/gen/org/moosetechnology/model/famix/famixtraits/TParameterizedTypeUser.java similarity index 95% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TParameterizedTypeUser.java rename to gen/org/moosetechnology/model/famix/famixtraits/TParameterizedTypeUser.java index 3c1cd01..3afd314 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TParameterizedTypeUser.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TParameterizedTypeUser.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TPreprocessorDefine.java b/gen/org/moosetechnology/model/famix/famixtraits/TPreprocessorDefine.java similarity index 81% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TPreprocessorDefine.java rename to gen/org/moosetechnology/model/famix/famixtraits/TPreprocessorDefine.java index 7c6a7ac..1afc9dc 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TPreprocessorDefine.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TPreprocessorDefine.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TPreprocessorIfdef.java b/gen/org/moosetechnology/model/famix/famixtraits/TPreprocessorIfdef.java similarity index 81% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TPreprocessorIfdef.java rename to gen/org/moosetechnology/model/famix/famixtraits/TPreprocessorIfdef.java index f96b7a9..2c32c6a 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TPreprocessorIfdef.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TPreprocessorIfdef.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TPrimitiveType.java b/gen/org/moosetechnology/model/famix/famixtraits/TPrimitiveType.java similarity index 63% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TPrimitiveType.java rename to gen/org/moosetechnology/model/famix/famixtraits/TPrimitiveType.java index 208672a..ac09712 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TPrimitiveType.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TPrimitiveType.java @@ -1,9 +1,9 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TReference.java b/gen/org/moosetechnology/model/famix/famixtraits/TReference.java similarity index 81% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TReference.java rename to gen/org/moosetechnology/model/famix/famixtraits/TReference.java index 4fdf592..2d4be19 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TReference.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TReference.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TAssociationMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TReferenceable.java b/gen/org/moosetechnology/model/famix/famixtraits/TReferenceable.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TReferenceable.java rename to gen/org/moosetechnology/model/famix/famixtraits/TReferenceable.java index 5851b4d..761cb4f 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TReferenceable.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TReferenceable.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TRelativeSourceAnchor.java b/gen/org/moosetechnology/model/famix/famixtraits/TRelativeSourceAnchor.java similarity index 80% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TRelativeSourceAnchor.java rename to gen/org/moosetechnology/model/famix/famixtraits/TRelativeSourceAnchor.java index 9e40764..eb20375 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TRelativeSourceAnchor.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TRelativeSourceAnchor.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; @@ -10,16 +10,16 @@ @FameDescription("TRelativeSourceAnchor") public interface TRelativeSourceAnchor { - @FameProperty(name = "relatedAnchor") - public TSourceAnchor getRelatedAnchor(); - - public void setRelatedAnchor(TSourceAnchor relatedAnchor); - - @FameProperty(name = "startPos") + @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(); diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TSourceAnchor.java b/gen/org/moosetechnology/model/famix/famixtraits/TSourceAnchor.java similarity index 90% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TSourceAnchor.java rename to gen/org/moosetechnology/model/famix/famixtraits/TSourceAnchor.java index ddaab09..f9664f8 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TSourceAnchor.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TSourceAnchor.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TSourceEntity.java b/gen/org/moosetechnology/model/famix/famixtraits/TSourceEntity.java similarity index 90% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TSourceEntity.java rename to gen/org/moosetechnology/model/famix/famixtraits/TSourceEntity.java index 6f2453e..a8a6273 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TSourceEntity.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TSourceEntity.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.famixreplication.Replica; +import org.moosetechnology.model.famix.famixreplication.Replica; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TSourceLanguage.java b/gen/org/moosetechnology/model/famix/famixtraits/TSourceLanguage.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TSourceLanguage.java rename to gen/org/moosetechnology/model/famix/famixtraits/TSourceLanguage.java index d5ec7b1..1778764 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TSourceLanguage.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TSourceLanguage.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TStructuralEntity.java b/gen/org/moosetechnology/model/famix/famixtraits/TStructuralEntity.java similarity index 63% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TStructuralEntity.java rename to gen/org/moosetechnology/model/famix/famixtraits/TStructuralEntity.java index 4d33354..c2cb993 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TStructuralEntity.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TStructuralEntity.java @@ -1,9 +1,9 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TTemplate.java b/gen/org/moosetechnology/model/famix/famixtraits/TTemplate.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TTemplate.java rename to gen/org/moosetechnology/model/famix/famixtraits/TTemplate.java index 7751e46..cbdc272 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TTemplate.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TTemplate.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TTemplateUser.java b/gen/org/moosetechnology/model/famix/famixtraits/TTemplateUser.java similarity index 88% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TTemplateUser.java rename to gen/org/moosetechnology/model/famix/famixtraits/TTemplateUser.java index b14a2ca..d2b2441 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TTemplateUser.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TTemplateUser.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TThrownException.java b/gen/org/moosetechnology/model/famix/famixtraits/TThrownException.java similarity index 89% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TThrownException.java rename to gen/org/moosetechnology/model/famix/famixtraits/TThrownException.java index f51dd31..8876ce0 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TThrownException.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TThrownException.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TTrait.java b/gen/org/moosetechnology/model/famix/famixtraits/TTrait.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TTrait.java rename to gen/org/moosetechnology/model/famix/famixtraits/TTrait.java index fbf7664..132ceab 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TTrait.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TTrait.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TTraitUsage.java b/gen/org/moosetechnology/model/famix/famixtraits/TTraitUsage.java similarity index 79% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TTraitUsage.java rename to gen/org/moosetechnology/model/famix/famixtraits/TTraitUsage.java index b4586c1..881d6fb 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TTraitUsage.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TTraitUsage.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TAssociationMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TAssociationMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TTraitUser.java b/gen/org/moosetechnology/model/famix/famixtraits/TTraitUser.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TTraitUser.java rename to gen/org/moosetechnology/model/famix/famixtraits/TTraitUser.java index fb93da7..485d3b4 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TTraitUser.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TTraitUser.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TType.java b/gen/org/moosetechnology/model/famix/famixtraits/TType.java similarity index 88% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TType.java rename to gen/org/moosetechnology/model/famix/famixtraits/TType.java index d8602be..de8da38 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TType.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TType.java @@ -1,11 +1,11 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moosequery.TEntityMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TTypeAlias.java b/gen/org/moosetechnology/model/famix/famixtraits/TTypeAlias.java similarity index 88% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TTypeAlias.java rename to gen/org/moosetechnology/model/famix/famixtraits/TTypeAlias.java index 24af3ff..50856b7 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TTypeAlias.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TTypeAlias.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TTypedAnnotationInstance.java b/gen/org/moosetechnology/model/famix/famixtraits/TTypedAnnotationInstance.java similarity index 89% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TTypedAnnotationInstance.java rename to gen/org/moosetechnology/model/famix/famixtraits/TTypedAnnotationInstance.java index ebd53f4..bfcd46a 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TTypedAnnotationInstance.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TTypedAnnotationInstance.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TTypedAnnotationInstanceAttribute.java b/gen/org/moosetechnology/model/famix/famixtraits/TTypedAnnotationInstanceAttribute.java similarity index 90% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TTypedAnnotationInstanceAttribute.java rename to gen/org/moosetechnology/model/famix/famixtraits/TTypedAnnotationInstanceAttribute.java index 916c015..d287233 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TTypedAnnotationInstanceAttribute.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TTypedAnnotationInstanceAttribute.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TTypedEntity.java b/gen/org/moosetechnology/model/famix/famixtraits/TTypedEntity.java similarity index 88% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TTypedEntity.java rename to gen/org/moosetechnology/model/famix/famixtraits/TTypedEntity.java index 13a5c1c..23fb169 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TTypedEntity.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TTypedEntity.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TUnknownSourceLanguage.java b/gen/org/moosetechnology/model/famix/famixtraits/TUnknownSourceLanguage.java similarity index 81% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TUnknownSourceLanguage.java rename to gen/org/moosetechnology/model/famix/famixtraits/TUnknownSourceLanguage.java index ac77356..aa60ccf 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TUnknownSourceLanguage.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TUnknownSourceLanguage.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TUnknownVariable.java b/gen/org/moosetechnology/model/famix/famixtraits/TUnknownVariable.java similarity index 63% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TUnknownVariable.java rename to gen/org/moosetechnology/model/famix/famixtraits/TUnknownVariable.java index 1a17124..b585c46 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TUnknownVariable.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TUnknownVariable.java @@ -1,9 +1,9 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; +import org.moosetechnology.model.famix.moosequery.TEntityMetaLevelDependency; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithAccesses.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithAccesses.java similarity index 93% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithAccesses.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithAccesses.java index 79fd991..dded391 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithAccesses.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithAccesses.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithAnnotationInstanceAttributes.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithAnnotationInstanceAttributes.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithAnnotationInstanceAttributes.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithAnnotationInstanceAttributes.java index f4aa67f..4e39f17 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithAnnotationInstanceAttributes.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithAnnotationInstanceAttributes.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithAnnotationInstances.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithAnnotationInstances.java similarity index 95% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithAnnotationInstances.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithAnnotationInstances.java index 427ee65..38cb54e 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithAnnotationInstances.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithAnnotationInstances.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithAnnotationTypes.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithAnnotationTypes.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithAnnotationTypes.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithAnnotationTypes.java index ebcede3..576ddef 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithAnnotationTypes.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithAnnotationTypes.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithAttributes.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithAttributes.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithAttributes.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithAttributes.java index 7335e98..1fcc93b 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithAttributes.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithAttributes.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithCaughtExceptions.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithCaughtExceptions.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithCaughtExceptions.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithCaughtExceptions.java index 7b30ff8..e765cec 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithCaughtExceptions.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithCaughtExceptions.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithClassScope.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithClassScope.java new file mode 100644 index 0000000..3f71a12 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithClassScope.java @@ -0,0 +1,15 @@ +// 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/famixjava/famixtraits/TWithClasses.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithClasses.java similarity index 86% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithClasses.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithClasses.java index 4d604e1..19b10fe 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithClasses.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithClasses.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithComments.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithComments.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithComments.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithComments.java index 9b07082..5acd4d4 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithComments.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithComments.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithCompilationUnit.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithCompilationUnit.java new file mode 100644 index 0000000..e610fb2 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithCompilationUnit.java @@ -0,0 +1,21 @@ +// 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/famixjava/famixtraits/TWithCompilationUnits.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithCompilationUnits.java similarity index 89% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithCompilationUnits.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithCompilationUnits.java index c59debc..fe85ff0 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithCompilationUnits.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithCompilationUnits.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithDeclaredExceptions.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithDeclaredExceptions.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithDeclaredExceptions.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithDeclaredExceptions.java index f8b250d..d6f7a7e 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithDeclaredExceptions.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithDeclaredExceptions.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithDereferencedInvocations.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithDereferencedInvocations.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithDereferencedInvocations.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithDereferencedInvocations.java index 7ce397c..0eea3f8 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithDereferencedInvocations.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithDereferencedInvocations.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithEnumValues.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithEnumValues.java similarity index 93% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithEnumValues.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithEnumValues.java index be67022..5e2a96d 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithEnumValues.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithEnumValues.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithExceptions.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithExceptions.java new file mode 100644 index 0000000..be40158 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithExceptions.java @@ -0,0 +1,68 @@ +// 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/famixjava/famixtraits/TWithFileIncludes.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithFileIncludes.java similarity index 85% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithFileIncludes.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithFileIncludes.java index 281430e..295f2ef 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithFileIncludes.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithFileIncludes.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; @@ -11,24 +11,7 @@ @FameDescription("TWithFileIncludes") public interface TWithFileIncludes { - @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(); - - @FameProperty(name = "outgoingIncludeRelations", opposite = "source", derived = true) + @FameProperty(name = "outgoingIncludeRelations", opposite = "source", derived = true) public Collection getOutgoingIncludeRelations(); public void setOutgoingIncludeRelations(Collection outgoingIncludeRelations); @@ -45,6 +28,23 @@ public interface TWithFileIncludes { 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/famixjava/famixtraits/TWithFiles.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithFiles.java similarity index 93% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithFiles.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithFiles.java index 74883e1..c2c6426 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithFiles.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithFiles.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithFunctions.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithFunctions.java similarity index 93% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithFunctions.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithFunctions.java index bd63136..2130486 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithFunctions.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithFunctions.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithGlobalVariables.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithGlobalVariables.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithGlobalVariables.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithGlobalVariables.java index ac2404b..7550243 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithGlobalVariables.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithGlobalVariables.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithHeader.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithHeader.java new file mode 100644 index 0000000..92e91b8 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithHeader.java @@ -0,0 +1,21 @@ +// 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/famixjava/famixtraits/TWithHeaders.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithHeaders.java similarity index 88% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithHeaders.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithHeaders.java index 002979f..6806a68 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithHeaders.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithHeaders.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithImplicitVariables.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithImplicitVariables.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithImplicitVariables.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithImplicitVariables.java index 205facd..92db5ca 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithImplicitVariables.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithImplicitVariables.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithInheritances.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithInheritances.java similarity index 97% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithInheritances.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithInheritances.java index 7819085..42883c5 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithInheritances.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithInheritances.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithInvocations.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithInvocations.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithInvocations.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithInvocations.java index c1baf42..ee7f84d 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithInvocations.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithInvocations.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithLocalVariables.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithLocalVariables.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithLocalVariables.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithLocalVariables.java index f8113a7..3594af8 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithLocalVariables.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithLocalVariables.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithMethods.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithMethods.java similarity index 87% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithMethods.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithMethods.java index cc0a10c..8683737 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithMethods.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithMethods.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; @@ -40,9 +40,6 @@ public interface TWithMethods { @FameProperty(name = "numberOfAbstractMethods", derived = true) public Number getNumberOfAbstractMethods(); - @FameProperty(name = "numberOfMessageSends", derived = true) - public Number getNumberOfMessageSends(); - } diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithPackages.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithPackages.java similarity index 80% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithPackages.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithPackages.java index 99647ac..beb6bcb 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithPackages.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithPackages.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithParameterizedTypeUsers.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithParameterizedTypeUsers.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithParameterizedTypeUsers.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithParameterizedTypeUsers.java index ba3275d..684914c 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithParameterizedTypeUsers.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithParameterizedTypeUsers.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithParameterizedTypes.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithParameterizedTypes.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithParameterizedTypes.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithParameterizedTypes.java index 4a297e7..3bbf3c7 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithParameterizedTypes.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithParameterizedTypes.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithParameters.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithParameters.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithParameters.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithParameters.java index 9b3f14a..082ad5b 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithParameters.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithParameters.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithReferences.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithReferences.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithReferences.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithReferences.java index 636027b..f99c98a 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithReferences.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithReferences.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famix/famixtraits/TWithSourceLanguage.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithSourceLanguage.java new file mode 100644 index 0000000..00f33db --- /dev/null +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithSourceLanguage.java @@ -0,0 +1,21 @@ +// 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/famixjava/famixtraits/TWithSourceLanguages.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithSourceLanguages.java similarity index 89% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithSourceLanguages.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithSourceLanguages.java index 7859a4c..118d646 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithSourceLanguages.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithSourceLanguages.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithStatements.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithStatements.java similarity index 87% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithStatements.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithStatements.java index 98693a8..c8f5bdc 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithStatements.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithStatements.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithTemplates.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithTemplates.java similarity index 93% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithTemplates.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithTemplates.java index 71da14e..834c328 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithTemplates.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithTemplates.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithThrownExceptions.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithThrownExceptions.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithThrownExceptions.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithThrownExceptions.java index 09539fc..12a29af 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithThrownExceptions.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithThrownExceptions.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithTraits.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithTraits.java similarity index 92% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithTraits.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithTraits.java index a736462..2dfdf3d 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithTraits.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithTraits.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithTypeAliases.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithTypeAliases.java similarity index 93% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithTypeAliases.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithTypeAliases.java index 5fe7d63..cefb842 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithTypeAliases.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithTypeAliases.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithTypes.java b/gen/org/moosetechnology/model/famix/famixtraits/TWithTypes.java similarity index 92% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TWithTypes.java rename to gen/org/moosetechnology/model/famix/famixtraits/TWithTypes.java index e46f18e..b5b2036 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithTypes.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TWithTypes.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +package org.moosetechnology.model.famix.famixtraits; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TypeGroup.java b/gen/org/moosetechnology/model/famix/famixtraits/TypeGroup.java similarity index 95% rename from gen/org/moosetechnology/model/famixjava/famixtraits/TypeGroup.java rename to gen/org/moosetechnology/model/famix/famixtraits/TypeGroup.java index a406131..5e56d11 100644 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TypeGroup.java +++ b/gen/org/moosetechnology/model/famix/famixtraits/TypeGroup.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; +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.famixjava.moose.SpecializedGroup; +import org.moosetechnology.model.famix.moose.SpecializedGroup; @FamePackage("Famix-Traits") diff --git a/gen/org/moosetechnology/model/famixjava/moose/AbstractGroup.java b/gen/org/moosetechnology/model/famix/moose/AbstractGroup.java similarity index 97% rename from gen/org/moosetechnology/model/famixjava/moose/AbstractGroup.java rename to gen/org/moosetechnology/model/famix/moose/AbstractGroup.java index de130ef..0cc0959 100644 --- a/gen/org/moosetechnology/model/famixjava/moose/AbstractGroup.java +++ b/gen/org/moosetechnology/model/famix/moose/AbstractGroup.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.moose; +package org.moosetechnology.model.famix.moose; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/moose/Entity.java b/gen/org/moosetechnology/model/famix/moose/Entity.java similarity index 96% rename from gen/org/moosetechnology/model/famixjava/moose/Entity.java rename to gen/org/moosetechnology/model/famix/moose/Entity.java index 60a7344..0a4d648 100644 --- a/gen/org/moosetechnology/model/famixjava/moose/Entity.java +++ b/gen/org/moosetechnology/model/famix/moose/Entity.java @@ -1,12 +1,12 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.moose; +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.famixjava.tagging.Association; +import org.moosetechnology.model.famix.tagging.Association; @FamePackage("Moose") diff --git a/gen/org/moosetechnology/model/famixjava/moose/Group.java b/gen/org/moosetechnology/model/famix/moose/Group.java similarity index 81% rename from gen/org/moosetechnology/model/famixjava/moose/Group.java rename to gen/org/moosetechnology/model/famix/moose/Group.java index 139e818..73f897f 100644 --- a/gen/org/moosetechnology/model/famixjava/moose/Group.java +++ b/gen/org/moosetechnology/model/famix/moose/Group.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.moose; +package org.moosetechnology.model.famix.moose; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/moose/Model.java b/gen/org/moosetechnology/model/famix/moose/Model.java similarity index 96% rename from gen/org/moosetechnology/model/famixjava/moose/Model.java rename to gen/org/moosetechnology/model/famix/moose/Model.java index 3843408..2480108 100644 --- a/gen/org/moosetechnology/model/famixjava/moose/Model.java +++ b/gen/org/moosetechnology/model/famix/moose/Model.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.moose; +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.famixjava.famixtraits.TSourceLanguage; +import org.moosetechnology.model.famix.famixtraits.TSourceLanguage; @FamePackage("Moose") diff --git a/gen/org/moosetechnology/model/famix/moose/MooseModel.java b/gen/org/moosetechnology/model/famix/moose/MooseModel.java new file mode 100644 index 0000000..bd78a78 --- /dev/null +++ b/gen/org/moosetechnology/model/famix/moose/MooseModel.java @@ -0,0 +1,26 @@ +// 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/famixjava/moose/Object.java b/gen/org/moosetechnology/model/famix/moose/Object.java similarity index 80% rename from gen/org/moosetechnology/model/famixjava/moose/Object.java rename to gen/org/moosetechnology/model/famix/moose/Object.java index c2c946a..6b7682b 100644 --- a/gen/org/moosetechnology/model/famixjava/moose/Object.java +++ b/gen/org/moosetechnology/model/famix/moose/Object.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.moose; +package org.moosetechnology.model.famix.moose; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/moose/PropertyGroup.java b/gen/org/moosetechnology/model/famix/moose/PropertyGroup.java similarity index 97% rename from gen/org/moosetechnology/model/famixjava/moose/PropertyGroup.java rename to gen/org/moosetechnology/model/famix/moose/PropertyGroup.java index 8b6f0ff..ad414eb 100644 --- a/gen/org/moosetechnology/model/famixjava/moose/PropertyGroup.java +++ b/gen/org/moosetechnology/model/famix/moose/PropertyGroup.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.moose; +package org.moosetechnology.model.famix.moose; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/moose/SpecializedGroup.java b/gen/org/moosetechnology/model/famix/moose/SpecializedGroup.java similarity index 82% rename from gen/org/moosetechnology/model/famixjava/moose/SpecializedGroup.java rename to gen/org/moosetechnology/model/famix/moose/SpecializedGroup.java index e656c3d..234337b 100644 --- a/gen/org/moosetechnology/model/famixjava/moose/SpecializedGroup.java +++ b/gen/org/moosetechnology/model/famix/moose/SpecializedGroup.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.moose; +package org.moosetechnology.model.famix.moose; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/moosequery/MooseQueryModel.java b/gen/org/moosetechnology/model/famix/moosequery/MooseQueryModel.java similarity index 51% rename from gen/org/moosetechnology/model/famixjava/moosequery/MooseQueryModel.java rename to gen/org/moosetechnology/model/famix/moosequery/MooseQueryModel.java index 0c5c74f..d188adc 100644 --- a/gen/org/moosetechnology/model/famixjava/moosequery/MooseQueryModel.java +++ b/gen/org/moosetechnology/model/famix/moosequery/MooseQueryModel.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.moosequery; +package org.moosetechnology.model.famix.moosequery; import ch.akuhn.fame.MetaRepository; @@ -12,9 +12,8 @@ public static MetaRepository metamodel() { } public static void importInto(MetaRepository metamodel) { - metamodel.with(org.moosetechnology.model.famixjava.moosequery.TAssociationMetaLevelDependency.class); - metamodel.with(org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency.class); - metamodel.with(org.moosetechnology.model.famixjava.moosequery.TOODependencyQueries.class); + 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/famixjava/moosequery/TAssociationMetaLevelDependency.java b/gen/org/moosetechnology/model/famix/moosequery/TAssociationMetaLevelDependency.java similarity index 82% rename from gen/org/moosetechnology/model/famixjava/moosequery/TAssociationMetaLevelDependency.java rename to gen/org/moosetechnology/model/famix/moosequery/TAssociationMetaLevelDependency.java index fed7c51..22e31ad 100644 --- a/gen/org/moosetechnology/model/famixjava/moosequery/TAssociationMetaLevelDependency.java +++ b/gen/org/moosetechnology/model/famix/moosequery/TAssociationMetaLevelDependency.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.moosequery; +package org.moosetechnology.model.famix.moosequery; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/moosequery/TEntityMetaLevelDependency.java b/gen/org/moosetechnology/model/famix/moosequery/TEntityMetaLevelDependency.java similarity index 95% rename from gen/org/moosetechnology/model/famixjava/moosequery/TEntityMetaLevelDependency.java rename to gen/org/moosetechnology/model/famix/moosequery/TEntityMetaLevelDependency.java index dfcdc40..4e1e262 100644 --- a/gen/org/moosetechnology/model/famixjava/moosequery/TEntityMetaLevelDependency.java +++ b/gen/org/moosetechnology/model/famix/moosequery/TEntityMetaLevelDependency.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.moosequery; +package org.moosetechnology.model.famix.moosequery; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; @@ -13,14 +13,14 @@ public interface TEntityMetaLevelDependency { @FameProperty(name = "numberOfDeadChildren", derived = true) public Number getNumberOfDeadChildren(); - @FameProperty(name = "numberOfChildren", derived = true) - public Number getNumberOfChildren(); + @FameProperty(name = "fanOut", derived = true) + public Number getFanOut(); @FameProperty(name = "fanIn", derived = true) public Number getFanIn(); - @FameProperty(name = "fanOut", derived = true) - public Number getFanOut(); + @FameProperty(name = "numberOfChildren", derived = true) + public Number getNumberOfChildren(); @FameProperty(name = "numberOfInternalProviders", derived = true) public Number getNumberOfInternalProviders(); diff --git a/gen/org/moosetechnology/model/famixjava/moosequery/TOODependencyQueries.java b/gen/org/moosetechnology/model/famix/moosequery/TOODependencyQueries.java similarity index 81% rename from gen/org/moosetechnology/model/famixjava/moosequery/TOODependencyQueries.java rename to gen/org/moosetechnology/model/famix/moosequery/TOODependencyQueries.java index d63bb2d..279409e 100644 --- a/gen/org/moosetechnology/model/famixjava/moosequery/TOODependencyQueries.java +++ b/gen/org/moosetechnology/model/famix/moosequery/TOODependencyQueries.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.moosequery; +package org.moosetechnology.model.famix.moosequery; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famix/smalltalk/SmalltalkModel.java b/gen/org/moosetechnology/model/famix/smalltalk/SmalltalkModel.java new file mode 100644 index 0000000..4bf142a --- /dev/null +++ b/gen/org/moosetechnology/model/famix/smalltalk/SmalltalkModel.java @@ -0,0 +1,19 @@ +// 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/famixjava/tagging/Association.java b/gen/org/moosetechnology/model/famix/tagging/Association.java similarity index 91% rename from gen/org/moosetechnology/model/famixjava/tagging/Association.java rename to gen/org/moosetechnology/model/famix/tagging/Association.java index 966fcde..0d51927 100644 --- a/gen/org/moosetechnology/model/famixjava/tagging/Association.java +++ b/gen/org/moosetechnology/model/famix/tagging/Association.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.tagging; +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.famixjava.moose.Entity; +import org.moosetechnology.model.famix.moose.Entity; @FamePackage("Tagging") diff --git a/gen/org/moosetechnology/model/famixjava/tagging/Category.java b/gen/org/moosetechnology/model/famix/tagging/Category.java similarity index 94% rename from gen/org/moosetechnology/model/famixjava/tagging/Category.java rename to gen/org/moosetechnology/model/famix/tagging/Category.java index 4d031cd..d8a9ae5 100644 --- a/gen/org/moosetechnology/model/famixjava/tagging/Category.java +++ b/gen/org/moosetechnology/model/famix/tagging/Category.java @@ -1,12 +1,12 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.tagging; +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.famixjava.moose.Entity; +import org.moosetechnology.model.famix.moose.Entity; @FamePackage("Tagging") diff --git a/gen/org/moosetechnology/model/famixjava/tagging/EntityAssociation.java b/gen/org/moosetechnology/model/famix/tagging/EntityAssociation.java similarity index 82% rename from gen/org/moosetechnology/model/famixjava/tagging/EntityAssociation.java rename to gen/org/moosetechnology/model/famix/tagging/EntityAssociation.java index b6b92c4..ba32e80 100644 --- a/gen/org/moosetechnology/model/famixjava/tagging/EntityAssociation.java +++ b/gen/org/moosetechnology/model/famix/tagging/EntityAssociation.java @@ -1,5 +1,5 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.tagging; +package org.moosetechnology.model.famix.tagging; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; diff --git a/gen/org/moosetechnology/model/famixjava/tagging/IntervalAssociation.java b/gen/org/moosetechnology/model/famix/tagging/IntervalAssociation.java similarity index 88% rename from gen/org/moosetechnology/model/famixjava/tagging/IntervalAssociation.java rename to gen/org/moosetechnology/model/famix/tagging/IntervalAssociation.java index 16ca626..80c1ec9 100644 --- a/gen/org/moosetechnology/model/famixjava/tagging/IntervalAssociation.java +++ b/gen/org/moosetechnology/model/famix/tagging/IntervalAssociation.java @@ -1,10 +1,10 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.tagging; +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.famixjava.famixtraits.TSourceAnchor; +import org.moosetechnology.model.famix.famixtraits.TSourceAnchor; @FamePackage("Tagging") diff --git a/gen/org/moosetechnology/model/famixjava/tagging/Tag.java b/gen/org/moosetechnology/model/famix/tagging/Tag.java similarity index 97% rename from gen/org/moosetechnology/model/famixjava/tagging/Tag.java rename to gen/org/moosetechnology/model/famix/tagging/Tag.java index 898fb0d..e363769 100644 --- a/gen/org/moosetechnology/model/famixjava/tagging/Tag.java +++ b/gen/org/moosetechnology/model/famix/tagging/Tag.java @@ -1,12 +1,12 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.tagging; +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.famixjava.moose.Entity; +import org.moosetechnology.model.famix.moose.Entity; @FamePackage("Tagging") diff --git a/gen/org/moosetechnology/model/famixjava/tagging/TagModel.java b/gen/org/moosetechnology/model/famix/tagging/TagModel.java similarity index 66% rename from gen/org/moosetechnology/model/famixjava/tagging/TagModel.java rename to gen/org/moosetechnology/model/famix/tagging/TagModel.java index cb9e323..2c9477f 100644 --- a/gen/org/moosetechnology/model/famixjava/tagging/TagModel.java +++ b/gen/org/moosetechnology/model/famix/tagging/TagModel.java @@ -1,9 +1,9 @@ // Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.tagging; +package org.moosetechnology.model.famix.tagging; import ch.akuhn.fame.FameDescription; import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.moose.AbstractGroup; +import org.moosetechnology.model.famix.moose.AbstractGroup; @FamePackage("Tagging") diff --git a/gen/org/moosetechnology/model/famix/tagging/TaggingModel.java b/gen/org/moosetechnology/model/famix/tagging/TaggingModel.java new file mode 100644 index 0000000..fa5bd7f --- /dev/null +++ b/gen/org/moosetechnology/model/famix/tagging/TaggingModel.java @@ -0,0 +1,25 @@ +// 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); + + } + +} + diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/AnnotationType.java b/gen/org/moosetechnology/model/famixjava/famixjavaentities/AnnotationType.java deleted file mode 100644 index 632be13..0000000 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/AnnotationType.java +++ /dev/null @@ -1,463 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; - -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.famixjava.famixtraits.TAnnotationType; -import org.moosetechnology.model.famixjava.famixtraits.TAttribute; -import org.moosetechnology.model.famixjava.famixtraits.TComment; -import org.moosetechnology.model.famixjava.famixtraits.THasVisibility; -import org.moosetechnology.model.famixjava.famixtraits.TImplementable; -import org.moosetechnology.model.famixjava.famixtraits.TImplementation; -import org.moosetechnology.model.famixjava.famixtraits.TInheritance; -import org.moosetechnology.model.famixjava.famixtraits.TPackage; -import org.moosetechnology.model.famixjava.famixtraits.TPackageable; -import org.moosetechnology.model.famixjava.famixtraits.TTypedAnnotationInstance; -import org.moosetechnology.model.famixjava.famixtraits.TWithAnnotationTypes; -import org.moosetechnology.model.famixjava.famixtraits.TWithAttributes; -import org.moosetechnology.model.famixjava.famixtraits.TWithComments; -import org.moosetechnology.model.famixjava.famixtraits.TWithInheritances; - - -@FamePackage("Famix-Java-Entities") -@FameDescription("AnnotationType") -public class AnnotationType extends Type implements TAnnotationType, THasVisibility, TImplementable, TPackageable, TWithAttributes, TWithComments, TWithInheritances { - - private TWithAnnotationTypes annotationTypesContainer; - - private Collection attributes; - - private Collection comments; - - private Collection implementations; - - private Collection instances; - - private TPackage parentPackage; - - private Collection subInheritances; - - private Collection superInheritances; - - private String visibility; - - - - @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 = "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(AnnotationType.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(AnnotationType.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 = "hierarchyNestingLevel", derived = true) - public Number getHierarchyNestingLevel() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "implementations", opposite = "interface", derived = true) - public Collection getImplementations() { - if (implementations == null) { - implementations = new MultivalueSet() { - @Override - protected void clearOpposite(TImplementation e) { - e.setMyInterface(null); - } - @Override - protected void setOpposite(TImplementation e) { - e.setMyInterface(AnnotationType.this); - } - }; - } - return implementations; - } - - public void setImplementations(Collection implementations) { - this.getImplementations().clear(); - this.getImplementations().addAll(implementations); - } - - - public void addImplementations(TImplementation one) { - this.getImplementations().add(one); - } - - public void addImplementations(TImplementation one, TImplementation... many) { - this.getImplementations().add(one); - for (TImplementation each : many) - this.getImplementations().add(each); - } - - public void addImplementations(Iterable many) { - for (TImplementation each : many) - this.getImplementations().add(each); - } - - public void addImplementations(TImplementation[] many) { - for (TImplementation each : many) - this.getImplementations().add(each); - } - - public int numberOfImplementations() { - return getImplementations().size(); - } - - public boolean hasImplementations() { - return !getImplementations().isEmpty(); - } - - @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(); - } - - @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 = "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!"); - } - - @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 = "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 = "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(AnnotationType.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(AnnotationType.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 = "visibility") - public String getVisibility() { - return visibility; - } - - public void setVisibility(String visibility) { - this.visibility = visibility; - } - - - -} - diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Entity.java b/gen/org/moosetechnology/model/famixjava/famixjavaentities/Entity.java deleted file mode 100644 index df46ec5..0000000 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Entity.java +++ /dev/null @@ -1,17 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; - - -@FamePackage("Famix-Java-Entities") -@FameDescription("Entity") -public class Entity extends org.moosetechnology.model.famixjava.moose.Entity { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/FamixJavaEntitiesModel.java b/gen/org/moosetechnology/model/famixjava/famixjavaentities/FamixJavaEntitiesModel.java deleted file mode 100644 index 30ffbde..0000000 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/FamixJavaEntitiesModel.java +++ /dev/null @@ -1,68 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; - -import ch.akuhn.fame.MetaRepository; - -public class FamixJavaEntitiesModel { - - public static MetaRepository metamodel() { - MetaRepository metamodel = new MetaRepository(); - importInto(metamodel); - return metamodel; - } - - public static void importInto(MetaRepository metamodel) { - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.Access.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.AnnotationInstance.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.AnnotationInstanceAttribute.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.AnnotationType.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.AnnotationTypeAttribute.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.Attribute.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.CaughtException.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.Class.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.Comment.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.ContainerEntity.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.DeclaredException.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.Entity.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.Enum.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.EnumValue.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.Exception.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.FamixJavaModel.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.File.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.Folder.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.GlobalVariable.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.Implementation.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.ImplicitVariable.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.IndexedFileAnchor.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.Inheritance.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.Interface.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.Invocation.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.LocalVariable.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.Method.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.NamedEntity.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.Package.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.Parameter.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.ParameterType.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.ParameterizableClass.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.ParameterizableInterface.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.ParameterizedType.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.PrimitiveType.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.Reference.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.SourceAnchor.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.SourceLanguage.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.SourceTextAnchor.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.SourcedEntity.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.TCanBeSynchronized.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.TCanBeTransient.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.TCanBeVolatile.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.TClassMetrics.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.TWithInterfaces.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.ThrownException.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.Type.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.UnknownSourceLanguage.class); - metamodel.with(org.moosetechnology.model.famixjava.famixjavaentities.UnknownVariable.class); - - } - -} - diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/FamixJavaModel.java b/gen/org/moosetechnology/model/famixjava/famixjavaentities/FamixJavaModel.java deleted file mode 100644 index 7b8024b..0000000 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/FamixJavaModel.java +++ /dev/null @@ -1,18 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.moose.Model; - - -@FamePackage("Famix-Java-Entities") -@FameDescription("FamixJavaModel") -public class FamixJavaModel extends Model { - - - - - -} - diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Interface.java b/gen/org/moosetechnology/model/famixjava/famixjavaentities/Interface.java deleted file mode 100644 index 02ce3fd..0000000 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/Interface.java +++ /dev/null @@ -1,610 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; - -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.famixjava.famixtraits.TAttribute; -import org.moosetechnology.model.famixjava.famixtraits.TCanBeClassSide; -import org.moosetechnology.model.famixjava.famixtraits.TCanBeFinal; -import org.moosetechnology.model.famixjava.famixtraits.TComment; -import org.moosetechnology.model.famixjava.famixtraits.THasVisibility; -import org.moosetechnology.model.famixjava.famixtraits.TImplementable; -import org.moosetechnology.model.famixjava.famixtraits.TImplementation; -import org.moosetechnology.model.famixjava.famixtraits.TInheritance; -import org.moosetechnology.model.famixjava.famixtraits.TInvocation; -import org.moosetechnology.model.famixjava.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famixjava.famixtraits.TMethod; -import org.moosetechnology.model.famixjava.famixtraits.TPackage; -import org.moosetechnology.model.famixjava.famixtraits.TPackageable; -import org.moosetechnology.model.famixjava.famixtraits.TWithAttributes; -import org.moosetechnology.model.famixjava.famixtraits.TWithComments; -import org.moosetechnology.model.famixjava.famixtraits.TWithInheritances; -import org.moosetechnology.model.famixjava.famixtraits.TWithMethods; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; -import org.moosetechnology.model.famixjava.moosequery.TOODependencyQueries; - - -@FamePackage("Famix-Java-Entities") -@FameDescription("Interface") -public class Interface extends Type implements TCanBeClassSide, TCanBeFinal, TEntityMetaLevelDependency, THasVisibility, TImplementable, TInvocationsReceiver, TOODependencyQueries, TPackageable, TWithAttributes, TWithComments, TWithInheritances, TWithMethods { - - private Collection attributes; - - private Collection comments; - - private Collection implementations; - - private Boolean isClassSide; - - private Boolean isFinal; - - private Collection methods; - - private TPackage parentPackage; - - private Collection receivingInvocations; - - private Collection subInheritances; - - private Collection superInheritances; - - private String visibility; - - - - @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(Interface.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(Interface.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 = "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 = "implementations", opposite = "interface", derived = true) - public Collection getImplementations() { - if (implementations == null) { - implementations = new MultivalueSet() { - @Override - protected void clearOpposite(TImplementation e) { - e.setMyInterface(null); - } - @Override - protected void setOpposite(TImplementation e) { - e.setMyInterface(Interface.this); - } - }; - } - return implementations; - } - - public void setImplementations(Collection implementations) { - this.getImplementations().clear(); - this.getImplementations().addAll(implementations); - } - - - public void addImplementations(TImplementation one) { - this.getImplementations().add(one); - } - - public void addImplementations(TImplementation one, TImplementation... many) { - this.getImplementations().add(one); - for (TImplementation each : many) - this.getImplementations().add(each); - } - - public void addImplementations(Iterable many) { - for (TImplementation each : many) - this.getImplementations().add(each); - } - - public void addImplementations(TImplementation[] many) { - for (TImplementation each : many) - this.getImplementations().add(each); - } - - public int numberOfImplementations() { - return getImplementations().size(); - } - - public boolean hasImplementations() { - return !getImplementations().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 = "isFinal") - public Boolean getIsFinal() { - return isFinal; - } - - public void setIsFinal(Boolean isFinal) { - this.isFinal = isFinal; - } - - @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 = "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(Interface.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 = "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 = "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 = "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(Interface.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 = "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(Interface.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(Interface.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 = "visibility") - public String getVisibility() { - return visibility; - } - - public void setVisibility(String visibility) { - this.visibility = visibility; - } - - @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/famixjava/famixjavaentities/NamedEntity.java b/gen/org/moosetechnology/model/famixjava/famixjavaentities/NamedEntity.java deleted file mode 100644 index 77b5906..0000000 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/NamedEntity.java +++ /dev/null @@ -1,203 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; - -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.famixjava.famixtraits.TAnnotationInstance; -import org.moosetechnology.model.famixjava.famixtraits.TInvocation; -import org.moosetechnology.model.famixjava.famixtraits.TInvocationsReceiver; -import org.moosetechnology.model.famixjava.famixtraits.TNamedEntity; -import org.moosetechnology.model.famixjava.famixtraits.TWithAnnotationInstances; -import org.moosetechnology.model.famixjava.moosequery.TEntityMetaLevelDependency; - - -@FamePackage("Famix-Java-Entities") -@FameDescription("NamedEntity") -public class NamedEntity extends SourcedEntity implements TEntityMetaLevelDependency, TInvocationsReceiver, TNamedEntity, TWithAnnotationInstances { - - private Collection annotationInstances; - - private String name; - - private Collection receivingInvocations; - - - - @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 = "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 = "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 = "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(); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/ParameterizableInterface.java b/gen/org/moosetechnology/model/famixjava/famixjavaentities/ParameterizableInterface.java deleted file mode 100644 index 81de2aa..0000000 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/ParameterizableInterface.java +++ /dev/null @@ -1,75 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; - -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.famixjava.famixtraits.TParameterizedType; -import org.moosetechnology.model.famixjava.famixtraits.TWithParameterizedTypes; - - -@FamePackage("Famix-Java-Entities") -@FameDescription("ParameterizableInterface") -public class ParameterizableInterface extends Interface implements TWithParameterizedTypes { - - private Collection parameterizedTypes; - - - - @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(ParameterizableInterface.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/famixjava/famixjavaentities/ParameterizedType.java b/gen/org/moosetechnology/model/famixjava/famixjavaentities/ParameterizedType.java deleted file mode 100644 index 0fd2187..0000000 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/ParameterizedType.java +++ /dev/null @@ -1,334 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; - -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.famixjava.famixtraits.TCanImplement; -import org.moosetechnology.model.famixjava.famixtraits.TImplementable; -import org.moosetechnology.model.famixjava.famixtraits.TImplementation; -import org.moosetechnology.model.famixjava.famixtraits.TInheritance; -import org.moosetechnology.model.famixjava.famixtraits.TParameterizedType; -import org.moosetechnology.model.famixjava.famixtraits.TParameterizedTypeUser; -import org.moosetechnology.model.famixjava.famixtraits.TWithInheritances; -import org.moosetechnology.model.famixjava.famixtraits.TWithParameterizedTypeUsers; -import org.moosetechnology.model.famixjava.famixtraits.TWithParameterizedTypes; - - -@FamePackage("Famix-Java-Entities") -@FameDescription("ParameterizedType") -public class ParameterizedType extends Type implements TCanImplement, TImplementable, TParameterizedType, TWithInheritances, TWithParameterizedTypeUsers { - - private Collection arguments; - - private Collection implementations; - - private Collection interfaceImplementations; - - private TWithParameterizedTypes parameterizableClass; - - private Collection subInheritances; - - private Collection superInheritances; - - - - @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 = "hierarchyNestingLevel", derived = true) - public Number getHierarchyNestingLevel() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @FameProperty(name = "implementations", opposite = "interface", derived = true) - public Collection getImplementations() { - if (implementations == null) { - implementations = new MultivalueSet() { - @Override - protected void clearOpposite(TImplementation e) { - e.setMyInterface(null); - } - @Override - protected void setOpposite(TImplementation e) { - e.setMyInterface(ParameterizedType.this); - } - }; - } - return implementations; - } - - public void setImplementations(Collection implementations) { - this.getImplementations().clear(); - this.getImplementations().addAll(implementations); - } - - - public void addImplementations(TImplementation one) { - this.getImplementations().add(one); - } - - public void addImplementations(TImplementation one, TImplementation... many) { - this.getImplementations().add(one); - for (TImplementation each : many) - this.getImplementations().add(each); - } - - public void addImplementations(Iterable many) { - for (TImplementation each : many) - this.getImplementations().add(each); - } - - public void addImplementations(TImplementation[] many) { - for (TImplementation each : many) - this.getImplementations().add(each); - } - - public int numberOfImplementations() { - return getImplementations().size(); - } - - public boolean hasImplementations() { - return !getImplementations().isEmpty(); - } - - @FameProperty(name = "interfaceImplementations", opposite = "implementingClass", derived = true) - public Collection getInterfaceImplementations() { - if (interfaceImplementations == null) { - interfaceImplementations = new MultivalueSet() { - @Override - protected void clearOpposite(TImplementation e) { - e.setImplementingClass(null); - } - @Override - protected void setOpposite(TImplementation e) { - e.setImplementingClass(ParameterizedType.this); - } - }; - } - return interfaceImplementations; - } - - public void setInterfaceImplementations(Collection interfaceImplementations) { - this.getInterfaceImplementations().clear(); - this.getInterfaceImplementations().addAll(interfaceImplementations); - } - - - public void addInterfaceImplementations(TImplementation one) { - this.getInterfaceImplementations().add(one); - } - - public void addInterfaceImplementations(TImplementation one, TImplementation... many) { - this.getInterfaceImplementations().add(one); - for (TImplementation each : many) - this.getInterfaceImplementations().add(each); - } - - public void addInterfaceImplementations(Iterable many) { - for (TImplementation each : many) - this.getInterfaceImplementations().add(each); - } - - public void addInterfaceImplementations(TImplementation[] many) { - for (TImplementation each : many) - this.getInterfaceImplementations().add(each); - } - - public int numberOfInterfaceImplementations() { - return getInterfaceImplementations().size(); - } - - public boolean hasInterfaceImplementations() { - return !getInterfaceImplementations().isEmpty(); - } - - @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 = "numberOfSubclasses", derived = true) - public Number getNumberOfSubclasses() { - // TODO: this is a derived property, implement this method manually. - throw new UnsupportedOperationException("Not yet implemented!"); - } - - @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); - } - - @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(ParameterizedType.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(ParameterizedType.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(); - } - - - -} - diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/TCanBeSynchronized.java b/gen/org/moosetechnology/model/famixjava/famixjavaentities/TCanBeSynchronized.java deleted file mode 100644 index 9ce7d3a..0000000 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/TCanBeSynchronized.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Java-Entities") -@FameDescription("TCanBeSynchronized") -public interface TCanBeSynchronized { - - @FameProperty(name = "isSynchronized") - public Boolean getIsSynchronized(); - - public void setIsSynchronized(Boolean isSynchronized); - - - -} - diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/TCanBeTransient.java b/gen/org/moosetechnology/model/famixjava/famixjavaentities/TCanBeTransient.java deleted file mode 100644 index 70fd2ab..0000000 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/TCanBeTransient.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Java-Entities") -@FameDescription("TCanBeTransient") -public interface TCanBeTransient { - - @FameProperty(name = "isTransient") - public Boolean getIsTransient(); - - public void setIsTransient(Boolean isTransient); - - - -} - diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/TCanBeVolatile.java b/gen/org/moosetechnology/model/famixjava/famixjavaentities/TCanBeVolatile.java deleted file mode 100644 index b915c83..0000000 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/TCanBeVolatile.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Java-Entities") -@FameDescription("TCanBeVolatile") -public interface TCanBeVolatile { - - @FameProperty(name = "isVolatile") - public Boolean getIsVolatile(); - - public void setIsVolatile(Boolean isVolatile); - - - -} - diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/TClassMetrics.java b/gen/org/moosetechnology/model/famixjava/famixjavaentities/TClassMetrics.java deleted file mode 100644 index 11a9ae8..0000000 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/TClassMetrics.java +++ /dev/null @@ -1,31 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Java-Entities") -@FameDescription("TClassMetrics") -public interface TClassMetrics { - - @FameProperty(name = "numberOfProtectedMethods", derived = true) - public Number getNumberOfProtectedMethods(); - - @FameProperty(name = "numberOfPrivateMethods", derived = true) - public Number getNumberOfPrivateMethods(); - - @FameProperty(name = "numberOfPublicMethods", derived = true) - public Number getNumberOfPublicMethods(); - - @FameProperty(name = "numberOfAccessorMethods", derived = true) - public Number getNumberOfAccessorMethods(); - - @FameProperty(name = "numberOfConstructorMethods", derived = true) - public Number getNumberOfConstructorMethods(); - - - -} - diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/TWithInterfaces.java b/gen/org/moosetechnology/model/famixjava/famixjavaentities/TWithInterfaces.java deleted file mode 100644 index d7dc43c..0000000 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/TWithInterfaces.java +++ /dev/null @@ -1,16 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import org.moosetechnology.model.famixjava.famixtraits.TWithTypes; - - -@FamePackage("Famix-Java-Entities") -@FameDescription("TWithInterfaces") -public interface TWithInterfaces { - - - -} - diff --git a/gen/org/moosetechnology/model/famixjava/famixjavaentities/UnknownSourceLanguage.java b/gen/org/moosetechnology/model/famixjava/famixjavaentities/UnknownSourceLanguage.java deleted file mode 100644 index a2f3a33..0000000 --- a/gen/org/moosetechnology/model/famixjava/famixjavaentities/UnknownSourceLanguage.java +++ /dev/null @@ -1,82 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixjavaentities; - -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.famixjava.famixtraits.TSourceLanguage; -import org.moosetechnology.model.famixjava.famixtraits.TUnknownSourceLanguage; -import org.moosetechnology.model.famixjava.famixtraits.TWithSourceLanguages; - - -@FamePackage("Famix-Java-Entities") -@FameDescription("UnknownSourceLanguage") -public class UnknownSourceLanguage extends SourceLanguage implements TSourceLanguage, TUnknownSourceLanguage { - - 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(TWithSourceLanguages e) { - e.setDeclaredSourceLanguage(null); - } - @Override - protected void setOpposite(TWithSourceLanguages e) { - e.setDeclaredSourceLanguage(UnknownSourceLanguage.this); - } - }; - } - return sourcedEntities; - } - - public void setSourcedEntities(Collection sourcedEntities) { - this.getSourcedEntities().clear(); - this.getSourcedEntities().addAll(sourcedEntities); - } - - - public void addSourcedEntities(TWithSourceLanguages one) { - this.getSourcedEntities().add(one); - } - - public void addSourcedEntities(TWithSourceLanguages one, TWithSourceLanguages... many) { - this.getSourcedEntities().add(one); - for (TWithSourceLanguages each : many) - this.getSourcedEntities().add(each); - } - - public void addSourcedEntities(Iterable many) { - for (TWithSourceLanguages each : many) - this.getSourcedEntities().add(each); - } - - public void addSourcedEntities(TWithSourceLanguages[] many) { - for (TWithSourceLanguages 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/famixjava/famixtraits/FamixTraitsModel.java b/gen/org/moosetechnology/model/famixjava/famixtraits/FamixTraitsModel.java deleted file mode 100644 index 0a58b62..0000000 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/FamixTraitsModel.java +++ /dev/null @@ -1,151 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.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.famixjava.famixtraits.AnnotationInstanceGroup.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.AnnotationTypeGroup.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.ClassGroup.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.FamixModel.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.FileGroup.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.FolderGroup.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.GlobalVariableGroup.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.InvocationGroup.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.MethodGroup.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.NamespaceGroup.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.PackageGroup.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TAccess.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TAccessible.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TAnnotationInstance.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TAnnotationInstanceAttribute.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TAnnotationType.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TAnnotationTypeAttribute.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TAssociation.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TAttribute.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TCanBeAbstract.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TCanBeClassSide.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TCanBeFinal.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TCanImplement.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TCaughtException.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TClass.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TClassHierarchyNavigation.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TClassMetrics.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TClassWithVisibility.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TCohesionCouplingMetrics.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TComment.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TCompilationUnit.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TDeclaredException.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TDefinedInModule.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TDereferencedInvocation.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TEnum.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TEnumValue.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TException.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TFile.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TFileAnchor.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TFileInclude.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TFileNavigation.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TFileSystemEntity.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TFolder.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TFunction.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TGlobalVariable.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.THasImmediateSource.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.THasKind.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.THasModifiers.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.THasSignature.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.THasVisibility.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.THeader.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TImplementable.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TImplementation.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TImplicitVariable.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TIndexedFileNavigation.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TInheritance.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TInvocable.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TInvocation.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TInvocationsReceiver.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TLCOMMetrics.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TLocalVariable.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TMethod.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TMethodMetrics.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TModule.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TMultipleFileAnchor.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TNamedEntity.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TNamespace.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TPackage.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TPackageable.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TParameter.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TParameterType.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TParameterizedType.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TParameterizedTypeUser.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TPreprocessorDefine.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TPreprocessorIfdef.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TPrimitiveType.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TReference.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TReferenceable.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TRelativeSourceAnchor.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TSourceAnchor.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TSourceEntity.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TSourceLanguage.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TStructuralEntity.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TTemplate.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TTemplateUser.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TThrownException.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TTrait.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TTraitUsage.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TTraitUser.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TType.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TTypeAlias.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TTypedAnnotationInstance.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TTypedAnnotationInstanceAttribute.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TTypedEntity.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TUnknownSourceLanguage.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TUnknownVariable.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithAccesses.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithAnnotationInstanceAttributes.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithAnnotationInstances.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithAnnotationTypes.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithAttributes.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithCaughtExceptions.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithClasses.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithComments.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithCompilationUnits.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithDeclaredExceptions.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithDereferencedInvocations.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithEnumValues.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithExceptions.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithFileIncludes.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithFiles.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithFunctions.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithGlobalVariables.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithHeaders.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithImplicitVariables.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithInheritances.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithInvocations.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithLocalVariables.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithMethods.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithPackages.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithParameterizedTypeUsers.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithParameterizedTypes.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithParameters.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithReferences.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithSourceLanguages.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithStatements.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithTemplates.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithThrownExceptions.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithTraits.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithTypeAliases.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TWithTypes.class); - metamodel.with(org.moosetechnology.model.famixjava.famixtraits.TypeGroup.class); - - } - -} - diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TException.java b/gen/org/moosetechnology/model/famixjava/famixtraits/TException.java deleted file mode 100644 index 877d8c8..0000000 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TException.java +++ /dev/null @@ -1,21 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.famixtraits; - -import ch.akuhn.fame.FameDescription; -import ch.akuhn.fame.FamePackage; -import ch.akuhn.fame.FameProperty; - - -@FamePackage("Famix-Traits") -@FameDescription("TException") -public interface TException { - - @FameProperty(name = "exceptionClass", opposite = "exceptions") - public TWithExceptions getExceptionClass(); - - public void setExceptionClass(TWithExceptions exceptionClass); - - - -} - diff --git a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithExceptions.java b/gen/org/moosetechnology/model/famixjava/famixtraits/TWithExceptions.java deleted file mode 100644 index d1f5886..0000000 --- a/gen/org/moosetechnology/model/famixjava/famixtraits/TWithExceptions.java +++ /dev/null @@ -1,34 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.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 = "exceptions", opposite = "exceptionClass", derived = true) - public Collection getExceptions(); - - public void setExceptions(Collection exceptions); - - public void addExceptions(TException one); - - public void addExceptions(TException one, TException... many); - - public void addExceptions(Iterable many); - - public void addExceptions(TException[] many); - - public int numberOfExceptions(); - - public boolean hasExceptions(); - - - -} - diff --git a/gen/org/moosetechnology/model/famixjava/moose/MooseModel.java b/gen/org/moosetechnology/model/famixjava/moose/MooseModel.java deleted file mode 100644 index 9123349..0000000 --- a/gen/org/moosetechnology/model/famixjava/moose/MooseModel.java +++ /dev/null @@ -1,26 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.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.famixjava.moose.AbstractGroup.class); - metamodel.with(org.moosetechnology.model.famixjava.moose.Entity.class); - metamodel.with(org.moosetechnology.model.famixjava.moose.Group.class); - metamodel.with(org.moosetechnology.model.famixjava.moose.Model.class); - metamodel.with(org.moosetechnology.model.famixjava.moose.Object.class); - metamodel.with(org.moosetechnology.model.famixjava.moose.PropertyGroup.class); - metamodel.with(org.moosetechnology.model.famixjava.moose.SpecializedGroup.class); - - } - -} - diff --git a/gen/org/moosetechnology/model/famixjava/tagging/TaggingModel.java b/gen/org/moosetechnology/model/famixjava/tagging/TaggingModel.java deleted file mode 100644 index d934f2c..0000000 --- a/gen/org/moosetechnology/model/famixjava/tagging/TaggingModel.java +++ /dev/null @@ -1,25 +0,0 @@ -// Automagically generated code, please do not change -package org.moosetechnology.model.famixjava.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.famixjava.tagging.Association.class); - metamodel.with(org.moosetechnology.model.famixjava.tagging.Category.class); - metamodel.with(org.moosetechnology.model.famixjava.tagging.EntityAssociation.class); - metamodel.with(org.moosetechnology.model.famixjava.tagging.IntervalAssociation.class); - metamodel.with(org.moosetechnology.model.famixjava.tagging.Tag.class); - metamodel.with(org.moosetechnology.model.famixjava.tagging.TagModel.class); - - } - -} - diff --git a/samples/ch/unibe/fame/resources/famix70WithNewCpp.mse b/samples/ch/unibe/fame/resources/famix70WithNewCpp.mse new file mode 100644 index 0000000..a7b6d59 --- /dev/null +++ b/samples/ch/unibe/fame/resources/famix70WithNewCpp.mse @@ -0,0 +1 @@ +( (FM3.Package (id: 1) (name 'Famix-C-Entities') (classes (FM3.Class (id: 2) (name 'Entity') (abstract false) (package (ref: 1)) (superclass (ref: 3))) (FM3.Class (id: 4) (name 'AliasType') (abstract false) (package (ref: 1)) (superclass (ref: 5)) (traits (ref: 6))) (FM3.Class (id: 7) (name 'Reference') (abstract false) (package (ref: 1)) (superclass (ref: 2)) (traits (ref: 8) (ref: 9) (ref: 10) (ref: 11))) (FM3.Class (id: 5) (name 'Type') (abstract false) (package (ref: 1)) (superclass (ref: 2)) (traits (ref: 12) (ref: 13) (ref: 8) (ref: 14) (ref: 15) (ref: 16))) (FM3.Class (id: 17) (name 'DerefInvocation') (abstract false) (package (ref: 1)) (superclass (ref: 18))) (FM3.Class (id: 19) (name 'CModel') (abstract false) (package (ref: 1)) (superclass (ref: 20))) (FM3.Class (id: 21) (name 'Function') (abstract false) (package (ref: 1)) (superclass (ref: 2)) (traits (ref: 22) (ref: 13) (ref: 23) (ref: 24) (ref: 25) (ref: 8) (ref: 26) (ref: 27) (ref: 28) (ref: 14) (ref: 29))) (FM3.Class (id: 30) (name 'UnknownBehaviour') (abstract false) (package (ref: 1)) (superclass (ref: 2)) (traits (ref: 13))) (FM3.Class (id: 31) (name 'Parameter') (abstract false) (package (ref: 1)) (superclass (ref: 2)) (traits (ref: 27) (ref: 32) (ref: 33) (ref: 13) (ref: 14) (ref: 8))) (FM3.Class (id: 34) (name 'LocalVar') (abstract false) (package (ref: 1)) (superclass (ref: 2)) (traits (ref: 27) (ref: 35) (ref: 32) (ref: 33) (ref: 13) (ref: 14) (ref: 8))) (FM3.Class (id: 36) (name 'Access') (abstract false) (package (ref: 1)) (superclass (ref: 2)) (traits (ref: 8) (ref: 37) (ref: 11) (ref: 9))) (FM3.Class (id: 38) (name 'Attribute') (abstract false) (package (ref: 1)) (superclass (ref: 2)) (traits (ref: 27) (ref: 39) (ref: 32) (ref: 33) (ref: 13) (ref: 8) (ref: 14))) (FM3.Class (id: 18) (name 'Invocation') (abstract false) (package (ref: 1)) (superclass (ref: 2)) (traits (ref: 8) (ref: 9) (ref: 40) (ref: 11))) (FM3.Class (id: 41) (name 'EnumValue') (abstract false) (package (ref: 1)) (superclass (ref: 2)) (traits (ref: 42) (ref: 27) (ref: 32) (ref: 33) (ref: 13) (ref: 14) (ref: 8) (ref: 43))) (FM3.Class (id: 44) (name 'Struct') (abstract false) (package (ref: 1)) (superclass (ref: 5)) (traits (ref: 43) (ref: 45))) (FM3.Class (id: 46) (name 'BehaviouralReference') (abstract false) (package (ref: 1)) (superclass (ref: 2))) (FM3.Class (id: 47) (name 'GlobalVar') (abstract false) (package (ref: 1)) (superclass (ref: 2)) (traits (ref: 27) (ref: 48) (ref: 32) (ref: 33) (ref: 13) (ref: 14) (ref: 8))) (FM3.Class (id: 49) (name 'PrimitiveType') (abstract false) (package (ref: 1)) (superclass (ref: 5))) (FM3.Class (id: 50) (name 'Union') (abstract false) (package (ref: 1)) (superclass (ref: 5)) (traits (ref: 43) (ref: 45))) (FM3.Class (id: 51) (name 'Enum') (abstract false) (package (ref: 1)) (superclass (ref: 5)) (traits (ref: 52) (ref: 12) (ref: 13) (ref: 8) (ref: 53) (ref: 15) (ref: 14))))) (FM3.Package (id: 54) (name 'Tagging') (classes (FM3.Class (id: 55) (name 'Category') (abstract false) (package (ref: 54)) (superclass (ref: 3)) (properties (FM3.Property (id: 56) (name 'markedTags') (class (ref: 55)) (container false) (derived false) (multivalued true) (opposite (ref: 57)) (type (ref: 58))) (FM3.Property (id: 59) (name 'name') (class (ref: 55)) (container false) (derived false) (multivalued false) (type (ref: String))))) (FM3.Class (id: 58) (name 'Tag') (abstract false) (package (ref: 54)) (superclass (ref: 3)) (properties (FM3.Property (id: 57) (name 'categories') (class (ref: 58)) (container false) (derived false) (multivalued true) (opposite (ref: 56)) (type (ref: 55))) (FM3.Property (id: 60) (name 'parentTag') (class (ref: 58)) (container true) (derived false) (multivalued false) (opposite (ref: 61)) (type (ref: 58))) (FM3.Property (id: 62) (name 'id') (class (ref: 58)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 61) (name 'subTags') (class (ref: 58)) (container false) (derived true) (multivalued true) (opposite (ref: 60)) (type (ref: 58))) (FM3.Property (id: 63) (name 'description') (class (ref: 58)) (container false) (derived false) (multivalued false) (type (ref: String))) (FM3.Property (id: 64) (name 'children') (class (ref: 58)) (container false) (derived true) (multivalued true) (type (ref: 58))) (FM3.Property (id: 65) (name 'serializedColor') (class (ref: 58)) (container false) (derived false) (multivalued false) (type (ref: String))) (FM3.Property (id: 66) (name 'name') (class (ref: 58)) (container false) (derived false) (multivalued false) (type (ref: String))) (FM3.Property (id: 67) (name 'isHidden') (class (ref: 58)) (container false) (derived false) (multivalued false) (type (ref: Boolean))))) (FM3.Class (id: 68) (name 'TagModel') (abstract false) (package (ref: 54)) (superclass (ref: 69))) (FM3.Class (id: 70) (name 'IntervalAssociation') (abstract false) (package (ref: 54)) (superclass (ref: 71)) (properties (FM3.Property (id: 72) (name 'sourceAnchor') (class (ref: 70)) (container false) (derived false) (multivalued false) (type (ref: 73))) (FM3.Property (id: 74) (name 'stop') (class (ref: 70)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 75) (name 'start') (class (ref: 70)) (container false) (derived false) (multivalued false) (type (ref: Number))))) (FM3.Class (id: 71) (name 'Association') (abstract true) (package (ref: 54)) (superclass (ref: 3)) (properties (FM3.Property (id: 76) (name 'entity') (class (ref: 71)) (container false) (derived false) (multivalued false) (opposite (ref: 77)) (type (ref: 3))) (FM3.Property (id: 78) (name 'tagId') (class (ref: 71)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 79) (name 'tag') (class (ref: 71)) (container false) (derived true) (multivalued false) (type (ref: 58))))) (FM3.Class (id: 80) (name 'EntityAssociation') (abstract false) (package (ref: 54)) (superclass (ref: 71))))) (FM3.Package (id: 81) (name 'Moose') (classes (FM3.Class (id: 82) (name 'Object') (abstract true) (package (ref: 81)) (superclass (ref: Object))) (FM3.Class (id: 83) (name 'SpecializedGroup') (abstract false) (package (ref: 81)) (superclass (ref: 84))) (FM3.Class (id: 84) (name 'Group') (abstract false) (package (ref: 81)) (superclass (ref: 69))) (FM3.Class (id: 3) (name 'Entity') (abstract true) (package (ref: 81)) (superclass (ref: 82)) (properties (FM3.Property (id: 85) (name 'isDead') (class (ref: 3)) (container false) (derived true) (multivalued false) (type (ref: Boolean))) (FM3.Property (id: 86) (name 'numberOfTags') (class (ref: 3)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 77) (name 'allTagAssociations') (class (ref: 3)) (container false) (derived false) (multivalued true) (opposite (ref: 76)) (type (ref: 71))) (FM3.Property (id: 87) (name 'isTagged') (class (ref: 3)) (container false) (derived true) (multivalued false) (type (ref: Boolean))))) (FM3.Class (id: 88) (name 'PropertyGroup') (abstract false) (package (ref: 81)) (superclass (ref: 84)) (properties (FM3.Property (id: 89) (name 'propertyTotal') (class (ref: 88)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 90) (name 'sizeOriginal') (class (ref: 88)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 91) (name 'sizeRatio') (class (ref: 88)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 92) (name 'propertyTotalOriginal') (class (ref: 88)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 93) (name 'propertyRatio') (class (ref: 88)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 94) (name 'property') (class (ref: 88)) (container false) (derived false) (multivalued false) (type (ref: String))))) (FM3.Class (id: 20) (name 'Model') (abstract false) (package (ref: 81)) (superclass (ref: 69)) (properties (FM3.Property (id: 95) (name 'numberOfMethods') (class (ref: 20)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 96) (name 'numberOfModelMethods') (class (ref: 20)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 97) (name 'sourceLanguage') (class (ref: 20)) (container false) (derived false) (multivalued false) (type (ref: 98))) (FM3.Property (id: 99) (name 'numberOfClasses') (class (ref: 20)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 100) (name 'numberOfClassesPerPackage') (class (ref: 20)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 101) (name 'numberOfClassesPerPackage') (class (ref: 20)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 102) (name 'numberOfModelClasses') (class (ref: 20)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 103) (name 'numberOfLinesOfCodePerClass') (class (ref: 20)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 104) (name 'numberOfLinesOfCode') (class (ref: 20)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 105) (name 'numberOfLinesOfCodePerMethod') (class (ref: 20)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 106) (name 'averageCyclomaticComplexity') (class (ref: 20)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 107) (name 'numberOfLinesOfCodePerPackage') (class (ref: 20)) (container false) (derived false) (multivalued false) (type (ref: Number))))) (FM3.Class (id: 69) (name 'AbstractGroup') (abstract true) (package (ref: 81)) (superclass (ref: 82)) (properties (FM3.Property (id: 108) (name 'numberOfPackages') (class (ref: 69)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 109) (name 'numberOfLinesOfCode') (class (ref: 69)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 110) (name 'numberOfItems') (class (ref: 69)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 111) (name 'numberOfEntities') (class (ref: 69)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 112) (name 'numberOfAssociations') (class (ref: 69)) (container false) (derived false) (multivalued false) (type (ref: Number))))))) (FM3.Package (id: 113) (name 'Famix-Traits') (classes (FM3.Trait (id: 114) (name 'THasKind') (package (ref: 113)) (properties (FM3.Property (id: 115) (name 'isGetter') (class (ref: 114)) (container false) (derived true) (multivalued false) (type (ref: Boolean))) (FM3.Property (id: 116) (name 'isConstant') (class (ref: 114)) (container false) (derived true) (multivalued false) (type (ref: Boolean))) (FM3.Property (id: 117) (name 'isConstructor') (class (ref: 114)) (container false) (derived true) (multivalued false) (type (ref: Boolean))) (FM3.Property (id: 118) (name 'isSetter') (class (ref: 114)) (container false) (derived true) (multivalued false) (type (ref: Boolean))) (FM3.Property (id: 119) (name 'kind') (class (ref: 114)) (container false) (derived false) (multivalued false) (type (ref: String))))) (FM3.Trait (id: 120) (name 'TWithHeaders') (package (ref: 113)) (properties (FM3.Property (id: 121) (name 'header') (class (ref: 120)) (container false) (derived true) (multivalued false) (opposite (ref: 122)) (type (ref: 123))))) (FM3.Trait (id: 124) (name 'TWithAnnotationInstances') (package (ref: 113)) (properties (FM3.Property (id: 125) (name 'annotationInstances') (class (ref: 124)) (container false) (derived true) (multivalued true) (opposite (ref: 126)) (type (ref: 127))) (FM3.Property (id: 128) (name 'numberOfAnnotationInstances') (class (ref: 124)) (container false) (derived true) (multivalued false) (type (ref: Number))))) (FM3.Trait (id: 22) (name 'TFunction') (package (ref: 113)) (traits (ref: 13) (ref: 23) (ref: 24) (ref: 25) (ref: 8) (ref: 26) (ref: 27) (ref: 28) (ref: 14) (ref: 29)) (properties (FM3.Property (id: 129) (name 'functionOwner') (class (ref: 22)) (container true) (derived false) (multivalued false) (opposite (ref: 130)) (type (ref: 131))))) (FM3.Trait (id: 132) (name 'TDereferencedInvocation') (package (ref: 113)) (traits (ref: 8) (ref: 9) (ref: 40) (ref: 11)) (properties (FM3.Property (id: 133) (name 'referencer') (class (ref: 132)) (container false) (derived false) (multivalued false) (opposite (ref: 134)) (type (ref: 135))))) (FM3.Trait (id: 136) (name 'TDefinedInModule') (package (ref: 113)) (properties (FM3.Property (id: 137) (name 'parentModule') (class (ref: 136)) (container false) (derived false) (multivalued false) (opposite (ref: 138)) (type (ref: 139))))) (FM3.Trait (id: 140) (name 'TPreprocessorIfdef') (package (ref: 113))) (FM3.Class (id: 141) (name 'InvocationGroup') (abstract false) (package (ref: 113)) (superclass (ref: 83))) (FM3.Trait (id: 142) (name 'TLCOMMetrics') (package (ref: 113)) (properties (FM3.Property (id: 143) (name 'lcom2') (class (ref: 142)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 144) (name 'lcom3') (class (ref: 142)) (container false) (derived true) (multivalued false) (type (ref: Number))))) (FM3.Trait (id: 145) (name 'TWithExceptions') (package (ref: 113)) (properties (FM3.Property (id: 146) (name 'declaredExceptions') (class (ref: 145)) (container false) (derived false) (multivalued true) (opposite (ref: 147)) (type (ref: 148))) (FM3.Property (id: 149) (name 'caughtExceptions') (class (ref: 145)) (container false) (derived false) (multivalued true) (opposite (ref: 150)) (type (ref: 148))) (FM3.Property (id: 151) (name 'thrownExceptions') (class (ref: 145)) (container false) (derived false) (multivalued true) (opposite (ref: 152)) (type (ref: 148))))) (FM3.Trait (id: 153) (name 'TWithPackages') (package (ref: 113))) (FM3.Trait (id: 154) (name 'THasModifiers') (package (ref: 113)) (properties (FM3.Property (id: 155) (name 'isFinal') (class (ref: 154)) (container false) (derived true) (multivalued false) (type (ref: Boolean))) (FM3.Property (id: 156) (name 'modifiers') (class (ref: 154)) (container false) (derived false) (multivalued true) (type (ref: String))) (FM3.Property (id: 157) (name 'isAbstract') (class (ref: 154)) (container false) (derived true) (multivalued false) (type (ref: Boolean))))) (FM3.Trait (id: 158) (name 'TIndexedFileNavigation') (package (ref: 113)) (traits (ref: 159)) (properties (FM3.Property (id: 160) (name 'endPos') (class (ref: 158)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 161) (name 'startPos') (class (ref: 158)) (container false) (derived false) (multivalued false) (type (ref: Number))))) (FM3.Trait (id: 127) (name 'TAnnotationInstance') (package (ref: 113)) (traits (ref: 14)) (properties (FM3.Property (id: 126) (name 'annotatedEntity') (class (ref: 127)) (container false) (derived false) (multivalued false) (opposite (ref: 125)) (type (ref: 124))))) (FM3.Trait (id: 6) (name 'TTypeAlias') (package (ref: 113)) (properties (FM3.Property (id: 162) (name 'aliasedType') (class (ref: 6)) (container false) (derived false) (multivalued false) (opposite (ref: 163)) (type (ref: 16))))) (FM3.Trait (id: 164) (name 'TCanBeAbstract') (package (ref: 113)) (properties (FM3.Property (id: 165) (name 'isAbstract') (class (ref: 164)) (container false) (derived false) (multivalued false) (type (ref: Boolean))))) (FM3.Class (id: 166) (name 'NamespaceGroup') (abstract false) (package (ref: 113)) (superclass (ref: 83))) (FM3.Trait (id: 53) (name 'TWithEnumValues') (package (ref: 113)) (properties (FM3.Property (id: 167) (name 'enumValues') (class (ref: 53)) (container false) (derived true) (multivalued true) (opposite (ref: 168)) (type (ref: 42))))) (FM3.Trait (id: 33) (name 'TAccessible') (package (ref: 113)) (properties (FM3.Property (id: 169) (name 'numberOfGlobalAccesses') (class (ref: 33)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 170) (name 'incomingAccesses') (class (ref: 33)) (container false) (derived true) (multivalued true) (opposite (ref: 171)) (type (ref: 37))) (FM3.Property (id: 172) (name 'numberOfLocalAccesses') (class (ref: 33)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 173) (name 'accessors') (class (ref: 33)) (container false) (derived true) (multivalued true) (type (ref: 29))) (FM3.Property (id: 174) (name 'numberOfAccessingMethods') (class (ref: 33)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 175) (name 'numberOfAccesses') (class (ref: 33)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 176) (name 'numberOfAccessingClasses') (class (ref: 33)) (container false) (derived true) (multivalued false) (type (ref: Number))))) (FM3.Trait (id: 177) (name 'TClassHierarchyNavigation') (package (ref: 113))) (FM3.Trait (id: 178) (name 'TParameterizedType') (package (ref: 113)) (properties (FM3.Property (id: 179) (name 'parameterizableClass') (class (ref: 178)) (container false) (derived false) (multivalued false) (opposite (ref: 180)) (type (ref: 181))))) (FM3.Trait (id: 8) (name 'TSourceEntity') (package (ref: 113)) (properties (FM3.Property (id: 182) (name 'duplicationRate') (class (ref: 8)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 183) (name 'sourceAnchor') (class (ref: 8)) (container false) (derived true) (multivalued false) (opposite (ref: 184)) (type (ref: 73))) (FM3.Property (id: 185) (name 'numberOfLinesOfCodeWithMoreThanOneCharacter') (class (ref: 8)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 186) (name 'numberOfLinesOfCode') (class (ref: 8)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 187) (name 'replicas') (class (ref: 8)) (container false) (derived true) (multivalued false) (type (ref: 188))) (FM3.Property (id: 189) (name 'sourceText') (class (ref: 8)) (container false) (derived true) (multivalued false) (type (ref: String))) (FM3.Property (id: 190) (name 'containsReplicas') (class (ref: 8)) (container false) (derived true) (multivalued false) (type (ref: Boolean))) (FM3.Property (id: 191) (name 'isStub') (class (ref: 8)) (container false) (derived false) (multivalued false) (type (ref: Boolean))))) (FM3.Trait (id: 192) (name 'TParameterizedTypeUser') (package (ref: 113)) (properties (FM3.Property (id: 193) (name 'argumentsInParameterizedTypes') (class (ref: 192)) (container false) (derived true) (multivalued true) (opposite (ref: 194)) (type (ref: 195))))) (FM3.Trait (id: 196) (name 'TWithInheritances') (package (ref: 113)) (properties (FM3.Property (id: 197) (name 'hierarchyNestingLevel') (class (ref: 196)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 198) (name 'subclassHierarchyDepth') (class (ref: 196)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 199) (name 'superInheritances') (class (ref: 196)) (container false) (derived true) (multivalued true) (opposite (ref: 200)) (type (ref: 201))) (FM3.Property (id: 202) (name 'subInheritances') (class (ref: 196)) (container false) (derived true) (multivalued true) (opposite (ref: 203)) (type (ref: 201))) (FM3.Property (id: 204) (name 'numberOfDirectSubclasses') (class (ref: 196)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 205) (name 'numberOfSubclasses') (class (ref: 196)) (container false) (derived true) (multivalued false) (type (ref: Number))))) (FM3.Trait (id: 37) (name 'TAccess') (package (ref: 113)) (traits (ref: 8) (ref: 9) (ref: 11)) (properties (FM3.Property (id: 206) (name 'isRead') (class (ref: 37)) (container false) (derived true) (multivalued false) (type (ref: Boolean))) (FM3.Property (id: 207) (name 'isReadWriteUnknown') (class (ref: 37)) (container false) (derived true) (multivalued false) (type (ref: Boolean))) (FM3.Property (id: 208) (name 'accessor') (class (ref: 37)) (container false) (derived false) (multivalued false) (opposite (ref: 209)) (type (ref: 29))) (FM3.Property (id: 171) (name 'variable') (class (ref: 37)) (container false) (derived false) (multivalued false) (opposite (ref: 170)) (type (ref: 33))) (FM3.Property (id: 210) (name 'isWrite') (class (ref: 37)) (container false) (derived false) (multivalued false) (type (ref: Boolean))))) (FM3.Trait (id: 181) (name 'TWithParameterizedTypes') (package (ref: 113)) (properties (FM3.Property (id: 180) (name 'parameterizedTypes') (class (ref: 181)) (container false) (derived true) (multivalued true) (opposite (ref: 179)) (type (ref: 178))))) (FM3.Trait (id: 45) (name 'TWithAttributes') (package (ref: 113)) (properties (FM3.Property (id: 211) (name 'numberOfAttributes') (class (ref: 45)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 212) (name 'attributes') (class (ref: 45)) (container false) (derived true) (multivalued true) (opposite (ref: 213)) (type (ref: 39))))) (FM3.Trait (id: 214) (name 'TWithImplicitVariables') (package (ref: 113)) (properties (FM3.Property (id: 215) (name 'implicitVariables') (class (ref: 214)) (container false) (derived true) (multivalued true) (opposite (ref: 216)) (type (ref: 217))))) (FM3.Trait (id: 218) (name 'TClassMetrics') (package (ref: 113)) (properties (FM3.Property (id: 219) (name 'numberOfAttributesInherited') (class (ref: 218)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 220) (name 'numberOfMethodsInherited') (class (ref: 218)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 221) (name 'numberOfMethodsOverriden') (class (ref: 218)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 222) (name 'numberOfLocallyDefinedMethods') (class (ref: 218)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 223) (name 'numberOfMethodsInHierarchy') (class (ref: 218)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 224) (name 'totalNumberOfSubclasses') (class (ref: 218)) (container false) (derived true) (multivalued false) (type (ref: Number))))) (FM3.Class (id: 225) (name 'GlobalVariableGroup') (abstract false) (package (ref: 113)) (superclass (ref: 83))) (FM3.Trait (id: 23) (name 'THasSignature') (package (ref: 113)) (properties (FM3.Property (id: 226) (name 'signature') (class (ref: 23)) (container false) (derived false) (multivalued false) (type (ref: String))))) (FM3.Trait (id: 40) (name 'TInvocation') (package (ref: 113)) (traits (ref: 8) (ref: 9) (ref: 11)) (properties (FM3.Property (id: 227) (name 'receiver') (class (ref: 40)) (container false) (derived false) (multivalued false) (opposite (ref: 228)) (type (ref: 229))) (FM3.Property (id: 230) (name 'candidates') (class (ref: 40)) (container false) (derived false) (multivalued true) (opposite (ref: 231)) (type (ref: 232))) (FM3.Property (id: 233) (name 'sender') (class (ref: 40)) (container false) (derived false) (multivalued false) (opposite (ref: 234)) (type (ref: 28))))) (FM3.Trait (id: 10) (name 'TReference') (package (ref: 113)) (traits (ref: 8) (ref: 9) (ref: 11)) (properties (FM3.Property (id: 235) (name 'referencer') (class (ref: 10)) (container false) (derived false) (multivalued false) (opposite (ref: 236)) (type (ref: 24))) (FM3.Property (id: 237) (name 'referredType') (class (ref: 10)) (container false) (derived false) (multivalued false) (opposite (ref: 238)) (type (ref: 15))))) (FM3.Trait (id: 15) (name 'TReferenceable') (package (ref: 113)) (properties (FM3.Property (id: 238) (name 'incomingReferences') (class (ref: 15)) (container false) (derived true) (multivalued true) (opposite (ref: 237)) (type (ref: 10))))) (FM3.Trait (id: 239) (name 'TPackageable') (package (ref: 113)) (properties (FM3.Property (id: 240) (name 'parentPackage') (class (ref: 239)) (container true) (derived false) (multivalued false) (opposite (ref: 241)) (type (ref: 242))))) (FM3.Trait (id: 243) (name 'TWithTraits') (package (ref: 113)) (properties (FM3.Property (id: 244) (name 'traits') (class (ref: 243)) (container false) (derived true) (multivalued true) (opposite (ref: 245)) (type (ref: 246))))) (FM3.Trait (id: 247) (name 'TClassWithVisibility') (package (ref: 113)) (traits (ref: 45) (ref: 196) (ref: 13) (ref: 229) (ref: 248) (ref: 12) (ref: 8) (ref: 239) (ref: 43) (ref: 15) (ref: 14) (ref: 249) (ref: 250))) (FM3.Trait (id: 251) (name 'TPreprocessorDefine') (package (ref: 113))) (FM3.Trait (id: 252) (name 'TCanBeClassSide') (package (ref: 113)) (properties (FM3.Property (id: 253) (name 'isClassSide') (class (ref: 252)) (container false) (defaultValue (ref: 254)) (derived false) (multivalued false) (type (ref: Boolean))))) (FM3.Trait (id: 255) (name 'TParameterType') (package (ref: 113))) (FM3.Trait (id: 201) (name 'TInheritance') (package (ref: 113)) (traits (ref: 8) (ref: 9) (ref: 11)) (properties (FM3.Property (id: 203) (name 'superclass') (class (ref: 201)) (container false) (derived false) (multivalued false) (opposite (ref: 202)) (type (ref: 196))) (FM3.Property (id: 200) (name 'subclass') (class (ref: 201)) (container false) (derived false) (multivalued false) (opposite (ref: 199)) (type (ref: 196))))) (FM3.Trait (id: 249) (name 'TClass') (package (ref: 113)) (traits (ref: 45) (ref: 196) (ref: 13) (ref: 229) (ref: 248) (ref: 12) (ref: 8) (ref: 239) (ref: 43) (ref: 15) (ref: 14)) (properties (FM3.Property (id: 256) (name 'isTestCase') (class (ref: 249)) (container false) (derived true) (multivalued false) (type (ref: Boolean))) (FM3.Property (id: 257) (name 'weightOfAClass') (class (ref: 249)) (container false) (derived true) (multivalued false) (type (ref: Number))))) (FM3.Trait (id: 24) (name 'TWithReferences') (package (ref: 113)) (properties (FM3.Property (id: 236) (name 'outgoingReferences') (class (ref: 24)) (container false) (derived true) (multivalued true) (opposite (ref: 235)) (type (ref: 10))))) (FM3.Trait (id: 258) (name 'TTraitUsage') (package (ref: 113)) (traits (ref: 8) (ref: 9) (ref: 11)) (properties (FM3.Property (id: 259) (name 'user') (class (ref: 258)) (container false) (derived false) (multivalued false) (opposite (ref: 260)) (type (ref: 261))) (FM3.Property (id: 262) (name 'trait') (class (ref: 258)) (container false) (derived false) (multivalued false) (opposite (ref: 263)) (type (ref: 246))))) (FM3.Trait (id: 42) (name 'TEnumValue') (package (ref: 113)) (properties (FM3.Property (id: 168) (name 'parentEnum') (class (ref: 42)) (container true) (derived false) (multivalued false) (opposite (ref: 167)) (type (ref: 53))))) (FM3.Trait (id: 264) (name 'TWithFileIncludes') (package (ref: 113)) (properties (FM3.Property (id: 265) (name 'outgoingIncludeRelations') (class (ref: 264)) (container false) (derived true) (multivalued true) (opposite (ref: 266)) (type (ref: 267))) (FM3.Property (id: 268) (name 'incomingIncludeRelations') (class (ref: 264)) (container false) (derived true) (multivalued true) (opposite (ref: 269)) (type (ref: 267))))) (FM3.Trait (id: 270) (name 'TWithFiles') (package (ref: 113)) (properties (FM3.Property (id: 271) (name 'containerFiles') (class (ref: 270)) (container false) (derived false) (multivalued true) (opposite (ref: 272)) (type (ref: 273))))) (FM3.Trait (id: 274) (name 'TWithCompilationUnits') (package (ref: 113)) (properties (FM3.Property (id: 275) (name 'compilationUnit') (class (ref: 274)) (container false) (derived true) (multivalued false) (opposite (ref: 276)) (type (ref: 277))))) (FM3.Trait (id: 32) (name 'TStructuralEntity') (package (ref: 113)) (traits (ref: 27) (ref: 33) (ref: 13) (ref: 14) (ref: 8))) (FM3.Trait (id: 278) (name 'TUnknownVariable') (package (ref: 113)) (traits (ref: 27) (ref: 32) (ref: 33) (ref: 13) (ref: 14) (ref: 8))) (FM3.Trait (id: 279) (name 'TAnnotationType') (package (ref: 113)) (properties (FM3.Property (id: 280) (name 'instances') (class (ref: 279)) (container false) (derived true) (multivalued true) (opposite (ref: 281)) (type (ref: 282))) (FM3.Property (id: 283) (name 'annotationTypesContainer') (class (ref: 279)) (container true) (derived false) (multivalued false) (opposite (ref: 284)) (type (ref: 285))))) (FM3.Trait (id: 286) (name 'TImplementable') (package (ref: 113)) (properties (FM3.Property (id: 287) (name 'implementations') (class (ref: 286)) (container false) (derived true) (multivalued true) (opposite (ref: 288)) (type (ref: 289))))) (FM3.Trait (id: 290) (name 'TTemplateUser') (package (ref: 113)) (properties (FM3.Property (id: 291) (name 'template') (class (ref: 290)) (container false) (derived false) (multivalued false) (opposite (ref: 292)) (type (ref: 293))))) (FM3.Trait (id: 294) (name 'TComment') (package (ref: 113)) (properties (FM3.Property (id: 295) (name 'content') (class (ref: 294)) (container false) (derived false) (multivalued false) (type (ref: String))) (FM3.Property (id: 296) (name 'container') (class (ref: 294)) (container false) (derived false) (multivalued false) (opposite (ref: 297)) (type (ref: 43))))) (FM3.Trait (id: 73) (name 'TSourceAnchor') (package (ref: 113)) (properties (FM3.Property (id: 298) (name 'lineCount') (class (ref: 73)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 184) (name 'element') (class (ref: 73)) (container false) (derived false) (multivalued false) (opposite (ref: 183)) (type (ref: 8))))) (FM3.Trait (id: 229) (name 'TInvocationsReceiver') (package (ref: 113)) (properties (FM3.Property (id: 228) (name 'receivingInvocations') (class (ref: 229)) (container false) (derived true) (multivalued true) (opposite (ref: 227)) (type (ref: 40))))) (FM3.Trait (id: 299) (name 'TRelativeSourceAnchor') (package (ref: 113)) (traits (ref: 73)) (properties (FM3.Property (id: 300) (name 'startPos') (class (ref: 299)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 301) (name 'endPos') (class (ref: 299)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 302) (name 'relatedAnchor') (class (ref: 299)) (container false) (derived false) (multivalued false) (type (ref: 73))))) (FM3.Trait (id: 303) (name 'TMethodMetrics') (package (ref: 113)) (properties (FM3.Property (id: 304) (name 'numberOfAnnotationInstances') (class (ref: 303)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 305) (name 'cyclomaticComplexity') (class (ref: 303)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 306) (name 'hierarchyNestingLevel') (class (ref: 303)) (container false) (derived true) (multivalued false) (type (ref: Number))))) (FM3.Trait (id: 35) (name 'TLocalVariable') (package (ref: 113)) (traits (ref: 27) (ref: 32) (ref: 33) (ref: 13) (ref: 14) (ref: 8)) (properties (FM3.Property (id: 307) (name 'parentBehaviouralEntity') (class (ref: 35)) (container true) (derived false) (multivalued false) (opposite (ref: 308)) (type (ref: 309))))) (FM3.Trait (id: 310) (name 'TCanImplement') (package (ref: 113)) (properties (FM3.Property (id: 311) (name 'interfaceImplementations') (class (ref: 310)) (container false) (derived true) (multivalued true) (opposite (ref: 312)) (type (ref: 289))))) (FM3.Trait (id: 39) (name 'TAttribute') (package (ref: 113)) (traits (ref: 27) (ref: 32) (ref: 33) (ref: 13) (ref: 14) (ref: 8)) (properties (FM3.Property (id: 313) (name 'hierarchyNestingLevel') (class (ref: 39)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 213) (name 'parentType') (class (ref: 39)) (container true) (derived false) (multivalued false) (opposite (ref: 212)) (type (ref: 45))) (FM3.Property (id: 314) (name 'hasClassScope') (class (ref: 39)) (container false) (derived true) (multivalued false) (type (ref: Boolean))))) (FM3.Class (id: 315) (name 'ClassGroup') (abstract false) (package (ref: 113)) (superclass (ref: 316))) (FM3.Trait (id: 317) (name 'TMethod') (package (ref: 113)) (traits (ref: 13) (ref: 23) (ref: 24) (ref: 25) (ref: 8) (ref: 26) (ref: 232) (ref: 27) (ref: 214) (ref: 309) (ref: 28) (ref: 14) (ref: 303) (ref: 29)) (properties (FM3.Property (id: 318) (name 'parentType') (class (ref: 317)) (container true) (derived false) (multivalued false) (opposite (ref: 319)) (type (ref: 248))) (FM3.Property (id: 320) (name 'hasClassScope') (class (ref: 317)) (container false) (derived true) (multivalued false) (type (ref: Boolean))))) (FM3.Trait (id: 159) (name 'TFileAnchor') (package (ref: 113)) (properties (FM3.Property (id: 321) (name 'correspondingFile') (class (ref: 159)) (container false) (derived false) (multivalued false) (type (ref: 273))) (FM3.Property (id: 322) (name 'fileName') (class (ref: 159)) (container false) (derived false) (multivalued false) (type (ref: String))) (FM3.Property (id: 323) (name 'encoding') (class (ref: 159)) (container false) (derived false) (multivalued false) (type (ref: String))))) (FM3.Trait (id: 27) (name 'TTypedEntity') (package (ref: 113)) (properties (FM3.Property (id: 324) (name 'declaredType') (class (ref: 27)) (container false) (derived false) (multivalued false) (opposite (ref: 325)) (type (ref: 12))))) (FM3.Trait (id: 285) (name 'TWithAnnotationTypes') (package (ref: 113)) (properties (FM3.Property (id: 284) (name 'definedAnnotationTypes') (class (ref: 285)) (container false) (derived true) (multivalued true) (opposite (ref: 283)) (type (ref: 279))))) (FM3.Trait (id: 261) (name 'TTraitUser') (package (ref: 113)) (properties (FM3.Property (id: 260) (name 'outgoingTraitUsages') (class (ref: 261)) (container false) (derived true) (multivalued true) (opposite (ref: 259)) (type (ref: 258))))) (FM3.Trait (id: 326) (name 'TWithTypes') (package (ref: 113)) (properties (FM3.Property (id: 327) (name 'types') (class (ref: 326)) (container false) (derived true) (multivalued true) (opposite (ref: 328)) (type (ref: 12))))) (FM3.Trait (id: 28) (name 'TWithInvocations') (package (ref: 113)) (properties (FM3.Property (id: 234) (name 'outgoingInvocations') (class (ref: 28)) (container false) (derived true) (multivalued true) (opposite (ref: 233)) (type (ref: 40))) (FM3.Property (id: 329) (name 'numberOfOutgoingInvocations') (class (ref: 28)) (container false) (derived true) (multivalued false) (type (ref: Number))))) (FM3.Trait (id: 309) (name 'TWithLocalVariables') (package (ref: 113)) (properties (FM3.Property (id: 308) (name 'localVariables') (class (ref: 309)) (container false) (derived true) (multivalued true) (opposite (ref: 307)) (type (ref: 35))))) (FM3.Trait (id: 135) (name 'TWithDereferencedInvocations') (package (ref: 113)) (properties (FM3.Property (id: 134) (name 'dereferencedInvocations') (class (ref: 135)) (container false) (derived true) (multivalued true) (opposite (ref: 133)) (type (ref: 132))))) (FM3.Class (id: 330) (name 'FamixModel') (abstract false) (package (ref: 113)) (superclass (ref: 20))) (FM3.Trait (id: 16) (name 'TWithTypeAliases') (package (ref: 113)) (properties (FM3.Property (id: 163) (name 'typeAliases') (class (ref: 16)) (container false) (derived true) (multivalued true) (opposite (ref: 162)) (type (ref: 6))))) (FM3.Trait (id: 331) (name 'TWithAnnotationInstanceAttributes') (package (ref: 113)) (properties (FM3.Property (id: 332) (name 'attributes') (class (ref: 331)) (container false) (derived true) (multivalued true) (opposite (ref: 333)) (type (ref: 334))))) (FM3.Trait (id: 335) (name 'TNamespace') (package (ref: 113)) (traits (ref: 13) (ref: 8) (ref: 14))) (FM3.Trait (id: 334) (name 'TAnnotationInstanceAttribute') (package (ref: 113)) (traits (ref: 14)) (properties (FM3.Property (id: 333) (name 'parentAnnotationInstance') (class (ref: 334)) (container true) (derived false) (multivalued false) (opposite (ref: 332)) (type (ref: 331))) (FM3.Property (id: 336) (name 'value') (class (ref: 334)) (container false) (derived false) (multivalued false) (type (ref: String))))) (FM3.Trait (id: 293) (name 'TTemplate') (package (ref: 113)) (properties (FM3.Property (id: 337) (name 'templateOwner') (class (ref: 293)) (container false) (derived false) (multivalued false) (opposite (ref: 338)) (type (ref: 339))) (FM3.Property (id: 292) (name 'templateUsers') (class (ref: 293)) (container false) (derived true) (multivalued true) (opposite (ref: 291)) (type (ref: 290))))) (FM3.Trait (id: 43) (name 'TWithComments') (package (ref: 113)) (properties (FM3.Property (id: 297) (name 'comments') (class (ref: 43)) (container false) (derived true) (multivalued true) (opposite (ref: 296)) (type (ref: 294))) (FM3.Property (id: 340) (name 'numberOfComments') (class (ref: 43)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 341) (name 'hasComments') (class (ref: 43)) (container false) (derived true) (multivalued false) (type (ref: Boolean))))) (FM3.Class (id: 342) (name 'MethodGroup') (abstract false) (package (ref: 113)) (superclass (ref: 83)) (properties (FM3.Property (id: 343) (name 'averageNumberOfParameters') (class (ref: 342)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 344) (name 'averageNumberOfLinesOfCode') (class (ref: 342)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 345) (name 'averageNumberOfInvocations') (class (ref: 342)) (container false) (derived false) (multivalued false) (type (ref: Number))))) (FM3.Trait (id: 282) (name 'TTypedAnnotationInstance') (package (ref: 113)) (properties (FM3.Property (id: 281) (name 'annotationType') (class (ref: 282)) (container false) (derived false) (multivalued false) (opposite (ref: 280)) (type (ref: 279))))) (FM3.Trait (id: 250) (name 'THasVisibility') (package (ref: 113)) (properties (FM3.Property (id: 346) (name 'isPublic') (class (ref: 250)) (container false) (derived true) (multivalued false) (type (ref: Boolean))) (FM3.Property (id: 347) (name 'visibility') (class (ref: 250)) (container false) (derived false) (multivalued false) (type (ref: String))) (FM3.Property (id: 348) (name 'isPackage') (class (ref: 250)) (container false) (derived true) (multivalued false) (type (ref: Boolean))) (FM3.Property (id: 349) (name 'isProtected') (class (ref: 250)) (container false) (derived true) (multivalued false) (type (ref: Boolean))) (FM3.Property (id: 350) (name 'isPrivate') (class (ref: 250)) (container false) (derived true) (multivalued false) (type (ref: Boolean))))) (FM3.Trait (id: 232) (name 'TInvocable') (package (ref: 113)) (properties (FM3.Property (id: 231) (name 'incomingInvocations') (class (ref: 232)) (container false) (derived true) (multivalued true) (opposite (ref: 230)) (type (ref: 40))))) (FM3.Class (id: 316) (name 'TypeGroup') (abstract false) (package (ref: 113)) (superclass (ref: 83)) (properties (FM3.Property (id: 351) (name 'bunchCohesion') (class (ref: 316)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 352) (name 'afferentCoupling') (class (ref: 316)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 353) (name 'instability') (class (ref: 316)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 354) (name 'averageNumberOfMethods') (class (ref: 316)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 355) (name 'averageNumberOfAttributes') (class (ref: 316)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 356) (name 'averageNumberOfStatements') (class (ref: 316)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 357) (name 'distance') (class (ref: 316)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 358) (name 'efferentCoupling') (class (ref: 316)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 359) (name 'averageNumberOfMethods') (class (ref: 316)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 360) (name 'abstractness') (class (ref: 316)) (container false) (derived true) (multivalued false) (type (ref: Number))))) (FM3.Trait (id: 29) (name 'TWithAccesses') (package (ref: 113)) (properties (FM3.Property (id: 209) (name 'accesses') (class (ref: 29)) (container false) (derived true) (multivalued true) (opposite (ref: 208)) (type (ref: 37))))) (FM3.Trait (id: 273) (name 'TFile') (package (ref: 113)) (traits (ref: 361)) (properties (FM3.Property (id: 362) (name 'numberOfCharacters') (class (ref: 273)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 272) (name 'entities') (class (ref: 273)) (container false) (derived true) (multivalued true) (opposite (ref: 271)) (type (ref: 270))) (FM3.Property (id: 363) (name 'averageNumberOfCharactersPerLine') (class (ref: 273)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 364) (name 'totalNumberOfLinesOfText') (class (ref: 273)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 365) (name 'numberOfKiloBytes') (class (ref: 273)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 366) (name 'numberOfEmptyLinesOfText') (class (ref: 273)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 367) (name 'numberOfBytes') (class (ref: 273)) (container false) (derived true) (multivalued false) (type (ref: Number))))) (FM3.Trait (id: 217) (name 'TImplicitVariable') (package (ref: 113)) (traits (ref: 27) (ref: 32) (ref: 33) (ref: 13) (ref: 14) (ref: 8)) (properties (FM3.Property (id: 216) (name 'parentBehaviouralEntity') (class (ref: 217)) (container true) (derived false) (multivalued false) (opposite (ref: 215)) (type (ref: 214))))) (FM3.Trait (id: 368) (name 'TUnknownSourceLanguage') (package (ref: 113)) (traits (ref: 98))) (FM3.Trait (id: 139) (name 'TModule') (package (ref: 113)) (properties (FM3.Property (id: 138) (name 'moduleEntities') (class (ref: 139)) (container false) (derived true) (multivalued true) (opposite (ref: 137)) (type (ref: 136))))) (FM3.Class (id: 369) (name 'AnnotationInstanceGroup') (abstract false) (package (ref: 113)) (superclass (ref: 83))) (FM3.Trait (id: 26) (name 'TWithStatements') (package (ref: 113)) (traits (ref: 8) (ref: 29) (ref: 28) (ref: 24)) (properties (FM3.Property (id: 370) (name 'numberOfStatements') (class (ref: 26)) (container false) (derived true) (multivalued false) (type (ref: Number))))) (FM3.Trait (id: 195) (name 'TWithParameterizedTypeUsers') (package (ref: 113)) (properties (FM3.Property (id: 194) (name 'arguments') (class (ref: 195)) (container false) (derived false) (multivalued true) (opposite (ref: 193)) (type (ref: 192))))) (FM3.Trait (id: 371) (name 'TMultipleFileAnchor') (package (ref: 113)) (traits (ref: 73)) (properties (FM3.Property (id: 372) (name 'fileAnchors') (class (ref: 371)) (container false) (derived false) (multivalued true) (type (ref: 159))))) (FM3.Trait (id: 242) (name 'TPackage') (package (ref: 113)) (traits (ref: 13) (ref: 8) (ref: 14)) (properties (FM3.Property (id: 373) (name 'weightedMethodCount') (class (ref: 242)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 241) (name 'childEntities') (class (ref: 242)) (container false) (derived true) (multivalued true) (opposite (ref: 240)) (type (ref: 239))))) (FM3.Trait (id: 374) (name 'TWithSourceLanguages') (package (ref: 113)) (properties (FM3.Property (id: 375) (name 'declaredSourceLanguage') (class (ref: 374)) (container false) (derived false) (multivalued false) (opposite (ref: 376)) (type (ref: 98))))) (FM3.Trait (id: 248) (name 'TWithMethods') (package (ref: 113)) (properties (FM3.Property (id: 377) (name 'numberOfAbstractMethods') (class (ref: 248)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 319) (name 'methods') (class (ref: 248)) (container false) (derived true) (multivalued true) (opposite (ref: 318)) (type (ref: 317))) (FM3.Property (id: 378) (name 'tightClassCohesion') (class (ref: 248)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 379) (name 'weightedMethodCount') (class (ref: 248)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 380) (name 'numberOfMethods') (class (ref: 248)) (container false) (derived true) (multivalued false) (type (ref: Number))))) (FM3.Trait (id: 381) (name 'TPrimitiveType') (package (ref: 113)) (traits (ref: 12) (ref: 13) (ref: 8) (ref: 14) (ref: 15))) (FM3.Trait (id: 98) (name 'TSourceLanguage') (package (ref: 113)) (properties (FM3.Property (id: 376) (name 'sourcedEntities') (class (ref: 98)) (container false) (derived true) (multivalued true) (opposite (ref: 375)) (type (ref: 374))))) (FM3.Trait (id: 382) (name 'TWithClasses') (package (ref: 113)) (traits (ref: 326)) (properties (FM3.Property (id: 383) (name 'numberOfClasses') (class (ref: 382)) (container false) (derived true) (multivalued false) (type (ref: Number))))) (FM3.Trait (id: 361) (name 'TFileSystemEntity') (package (ref: 113)) (properties (FM3.Property (id: 384) (name 'parentFolder') (class (ref: 361)) (container true) (derived false) (multivalued false) (opposite (ref: 385)) (type (ref: 386))) (FM3.Property (id: 387) (name 'numberOfLinesOfText') (class (ref: 361)) (container false) (derived true) (multivalued false) (type (ref: Number))))) (FM3.Trait (id: 131) (name 'TWithFunctions') (package (ref: 113)) (properties (FM3.Property (id: 130) (name 'functions') (class (ref: 131)) (container false) (derived true) (multivalued true) (opposite (ref: 129)) (type (ref: 22))))) (FM3.Trait (id: 12) (name 'TType') (package (ref: 113)) (traits (ref: 13) (ref: 8) (ref: 14) (ref: 15)) (properties (FM3.Property (id: 328) (name 'typeContainer') (class (ref: 12)) (container true) (derived false) (multivalued false) (opposite (ref: 327)) (type (ref: 326))) (FM3.Property (id: 325) (name 'typedEntities') (class (ref: 12)) (container false) (derived true) (multivalued true) (opposite (ref: 324)) (type (ref: 27))))) (FM3.Trait (id: 246) (name 'TTrait') (package (ref: 113)) (properties (FM3.Property (id: 245) (name 'traitOwner') (class (ref: 246)) (container false) (derived false) (multivalued false) (opposite (ref: 244)) (type (ref: 243))) (FM3.Property (id: 263) (name 'incomingTraitUsages') (class (ref: 246)) (container false) (derived true) (multivalued true) (opposite (ref: 262)) (type (ref: 258))))) (FM3.Trait (id: 388) (name 'TCanBeFinal') (package (ref: 113)) (properties (FM3.Property (id: 389) (name 'isFinal') (class (ref: 388)) (container false) (derived false) (multivalued false) (type (ref: Boolean))))) (FM3.Trait (id: 390) (name 'TCohesionCouplingMetrics') (package (ref: 113)) (traits (ref: 13) (ref: 8) (ref: 14) (ref: 242)) (properties (FM3.Property (id: 391) (name 'abstractness') (class (ref: 390)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 392) (name 'instability') (class (ref: 390)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 393) (name 'efferentCoupling') (class (ref: 390)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 394) (name 'distance') (class (ref: 390)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 395) (name 'martinCohesion') (class (ref: 390)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 396) (name 'afferentCoupling') (class (ref: 390)) (container false) (derived true) (multivalued false) (type (ref: Number))))) (FM3.Trait (id: 52) (name 'TEnum') (package (ref: 113)) (traits (ref: 12) (ref: 13) (ref: 8) (ref: 14) (ref: 15) (ref: 53))) (FM3.Class (id: 397) (name 'FileGroup') (abstract false) (package (ref: 113)) (superclass (ref: 83))) (FM3.Class (id: 398) (name 'FolderGroup') (abstract false) (package (ref: 113)) (superclass (ref: 83))) (FM3.Trait (id: 148) (name 'TException') (package (ref: 113)) (traits (ref: 45) (ref: 196) (ref: 13) (ref: 229) (ref: 248) (ref: 12) (ref: 8) (ref: 239) (ref: 43) (ref: 15) (ref: 14) (ref: 249)) (properties (FM3.Property (id: 150) (name 'catchingEntities') (class (ref: 148)) (container false) (derived true) (multivalued true) (opposite (ref: 149)) (type (ref: 145))) (FM3.Property (id: 147) (name 'declaringEntities') (class (ref: 148)) (container false) (derived true) (multivalued true) (opposite (ref: 146)) (type (ref: 145))) (FM3.Property (id: 152) (name 'throwingEntities') (class (ref: 148)) (container false) (derived true) (multivalued true) (opposite (ref: 151)) (type (ref: 145))))) (FM3.Trait (id: 48) (name 'TGlobalVariable') (package (ref: 113)) (traits (ref: 27) (ref: 32) (ref: 33) (ref: 13) (ref: 14) (ref: 8)) (properties (FM3.Property (id: 399) (name 'parentScope') (class (ref: 48)) (container true) (derived false) (multivalued false) (opposite (ref: 400)) (type (ref: 401))))) (FM3.Trait (id: 386) (name 'TFolder') (package (ref: 113)) (traits (ref: 361)) (properties (FM3.Property (id: 402) (name 'numberOfFiles') (class (ref: 386)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 403) (name 'totalNumberOfLinesOfText') (class (ref: 386)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 385) (name 'childrenFileSystemEntities') (class (ref: 386)) (container false) (derived true) (multivalued true) (opposite (ref: 384)) (type (ref: 361))) (FM3.Property (id: 404) (name 'numberOfFolders') (class (ref: 386)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 405) (name 'numberOfEmptyLinesOfText') (class (ref: 386)) (container false) (derived true) (multivalued false) (type (ref: Number))))) (FM3.Trait (id: 289) (name 'TImplementation') (package (ref: 113)) (traits (ref: 8) (ref: 9) (ref: 11)) (properties (FM3.Property (id: 288) (name 'interface') (class (ref: 289)) (container false) (derived false) (multivalued false) (opposite (ref: 287)) (type (ref: 286))) (FM3.Property (id: 312) (name 'implementingClass') (class (ref: 289)) (container false) (derived false) (multivalued false) (opposite (ref: 311)) (type (ref: 310))))) (FM3.Trait (id: 406) (name 'TParameter') (package (ref: 113)) (traits (ref: 27) (ref: 32) (ref: 33) (ref: 13) (ref: 14) (ref: 8)) (properties (FM3.Property (id: 407) (name 'parentBehaviouralEntity') (class (ref: 406)) (container true) (derived false) (multivalued false) (opposite (ref: 408)) (type (ref: 25))))) (FM3.Trait (id: 409) (name 'THasImmediateSource') (package (ref: 113)) (traits (ref: 73)) (properties (FM3.Property (id: 410) (name 'source') (class (ref: 409)) (container false) (derived false) (multivalued false) (type (ref: String))))) (FM3.Trait (id: 401) (name 'TWithGlobalVariables') (package (ref: 113)) (properties (FM3.Property (id: 400) (name 'globalVariables') (class (ref: 401)) (container false) (derived true) (multivalued true) (opposite (ref: 399)) (type (ref: 48))))) (FM3.Trait (id: 277) (name 'TCompilationUnit') (package (ref: 113)) (traits (ref: 273) (ref: 361)) (properties (FM3.Property (id: 276) (name 'compilationUnitOwner') (class (ref: 277)) (container false) (derived false) (multivalued false) (opposite (ref: 275)) (type (ref: 274))))) (FM3.Class (id: 411) (name 'PackageGroup') (abstract false) (package (ref: 113)) (superclass (ref: 83))) (FM3.Trait (id: 412) (name 'TTypedAnnotationInstanceAttribute') (package (ref: 113)) (properties (FM3.Property (id: 413) (name 'annotationTypeAttribute') (class (ref: 412)) (container false) (derived false) (multivalued false) (opposite (ref: 414)) (type (ref: 415))))) (FM3.Trait (id: 416) (name 'TFileNavigation') (package (ref: 113)) (traits (ref: 159)) (properties (FM3.Property (id: 417) (name 'startLine') (class (ref: 416)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 418) (name 'endLine') (class (ref: 416)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 419) (name 'startColumn') (class (ref: 416)) (container false) (derived false) (multivalued false) (type (ref: Number))) (FM3.Property (id: 420) (name 'endColumn') (class (ref: 416)) (container false) (derived false) (multivalued false) (type (ref: Number))))) (FM3.Trait (id: 123) (name 'THeader') (package (ref: 113)) (traits (ref: 273) (ref: 361)) (properties (FM3.Property (id: 122) (name 'headerOwner') (class (ref: 123)) (container false) (derived false) (multivalued false) (opposite (ref: 121)) (type (ref: 120))))) (FM3.Trait (id: 25) (name 'TWithParameters') (package (ref: 113)) (properties (FM3.Property (id: 421) (name 'numberOfParameters') (class (ref: 25)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 408) (name 'parameters') (class (ref: 25)) (container false) (derived true) (multivalued true) (opposite (ref: 407)) (type (ref: 406))))) (FM3.Class (id: 422) (name 'AnnotationTypeGroup') (abstract false) (package (ref: 113)) (superclass (ref: 83))) (FM3.Trait (id: 415) (name 'TAnnotationTypeAttribute') (package (ref: 113)) (traits (ref: 27) (ref: 39) (ref: 32) (ref: 33) (ref: 13) (ref: 8) (ref: 14)) (properties (FM3.Property (id: 414) (name 'annotationAttributeInstances') (class (ref: 415)) (container false) (derived true) (multivalued true) (opposite (ref: 413)) (type (ref: 412))))) (FM3.Trait (id: 11) (name 'TAssociation') (package (ref: 113)) (traits (ref: 8) (ref: 9)) (properties (FM3.Property (id: 423) (name 'next') (class (ref: 11)) (container false) (derived true) (multivalued false) (opposite (ref: 424)) (type (ref: 11))) (FM3.Property (id: 424) (name 'previous') (class (ref: 11)) (container false) (derived false) (multivalued false) (opposite (ref: 423)) (type (ref: 11))))) (FM3.Trait (id: 339) (name 'TWithTemplates') (package (ref: 113)) (properties (FM3.Property (id: 338) (name 'templates') (class (ref: 339)) (container false) (derived true) (multivalued true) (opposite (ref: 337)) (type (ref: 293))))) (FM3.Trait (id: 13) (name 'TNamedEntity') (package (ref: 113)) (properties (FM3.Property (id: 425) (name 'name') (class (ref: 13)) (container false) (derived false) (multivalued false) (type (ref: String))))) (FM3.Trait (id: 267) (name 'TFileInclude') (package (ref: 113)) (traits (ref: 8) (ref: 9) (ref: 11)) (properties (FM3.Property (id: 269) (name 'target') (class (ref: 267)) (container false) (derived false) (multivalued false) (opposite (ref: 268)) (type (ref: 264))) (FM3.Property (id: 266) (name 'source') (class (ref: 267)) (container false) (derived false) (multivalued false) (opposite (ref: 265)) (type (ref: 264))))))) (FM3.Package (id: 426) (name 'Moose-Query') (classes (FM3.Trait (id: 14) (name 'TEntityMetaLevelDependency') (package (ref: 426)) (properties (FM3.Property (id: 427) (name 'numberOfExternalProviders') (class (ref: 14)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 428) (name 'numberOfInternalProviders') (class (ref: 14)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 429) (name 'fanOut') (class (ref: 14)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 430) (name 'isDead') (class (ref: 14)) (container false) (derived true) (multivalued false) (type (ref: Boolean))) (FM3.Property (id: 431) (name 'numberOfExternalClients') (class (ref: 14)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 432) (name 'fanIn') (class (ref: 14)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 433) (name 'numberOfChildren') (class (ref: 14)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 434) (name 'numberOfInternalClients') (class (ref: 14)) (container false) (derived true) (multivalued false) (type (ref: Number))) (FM3.Property (id: 435) (name 'numberOfDeadChildren') (class (ref: 14)) (container false) (derived true) (multivalued false) (type (ref: Number))))) (FM3.Trait (id: 9) (name 'TAssociationMetaLevelDependency') (package (ref: 426))))) (FM3.Package (id: 436) (name 'Famix-CPreproc-Entities') (classes (FM3.Class (id: 437) (name 'CompilUnit') (abstract false) (package (ref: 436)) (superclass (ref: 438))) (FM3.Class (id: 439) (name 'PreprocStatement') (abstract false) (package (ref: 436)) (superclass (ref: 440))) (FM3.Class (id: 441) (name 'PreprocIfdef') (abstract false) (package (ref: 436)) (superclass (ref: 439))) (FM3.Class (id: 440) (name 'Entity') (abstract false) (package (ref: 436)) (superclass (ref: 3))) (FM3.Class (id: 438) (name 'CFile') (abstract false) (package (ref: 436)) (superclass (ref: 440)) (traits (ref: 13)) (properties (FM3.Property (id: 442) (name 'includes') (class (ref: 438)) (container false) (derived true) (multivalued true) (opposite (ref: 443)) (type (ref: 444))) (FM3.Property (id: 445) (name 'inclusion') (class (ref: 438)) (container false) (derived true) (multivalued true) (opposite (ref: 446)) (type (ref: 444))))) (FM3.Class (id: 447) (name 'PreprocDefine') (abstract false) (package (ref: 436)) (superclass (ref: 439)) (traits (ref: 13))) (FM3.Class (id: 448) (name 'Header') (abstract false) (package (ref: 436)) (superclass (ref: 438))) (FM3.Class (id: 444) (name 'Include') (abstract false) (package (ref: 436)) (superclass (ref: 440)) (traits (ref: 8) (ref: 9) (ref: 11)) (properties (FM3.Property (id: 443) (name 'includedBy') (class (ref: 444)) (container false) (derived false) (multivalued false) (opposite (ref: 442)) (type (ref: 438))) (FM3.Property (id: 446) (name 'included') (class (ref: 444)) (container false) (derived false) (multivalued false) (opposite (ref: 445)) (type (ref: 438))))) (FM3.Class (id: 449) (name 'CPreprocModel') (abstract false) (package (ref: 436)) (superclass (ref: 20))))) (FM3.Package (id: 450) (name 'FamixReplication') (classes (FM3.Class (id: 188) (name 'Replica') (abstract false) (package (ref: 450)) (superclass (ref: 3))) (FM3.Class (id: 451) (name 'ReplicatedFragment') (abstract false) (package (ref: 450)) (superclass (ref: 3))))) (FM3.Package (id: 452) (name 'Famix-CppNew-Entities') (classes (FM3.Class (id: 453) (name 'Namespace') (abstract false) (package (ref: 452)) (superclass (ref: 454)) (traits (ref: 13) (ref: 8) (ref: 335) (ref: 14))) (FM3.Class (id: 455) (name 'Inheritance') (abstract false) (package (ref: 452)) (superclass (ref: 454)) (traits (ref: 201) (ref: 8) (ref: 9) (ref: 11))) (FM3.Class (id: 456) (name 'Method') (abstract false) (package (ref: 452)) (superclass (ref: 454)) (traits (ref: 317) (ref: 13) (ref: 23) (ref: 24) (ref: 25) (ref: 8) (ref: 26) (ref: 232) (ref: 27) (ref: 214) (ref: 309) (ref: 28) (ref: 14) (ref: 303) (ref: 29))) (FM3.Class (id: 457) (name 'CppNewModel') (abstract false) (package (ref: 452)) (superclass (ref: 20))) (FM3.Class (id: 458) (name 'Class') (abstract false) (package (ref: 452)) (superclass (ref: 5)) (traits (ref: 45) (ref: 196) (ref: 13) (ref: 229) (ref: 248) (ref: 12) (ref: 8) (ref: 239) (ref: 43) (ref: 15) (ref: 14) (ref: 249))) (FM3.Class (id: 454) (name 'Entity') (abstract false) (package (ref: 452)) (superclass (ref: 3))) (FM3.Class (id: 459) (name 'ImplicitVar') (abstract false) (package (ref: 452)) (superclass (ref: 454)) (traits (ref: 27) (ref: 217) (ref: 32) (ref: 33) (ref: 13) (ref: 8) (ref: 14)))))) \ No newline at end of file diff --git a/src/ch/akuhn/fame/codegen/CodeGeneration.java b/src/ch/akuhn/fame/codegen/CodeGeneration.java index 89ff552..b0037e4 100644 --- a/src/ch/akuhn/fame/codegen/CodeGeneration.java +++ b/src/ch/akuhn/fame/codegen/CodeGeneration.java @@ -325,7 +325,7 @@ private void acceptClass(MetaDescription metaDescription) throws IOException { code.addImport(FameDescription.class); code.addImport(FamePackage.class); - for (FM3Trait t : metaDescription.computeAllTraits()) { + for (FM3Trait t : metaDescription.getTraits()) { code.addImport(packageName(t.getPackage()), t.getName()); } @@ -340,7 +340,7 @@ private void acceptClass(MetaDescription metaDescription) throws IOException { } // Properties from my traits that are not in my own properties Set propertyDescriptionSet = new HashSet<>(); - metaDescription.computeAllTraits().stream() + metaDescription.getTraits().stream() .map(c -> c.getProperties().stream() .filter(traitProperty -> propertyDescriptions.stream().noneMatch(myProperty -> myProperty.getName().equals(traitProperty.getName()))) .collect(Collectors.toList())) diff --git a/src/ch/akuhn/fame/codegen/GenFile.java b/src/ch/akuhn/fame/codegen/GenFile.java index f82eeef..a34b648 100644 --- a/src/ch/akuhn/fame/codegen/GenFile.java +++ b/src/ch/akuhn/fame/codegen/GenFile.java @@ -1,7 +1,5 @@ package ch.akuhn.fame.codegen; -import ch.akuhn.foreach.Collect; - import java.io.IOException; import java.util.Collection; import java.util.TreeSet; diff --git a/src/ch/akuhn/fame/codegen/InterfaceFile.java b/src/ch/akuhn/fame/codegen/InterfaceFile.java index 7b90b4d..31af7cb 100644 --- a/src/ch/akuhn/fame/codegen/InterfaceFile.java +++ b/src/ch/akuhn/fame/codegen/InterfaceFile.java @@ -26,6 +26,13 @@ public InterfaceFile(String myPackage, String name) { super(myPackage, name); } + @Override + public String getTraits() { + if (traits.isEmpty()) + return ""; + return "extends " + String.join(", ", traits); + } + public void generateCode(Appendable stream) throws IOException { Template template = Template.get("Interface"); template.set("PACKAGE", myPackage); @@ -33,8 +40,7 @@ public void generateCode(Appendable stream) throws IOException { template.set("THISTYPE", name); template.set("THISPACKAGE", modelPackagename); template.set("THISNAME", modelClassname); - template - .set("IMPLEMENTS", superName == null ? "" : "extends " + superName); + template.set("IMPLEMENTS", getTraits()); template.set("IMPORTS", getImports()); template.set("FIELDS", getFieldsContentStream().toString()); template.set("METHODS", getBodyContentStream().toString()); diff --git a/test/ch/akuhn/fame/codegen/target/Famix70Codegen.java b/test/ch/akuhn/fame/codegen/target/Famix70Codegen.java index 7739d56..0e3543a 100644 --- a/test/ch/akuhn/fame/codegen/target/Famix70Codegen.java +++ b/test/ch/akuhn/fame/codegen/target/Famix70Codegen.java @@ -30,7 +30,10 @@ import static ch.akuhn.util.Out.puts; public class Famix70Codegen { - + public Famix70Codegen() { + + } + public static void main(String... args) { InputSource input = InputSource.fromResource("ch/unibe/fame/resources/FAMIX70.mse"); MetaRepository fm3 = MetaRepository.createFM3(); diff --git a/test/ch/akuhn/fame/codegen/target/Famix70WithNewCppCodegen.java b/test/ch/akuhn/fame/codegen/target/Famix70WithNewCppCodegen.java new file mode 100644 index 0000000..031192f --- /dev/null +++ b/test/ch/akuhn/fame/codegen/target/Famix70WithNewCppCodegen.java @@ -0,0 +1,47 @@ +// Copyright (c) 2007-2008 University of Bern, Switzerland +// +// Written by Adrian Kuhn +// +// This file is part of 'Fame Code Generation (for Java)'. +// +// 'Fame Code Generation (for Java)' is free software: you can redistribute it +// and/or modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// 'Fame Code Generation (for Java)' is distributed in the hope that it will +// be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +// Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with 'Fame Code Generation (for Java)'. If not, see +// . +// + +package ch.akuhn.fame.codegen.target; + +import ch.akuhn.fame.MetaRepository; +import ch.akuhn.fame.Repository; +import ch.akuhn.fame.codegen.CodeGeneration; +import ch.akuhn.fame.parser.Importer; +import ch.akuhn.fame.parser.InputSource; + +import static ch.akuhn.util.Out.puts; + +public class Famix70WithNewCppCodegen { + + public Famix70WithNewCppCodegen() { } + + public static void main(String... args) { + InputSource input = InputSource.fromResource("ch/unibe/fame/resources/famix70WithNewCpp.mse"); + MetaRepository fm3 = MetaRepository.createFM3(); + Importer builder = new Importer(fm3); + builder.readFrom(input); + Repository famix = builder.getResult(); + CodeGeneration gen = new CodeGeneration("org.moosetechnology.model.famix", "gen", ""); + gen.accept(famix); + puts("done"); + } + +}