org.eclipse.jdt.internal.compiler.apt.dispatch
类 BatchAnnotationProcessorManager

java.lang.Object
  继承者 org.eclipse.jdt.internal.compiler.AbstractAnnotationProcessorManager
      继承者 org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager
          继承者 org.eclipse.jdt.internal.compiler.apt.dispatch.BatchAnnotationProcessorManager
所有已实现的接口:
IProcessorProvider

public class BatchAnnotationProcessorManager
extends BaseAnnotationProcessorManager

Java 6 annotation processor manager used when compiling from the command line or via the javax.tools.JavaCompiler interface.

另请参见:
org.eclipse.jdt.internal.compiler.apt.ide.dispatch.IdeAnnotationProcessorManager

字段摘要
 
从类 org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager 继承的字段
_err, _isFirstRound, _out, _printProcessorInfo, _printRounds, _processingEnv, _processors, _round
 
构造方法摘要
BatchAnnotationProcessorManager()
          Zero-arg constructor so this object can be easily created via reflection.
 
方法摘要
 void configure(Object batchCompiler, String[] commandLineArguments)
          Configure the receiver using the given batch compiler and the given options.
 ProcessorInfo discoverNextProcessor()
          Return the next processor that can be discovered, according to the order and discovery rules of the provider (see, for instance, Processor.
 void reportProcessorException(javax.annotation.processing.Processor p, Exception e)
          Called when a processor throws an exception.
 void setProcessors(Object[] processors)
          Set the processors for annotation processing.
 
从类 org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager 继承的方法
configureFromPlatform, getDeletedUnits, getDiscoveredProcessors, getNewClassFiles, getNewUnits, processAnnotations, reset, setErr, setOut
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

BatchAnnotationProcessorManager

public BatchAnnotationProcessorManager()
Zero-arg constructor so this object can be easily created via reflection. A BatchAnnotationProcessorManager cannot be used until its #configure(Main, String[]) method has been called.

方法详细信息

configure

public void configure(Object batchCompiler,
                      String[] commandLineArguments)
从类 AbstractAnnotationProcessorManager 复制的描述
Configure the receiver using the given batch compiler and the given options. The parameter batchCompiler is expected to be an instance of the batch compiler. This method is only used for the batch mode. For the IDE mode, please see AbstractAnnotationProcessorManager.configureFromPlatform(Compiler, Object, Object).

覆盖:
BaseAnnotationProcessorManager 中的 configure
参数:
batchCompiler - the given batch compiler object
commandLineArguments - the given options

discoverNextProcessor

public ProcessorInfo discoverNextProcessor()
从接口 IProcessorProvider 复制的描述
Return the next processor that can be discovered, according to the order and discovery rules of the provider (see, for instance, Processor.

返回:
a ProcessorInfo wrapping an initialized Processor, or null if there are no more processors to be discovered.

reportProcessorException

public void reportProcessorException(javax.annotation.processing.Processor p,
                                     Exception e)
从接口 IProcessorProvider 复制的描述
Called when a processor throws an exception. This may abort compilation, throw an unchecked exception, etc; the caller should not assume that this method will return.

参数:
p - the processor, if known, or null if not.

setProcessors

public void setProcessors(Object[] processors)
从类 AbstractAnnotationProcessorManager 复制的描述
Set the processors for annotation processing.

覆盖:
BaseAnnotationProcessorManager 中的 setProcessors
参数:
processors - the given processors


Copyright © 2013. All Rights Reserved.