package de.dhbwstuttgart.strucTypes4.algo;

import de.dhbwstuttgart.strucTypes4.typeVars.TypeVarAbstract;

/**
 * Created by sebastian on 09.04.17.
 */
public class ConstraintField extends ConstraintAbstract {

    TypeVarAbstract receiver;
    String nameField;
    TypeVarAbstract caller;

    public ConstraintField(TypeVarAbstract receiver, String nameField, TypeVarAbstract caller) {
        this.receiver = receiver;
        this.nameField = nameField;
        this.caller = caller;
    }

    public TypeVarAbstract getReceiver() {
        return receiver;
    }

    public void setReceiver(TypeVarAbstract receiver) {
        this.receiver = receiver;
    }

    public String getNameField() {
        return nameField;
    }

    public void setNameField(String nameField) {
        this.nameField = nameField;
    }

    public TypeVarAbstract getCaller() {
        return caller;
    }

    public void setCaller(TypeVarAbstract caller) {
        this.caller = caller;
    }

    @Override
    public String toString() {
        return String.format(" ConstField( %s , %s , %s )   " ,  receiver , nameField ,caller);
    }






}
