langtools/src/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java
changeset 8031 d5fe2c1cecfc
parent 7076 c96fa26247c8
child 8032 e1aa25ccdabb
equal deleted inserted replaced
7848:884a6d60b235 8031:d5fe2c1cecfc
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    47 import javax.tools.JavaFileManager;
    47 import javax.tools.JavaFileManager;
    48 import javax.tools.StandardJavaFileManager;
    48 import javax.tools.StandardJavaFileManager;
    49 import javax.tools.JavaFileObject;
    49 import javax.tools.JavaFileObject;
    50 import javax.tools.DiagnosticListener;
    50 import javax.tools.DiagnosticListener;
    51 
    51 
    52 //308 import com.sun.source.util.AbstractTypeProcessor;
       
    53 import com.sun.source.util.TaskEvent;
    52 import com.sun.source.util.TaskEvent;
    54 import com.sun.source.util.TaskListener;
    53 import com.sun.source.util.TaskListener;
    55 import com.sun.tools.javac.api.JavacTaskImpl;
    54 import com.sun.tools.javac.api.JavacTaskImpl;
    56 import com.sun.tools.javac.api.JavacTrees;
    55 import com.sun.tools.javac.api.JavacTrees;
    57 import com.sun.tools.javac.code.*;
    56 import com.sun.tools.javac.code.*;
   710                         typeElements.add(te);
   709                         typeElements.add(te);
   711                 }
   710                 }
   712             }
   711             }
   713 
   712 
   714             if (matchedNames.size() > 0 || ps.contributed) {
   713             if (matchedNames.size() > 0 || ps.contributed) {
   715 //308                foundTypeProcessors = foundTypeProcessors || (ps.processor instanceof AbstractTypeProcessor);
       
   716                 boolean processingResult = callProcessor(ps.processor, typeElements, renv);
   714                 boolean processingResult = callProcessor(ps.processor, typeElements, renv);
   717                 ps.contributed = true;
   715                 ps.contributed = true;
   718                 ps.removeSupportedOptions(unmatchedProcessorOptions);
   716                 ps.removeSupportedOptions(unmatchedProcessorOptions);
   719 
   717 
   720                 if (printProcessorInfo || verbose) {
   718                 if (printProcessorInfo || verbose) {