//-*-java-*- /* * Public Methods */ Weaver { public static Vector weave(String[] args) throws ParseException {{ /* * Updates internal weaver state - does no code generation. */ // parse input files args = processFlags(args); if(args.length == 0) { parsed_input = new Weaver[1]; try { parsed_input[0] = Weaver.parse(System.in); } catch(ParseException e) { Err.err("Trouble parsing System.in:"); throw e; } args = new String[1]; args[0] = "System.in"; } else try { parsed_input = new Weaver[args.length]; for(int i=0;i AddClass AddClass -> AddClassName Weaver -> AddInterface AddInterface -> InterfaceName } source: Weaver target: {AddClassName,InterfaceName} { {{Vector ret = new Vector();}} before {AddClassName,InterfaceName} {{ ret.addElement(new File(Weaver.outputdir, host.toString() + ".java")); }} return {{ ret}} } }