DEBUG.P("options="+options);
//注意:在上面的sharedCompiler = new Main("javac", silent)时
//已进行了Main.recognizedOptions的初始化,调用getOption(name)是
//从Main.recognizedOptions中取出与name相关的JavacOption
JavacOption option = sharedCompiler.getOption(name);
if (option == null || !match(kind, option.getKind()))
throw new IllegalArgumentException(name);
if ((args.length != 0) != option.hasArg())
throw new IllegalArgumentException(name);
if (option.hasArg()) {
if (option.process(null, name, arg)) // FIXME
throw new IllegalArgumentException(name);
} else {
if (option.process(null, name)) // FIXME
throw new IllegalArgumentException(name);
}
options.add(new Pair<String,String>(name,arg));
} finally {