com.sun.tools.javac.comp
Class AttrContext

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

public class AttrContext
extends java.lang.Object

Contains information specific to the attribute and enter passes, to be used in place of the generic field in environments.

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.


Field Summary
(package private)  Symbol enclVar
          The variable whose initializer is being attributed useful for detecting self-references in variable initializers
(package private)  boolean isSelfCall
          Is this an environment for a this(...) or super(...) call?
(package private)  Lint lint
          A record of the lint/SuppressWarnings currently in effect
(package private)  Scope scope
          The scope of local symbols.
(package private)  boolean selectSuper
          Are we evaluating the selector of a `super' or type name?
(package private)  int staticLevel
          The number of enclosing `static' modifiers.
(package private)  List<Type> tvars
          A list of type variables that are all-quantifed in current context.
(package private)  boolean varArgs
          Are arguments to current function applications boxed into an array for varargs?
 
Constructor Summary
AttrContext()
           
 
Method Summary
(package private)  AttrContext dup()
          Duplicate this context, copying all fields.
(package private)  AttrContext dup(Scope scope)
          Duplicate this context, replacing scope field and copying all others.
 java.lang.Iterable<Symbol> getLocalElements()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

scope

Scope scope
The scope of local symbols.


staticLevel

int staticLevel
The number of enclosing `static' modifiers.


isSelfCall

boolean isSelfCall
Is this an environment for a this(...) or super(...) call?


selectSuper

boolean selectSuper
Are we evaluating the selector of a `super' or type name?


varArgs

boolean varArgs
Are arguments to current function applications boxed into an array for varargs?


tvars

List<Type> tvars
A list of type variables that are all-quantifed in current context.


lint

Lint lint
A record of the lint/SuppressWarnings currently in effect


enclVar

Symbol enclVar
The variable whose initializer is being attributed useful for detecting self-references in variable initializers

Constructor Detail

AttrContext

public AttrContext()
Method Detail

dup

AttrContext dup(Scope scope)
Duplicate this context, replacing scope field and copying all others.


dup

AttrContext dup()
Duplicate this context, copying all fields.


getLocalElements

public java.lang.Iterable<Symbol> getLocalElements()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object