码迷,mamicode.com
首页 > 编程语言 > 详细

Javac的命令组成

时间:2017-05-19 23:45:03      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:div   命令   方法   code   family   sarg   string   pat   opera   

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的命令组成

标签:div   命令   方法   code   family   sarg   string   pat   opera   

原文地址:http://www.cnblogs.com/extjs4/p/6880549.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!