public void caseAProd(AProd node) { AElem[] temp = (AElem[]) node.getProdTransform().toArray(new AElem[0]); Object[] list_alts = node.getAlts().toArray(); for (int j = 0; j < list_alts.length; j++) { ((PAlt) list_alts[j]).apply(this); } }