/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package IntermediaryCode;

import API.Instruction;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Eugenio
 */
class Filtros {

    protected Code code;

    void filtrar(Code code) throws Exception {
        this.code = code;
        exec();
    }

    protected void exec() throws Exception {
//        HashMap<String, ArrayList<Registro>> blocos = code.getBlock();
//        try {
//            for (Map.Entry<String, ArrayList<Registro>> entry : blocos.entrySet()) {
//                ArrayList<Registro> bloco = entry.getValue();
//                tratarBloco(bloco);
//            }
//        } catch (Exception e) {
//            System.out.println("[ErrorFiltro]" + e.getMessage());
//            e.printStackTrace();
//            throw e;
//        }
    }

    protected void tratarBloco(ArrayList<Instruction> bloco) {

    }

}
