createFields(node); convertCommExps((SIRFilter)node.contents); calculateItems((SIRFilter)node.contents); rawInitSchedFunction(node); rawSteadySchedFunction(node);
System.out.print("Generating Raw Code: " + node.contents.getName() + " "); SIRFilter filter = (SIRFilter)node.contents;  LocalVariables localVariables = new LocalVariables();  JBlock block = new JBlock(null, new JStatement[0], null); calculateItems(filter);  if (isSimple(filter)) System.out.print("(simple) "); else if (noBuffer(filter)) System.out.print("(no buffer) "); else { if (remaining > 0) System.out.print("(remaining) "); if (filter.getPeekInt() > filter.getPopInt()) System.out.print("(peeking)");  } System.out.println();  createLocalVariables(node, block, localVariables); convertCommExps(filter, isSimple(filter), localVariables);  rawMainFunction(node, block, localVariables);   JMethodDeclaration rawMainFunct = new JMethodDeclaration(null, at.dms.kjc.Constants.ACC_PUBLIC, CStdType.Void, rawMain, JFormalParameter.EMPTY, CClassType.EMPTY, block, null, null); filter.addMethod(rawMainFunct);
    public void visitNode(FlatNode node)     {	if (node.isFilter()){	    createFields(node);	    convertCommExps((SIRFilter)node.contents);	    calculateItems((SIRFilter)node.contents);	    rawInitSchedFunction(node);	    rawSteadySchedFunction(node);	}    } 