for (int i = 0; i < filter.getFields().length; i++) fields.add(filter.getFields()[i]);
    public void initTasks(Vector fields, Vector functions,			  JBlock initFunctionCalls, JBlock main)     {	//add helper functions	for (int i = 0; i < filter.getMethods().length; i++) {	    if (filter.getMethods()[i] != filter.getInit() &&		filter.getMethods()[i] != filter.getWork())		functions.add(filter.getMethods()[i]);	}		//add init function	if (filter.getInit() != null)	    functions.add(filter.getInit());		//add fields 	for (int i = 0; i < filter.getFields().length; i++) 	    fields.add(filter.getFields()[i]);		//add call to the init function to the init block	initFunctionCalls.addStatement(new JExpressionStatement				       (null, 					new JMethodCallExpression					(null, new JThisExpression(null),					 filter.getInit().getName(), new JExpression[0]),					null));		//if this buffer peeks add the declaration for the peek buffer	//to the main function	JStatement peekBufDecl = getPeekBufDecl();	if (peekBufDecl != null) 	    main.addStatementFirst(peekBufDecl);    }