package de.dhbwstuttgart.strucTypes4.syntaxtree;

import de.dhbwstuttgart.strucTypes4.algo.ConstraintGleich;
import de.dhbwstuttgart.strucTypes4.typeVars.TypeVarStore;

import java.util.List;

/**
 * Created by sebastian on 07.04.17.
 */
public class ExprField extends ExpressionAbstract {

    String nameField;


    public List<ConstraintGleich> typeExpr(  ) {
        return null;
    }


    public ExprField(String nameField) {
        this.nameField = nameField;
    }

    public String getNameField() {
        return nameField;
    }

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

    @Override
    public String toString() {
        return "." + nameField;
    }


    @Override
    public String toCodeTyped(TypeVarStore typeVarStore) {
        return "." + nameField;
    }
}
