Package com.sun.tools.javac.util

Examples of com.sun.tools.javac.util.Options.lint()


    protected Lint(Context context) {
        // initialize values according to the lint options
        Options options = Options.instance(context);
        values = EnumSet.noneOf(LintCategory.class);
        for (Map.Entry<String, LintCategory> e: map.entrySet()) {
            if (options.lint(e.getKey()))
                values.add(e.getValue());
        }

        suppressedValues = EnumSet.noneOf(LintCategory.class);
View Full Code Here


    protected Lint(Context context) {
  // initialize values according to the lint options
  Options options = Options.instance(context);
  values = EnumSet.noneOf(LintCategory.class);
  for (Map.Entry<String, LintCategory> e: map.entrySet()) {
      if (options.lint(e.getKey()))
    values.add(e.getValue());
  }

  suppressedValues = EnumSet.noneOf(LintCategory.class);
View Full Code Here

   
    //注:map是static的,它的值已在构造枚举类LintCategory时加入
    DEBUG.P("map.size()="+map.size());
    DEBUG.P("map="+map);
    for (Map.Entry<String, LintCategory> e: map.entrySet()) {
      if (options.lint(e.getKey()))
        values.add(e.getValue());
    }
    DEBUG.P("values="+values);
    /*如在javac命令行中加入“-Xlint”选项时,表示启用所有的警告(11项)
    map.size()=11
 
View Full Code Here

    protected Lint(Context context) {
        // initialize values according to the lint options
        Options options = Options.instance(context);
        values = EnumSet.noneOf(LintCategory.class);
        for (Map.Entry<String, LintCategory> e: map.entrySet()) {
            if (options.lint(e.getKey()))
                values.add(e.getValue());
        }

        suppressedValues = EnumSet.noneOf(LintCategory.class);
View Full Code Here

    protected Lint(Context context) {
        // initialize values according to the lint options
        Options options = Options.instance(context);
        values = EnumSet.noneOf(LintCategory.class);
        for (Map.Entry<String, LintCategory> e: map.entrySet()) {
            if (options.lint(e.getKey()))
                values.add(e.getValue());
        }

        suppressedValues = EnumSet.noneOf(LintCategory.class);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.