com.sun.tools.javac.comp
Class Annotate

java.lang.Object
  extended by com.sun.tools.javac.comp.Annotate

public class Annotate
extends java.lang.Object

Enter annotations on symbols. Annotations accumulate in a queue, which is processed at the top level of any set of recursive calls requesting it be processed.

This is NOT part of any API supported by Sun Microsystems. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.


Nested Class Summary
static interface Annotate.Annotator
          A client that has annotations to add registers an annotator, the method it will use to add the annotation.
 
Field Summary
protected static Context.Key<Annotate> annotateKey
           
(package private)  Attr attr
           
(package private)  ConstFold cfolder
           
(package private)  Check chk
           
private  int enterCount
           
(package private)  Log log
           
(package private)  TreeMaker make
           
(package private)  Names names
           
(package private)  ListBuffer<Annotate.Annotator> q
           
(package private)  Resolve rs
           
(package private)  Symtab syms
           
(package private)  Types types
           
 
Constructor Summary
protected Annotate(Context context)
           
 
Method Summary
 void earlier(Annotate.Annotator a)
           
(package private)  Attribute.Compound enterAnnotation(JCTree.JCAnnotation a, Type expected, Env<AttrContext> env)
          Process a single compound annotation, returning its Attribute.
(package private)  Attribute enterAttributeValue(Type expected, JCTree.JCExpression tree, Env<AttrContext> env)
           
 void enterDone()
          Called after the Enter phase completes.
 void enterStart()
          Called when the Enter phase starts.
 void flush()
           
static Annotate instance(Context context)
           
 void later(Annotate.Annotator a)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

annotateKey

protected static final Context.Key<Annotate> annotateKey

attr

final Attr attr

make

final TreeMaker make

log

final Log log

syms

final Symtab syms

names

final Names names

rs

final Resolve rs

types

final Types types

cfolder

final ConstFold cfolder

chk

final Check chk

enterCount

private int enterCount

q

ListBuffer<Annotate.Annotator> q
Constructor Detail

Annotate

protected Annotate(Context context)
Method Detail

instance

public static Annotate instance(Context context)

later

public void later(Annotate.Annotator a)

earlier

public void earlier(Annotate.Annotator a)

enterStart

public void enterStart()
Called when the Enter phase starts.


enterDone

public void enterDone()
Called after the Enter phase completes.


flush

public void flush()

enterAnnotation

Attribute.Compound enterAnnotation(JCTree.JCAnnotation a,
                                   Type expected,
                                   Env<AttrContext> env)
Process a single compound annotation, returning its Attribute. Used from MemberEnter for attaching the attributes to the annotated symbol.


enterAttributeValue

Attribute enterAttributeValue(Type expected,
                              JCTree.JCExpression tree,
                              Env<AttrContext> env)