package de.dhbwstuttgart.strucTypes4.syntaxtree;

import de.dhbwstuttgart.strucTypes4.typeVars.TypeVarAbstract;

import java.util.List;

/**
 * Created by sebastian on 09.04.17.
 */
public class MethodInterface {

    String name;
    TypeVarAbstract rtType;
    List<TypeVarAbstract> argsTypes;


    public MethodInterface(String name, TypeVarAbstract rtType, List<TypeVarAbstract> argsTypes) {
        this.name = name;
        this.rtType = rtType;
        this.argsTypes = argsTypes;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public TypeVarAbstract getRtType() {
        return rtType;
    }

    public void setRtType(TypeVarAbstract rtType) {
        this.rtType = rtType;
    }

    public List<TypeVarAbstract> getArgsTypes() {
        return argsTypes;
    }

    public void setArgsTypes(List<TypeVarAbstract> argsTypes) {
        this.argsTypes = argsTypes;
    }

    @Override
    public String toString() {
        return String.format("  %s %s ( %s ); " , rtType, name, argsTypes.toString());
    }
}
