Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions gen/org/moosetechnology/model/famix/famix/AbstractFileAnchor.java
Original file line number Diff line number Diff line change
@@ -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!");
}



}

266 changes: 266 additions & 0 deletions gen/org/moosetechnology/model/famix/famix/Access.java
Original file line number Diff line number Diff line change
@@ -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<TComment> 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<TComment> getComments() {
if (comments == null) {
comments = new MultivalueSet<TComment>() {
@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<? extends TComment> 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<? extends TComment> 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);
}



}

Loading