com.sun.tools.apt.mirror
Class AptEnv

java.lang.Object
  extended by com.sun.tools.apt.mirror.AptEnv

public class AptEnv
extends java.lang.Object

The environment for a run of apt.


Field Summary
private static Context.Key<AptEnv> aptEnvKey
           
 Attr attr
           
 DeclarationMaker declMaker
           
 Enter enter
           
 Types jctypes
           
 Names names
           
 Symtab symtab
           
 TypeMaker typeMaker
           
 
Constructor Summary
private AptEnv(Context context)
           
 
Method Summary
private static void complete(Symbol sym)
          Completes a symbol, ignoring completion failures.
static long getFlags(Symbol sym)
          Returns a symbol's flags.
static boolean hasFlag(Symbol sym, long flag)
          Does a symbol have a given flag? Forces symbol completion.
static AptEnv instance(Context context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

names

public Names names

symtab

public Symtab symtab

jctypes

public Types jctypes

enter

public Enter enter

attr

public Attr attr

typeMaker

public TypeMaker typeMaker

declMaker

public DeclarationMaker declMaker

aptEnvKey

private static final Context.Key<AptEnv> aptEnvKey
Constructor Detail

AptEnv

private AptEnv(Context context)
Method Detail

instance

public static AptEnv instance(Context context)

hasFlag

public static boolean hasFlag(Symbol sym,
                              long flag)
Does a symbol have a given flag? Forces symbol completion.


getFlags

public static long getFlags(Symbol sym)
Returns a symbol's flags. Forces completion.


complete

private static void complete(Symbol sym)
Completes a symbol, ignoring completion failures.