com.sun.tools.javac.comp
public class: AttrContext [javadoc |
source]
java.lang.Object
com.sun.tools.javac.comp.AttrContext
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 supported API.
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 |
---|
Scope | scope | The scope of local symbols. |
int | staticLevel | The number of enclosing `static' modifiers. |
boolean | isSelfCall | Is this an environment for a this(...) or super(...) call? |
boolean | selectSuper | Are we evaluating the selector of a `super' or type name? |
boolean | varArgs | Are arguments to current function applications boxed into an array for varargs? |
List<Type> | tvars | A list of type variables that are all-quantifed in current context. |
Lint | lint | A record of the lint/SuppressWarnings currently in effect |
Symbol | enclVar | The variable whose initializer is being attributed
useful for detecting self-references in variable initializers |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from com.sun.tools.javac.comp.AttrContext Detail: |
AttrContext dup() {
return dup(scope);
}
Duplicate this context, copying all fields. |
AttrContext dup(Scope scope) {
AttrContext info = new AttrContext();
info.scope = scope;
info.staticLevel = staticLevel;
info.isSelfCall = isSelfCall;
info.selectSuper = selectSuper;
info.varArgs = varArgs;
info.tvars = tvars;
info.lint = lint;
info.enclVar = enclVar;
return info;
}
Duplicate this context, replacing scope field and copying all others. |
public Iterable<Symbol> getLocalElements() {
if (scope == null)
return List.nil();
return scope.getElements();
}
|
public String toString() {
return "AttrContext[" + scope.toString() + "]";
}
|