首页 > 代码库 > Javac的命令组成
Javac的命令组成
JavacOption定义了几个方法,如下:
public interface JavacOption { OptionKind getKind(); /** Does this option take a (separate) operand? * @return true if this option takes a separate operand */ boolean hasArg(); /** Does argument string match option pattern? * @param arg the command line argument string * @return true if {@code arg} matches this option */ boolean matches(String arg); /** Process an option with an argument. * @param options the accumulated set of analyzed options * @param option the option to be processed * @param arg the arg for the option to be processed * @return true if an error was detected */ boolean process(Options options, String option, String arg); /** Process the option with no argument. * @param options the accumulated set of analyzed options * @param option the option to be processed * @return true if an error was detected */ boolean process(Options options, String option); OptionName getName(); // ... }
Option实现了JavacOption接口,如下:
Javac的命令组成
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。