Filtros.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package IntermediaryCode;
  7. import common.Code;
  8. import common.Instruction;
  9. import java.util.ArrayList;
  10. import java.util.HashMap;
  11. import java.util.Map;
  12. /**
  13. *
  14. * @author Eugenio
  15. */
  16. class Filtros {
  17. protected Code code;
  18. void filtrar(Code code) throws Exception {
  19. this.code = code;
  20. exec();
  21. }
  22. protected void exec() throws Exception {
  23. // HashMap<String, ArrayList<Registro>> blocos = code.getBlock();
  24. // try {
  25. // for (Map.Entry<String, ArrayList<Registro>> entry : blocos.entrySet()) {
  26. // ArrayList<Registro> bloco = entry.getValue();
  27. // tratarBloco(bloco);
  28. // }
  29. // } catch (Exception e) {
  30. // System.out.println("[ErrorFiltro]" + e.getMessage());
  31. // e.printStackTrace();
  32. // throw e;
  33. // }
  34. }
  35. protected void tratarBloco(ArrayList<Instruction> bloco) {
  36. }
  37. }