org.aspectj.org.eclipse.jdt.internal.compiler.apt.dispatch
Class BaseProcessingEnvImpl

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.compiler.apt.dispatch.BaseProcessingEnvImpl
All Implemented Interfaces:
javax.annotation.processing.ProcessingEnvironment
Direct Known Subclasses:
BatchProcessingEnvImpl

public abstract class BaseProcessingEnvImpl
extends java.lang.Object
implements javax.annotation.processing.ProcessingEnvironment

Implementation of ProcessingEnvironment that is common to batch and IDE environments.


Field Summary
protected  Compiler _compiler
           
protected  javax.lang.model.util.Elements _elementUtils
           
protected  javax.annotation.processing.Filer _filer
           
protected  javax.annotation.processing.Messager _messager
           
protected  java.util.Map<java.lang.String,java.lang.String> _processorOptions
           
protected  javax.lang.model.util.Types _typeUtils
           
 
Constructor Summary
BaseProcessingEnvImpl()
           
 
Method Summary
 void addNewClassFile(ReferenceBinding binding)
           
 void addNewUnit(ICompilationUnit unit)
           
 boolean errorRaised()
          Has an error been raised in any of the rounds of processing in this build?
 Compiler getCompiler()
           
 ICompilationUnit[] getDeletedUnits()
           
 javax.lang.model.util.Elements getElementUtils()
           
 Factory getFactory()
           
 javax.annotation.processing.Filer getFiler()
           
 LookupEnvironment getLookupEnvironment()
           
 javax.annotation.processing.Messager getMessager()
           
 ReferenceBinding[] getNewClassFiles()
           
 ICompilationUnit[] getNewUnits()
           
 java.util.Map<java.lang.String,java.lang.String> getOptions()
           
 javax.lang.model.SourceVersion getSourceVersion()
           
 javax.lang.model.util.Types getTypeUtils()
           
 void reset()
          Called when AnnotationProcessorManager has retrieved the list of newly generated compilation units (ie, once per round)
 void setErrorRaised(boolean b)
          Set or clear the errorRaised flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.annotation.processing.ProcessingEnvironment
getLocale
 

Field Detail

_filer

protected javax.annotation.processing.Filer _filer

_messager

protected javax.annotation.processing.Messager _messager

_processorOptions

protected java.util.Map<java.lang.String,java.lang.String> _processorOptions

_compiler

protected Compiler _compiler

_elementUtils

protected javax.lang.model.util.Elements _elementUtils

_typeUtils

protected javax.lang.model.util.Types _typeUtils
Constructor Detail

BaseProcessingEnvImpl

public BaseProcessingEnvImpl()
Method Detail

addNewUnit

public void addNewUnit(ICompilationUnit unit)

addNewClassFile

public void addNewClassFile(ReferenceBinding binding)

getCompiler

public Compiler getCompiler()

getDeletedUnits

public ICompilationUnit[] getDeletedUnits()

getNewUnits

public ICompilationUnit[] getNewUnits()

getElementUtils

public javax.lang.model.util.Elements getElementUtils()
Specified by:
getElementUtils in interface javax.annotation.processing.ProcessingEnvironment

getFiler

public javax.annotation.processing.Filer getFiler()
Specified by:
getFiler in interface javax.annotation.processing.ProcessingEnvironment

getMessager

public javax.annotation.processing.Messager getMessager()
Specified by:
getMessager in interface javax.annotation.processing.ProcessingEnvironment

getOptions

public java.util.Map<java.lang.String,java.lang.String> getOptions()
Specified by:
getOptions in interface javax.annotation.processing.ProcessingEnvironment

getTypeUtils

public javax.lang.model.util.Types getTypeUtils()
Specified by:
getTypeUtils in interface javax.annotation.processing.ProcessingEnvironment

getLookupEnvironment

public LookupEnvironment getLookupEnvironment()

getSourceVersion

public javax.lang.model.SourceVersion getSourceVersion()
Specified by:
getSourceVersion in interface javax.annotation.processing.ProcessingEnvironment

reset

public void reset()
Called when AnnotationProcessorManager has retrieved the list of newly generated compilation units (ie, once per round)


errorRaised

public boolean errorRaised()
Has an error been raised in any of the rounds of processing in this build?

Returns:

setErrorRaised

public void setErrorRaised(boolean b)
Set or clear the errorRaised flag. Typically this will be set by the Messager when an error has been raised, and it will never be cleared.


getFactory

public Factory getFactory()

getNewClassFiles

public ReferenceBinding[] getNewClassFiles()