package jetbrains.mps.baseLanguage.util.plugin.refactorings;
/*Generated by MPS */
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SLinkOperations;
import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SPropertyOperations;
public class MethodParameterModel {
private SNode myDeclaration;
private String myName;
private int myOrder;
private String myType;
public MethodParameterModel() {
this.myOrder = -1;
this.setTypeName("");
this.setName("");
}
public MethodParameterModel(SNode param, int i) {
this.myDeclaration = param;
this.myOrder = i;
this.setTypeName(SLinkOperations.getTarget(param, MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x450368d90ce15bc3L, 0x4ed4d318133c80ceL, "type")).getPresentation());
this.setName(SPropertyOperations.getString(param, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")));
}
public String getName() {
return this.myName;
}
public void setName(String name) {
this.myName = name;
}
public String getTypeName() {
return this.myType;
}
public void setTypeName(String type) {
this.myType = type;
}
public int getOrder() {
return this.myOrder;
}
public SNode getDeclaration() {
return this.myDeclaration;
}
}