Eclipse JDT
Release 3.3

org.eclipse.jdt.apt.core.env
Class EnvironmentFactory

java.lang.Object
  extended by org.eclipse.jdt.apt.core.env.EnvironmentFactory

public class EnvironmentFactory
extends Object


Constructor Summary
EnvironmentFactory()
           
 
Method Summary
static AnnotationProcessorEnvironment getEnvironment(ICompilationUnit compilationUnit, IJavaProject javaProject)
          Return a processor environment for use outside of building or reconciling.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvironmentFactory

public EnvironmentFactory()
Method Detail

getEnvironment

public static AnnotationProcessorEnvironment getEnvironment(ICompilationUnit compilationUnit,
                                                            IJavaProject javaProject)
Return a processor environment for use outside of building or reconciling. Note that this environment does NOT support the Filer or Messager API, as it is to be used to perform type system navigation, not building.

If either getFiler() or getMessager() are called, this environment will throw an UnsupportedOperationException.

Parameters:
compilationUnit - the working copy for which the Environment object is to be created
javaProject - the java project that the working copy is in.
Returns:
the created environment.

Eclipse JDT
Release 3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.