Top Description Fields Constructors Methods
com.sun.tools.javac.comp

public Class AttrContext

extends Object
Class Inheritance
Imports
com.sun.tools.javac.tree.JCTree, com.sun.tools.javac.util.*, com.sun.tools.javac.code.*, .Scope.WriteableScope, com.sun.tools.javac.comp.DeferredAttr.AttributionMode

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

Modifier and TypeField and Description
pack-priv boolean
allowProtectedAccess

Indicate protected access should be unconditionally allowed.

pack-priv DeferredAttr.AttributionMode
attributionMode

Is this a speculative attribution environment?

pack-priv boolean
ctorPrologue

Are we in the 'prologue' part of a constructor, prior to an explicit this()/super()?

pack-priv Type
defaultSuperCallSite

Symbol corresponding to the site of a qualified default super call

pack-priv Symbol
enclVar

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

pack-priv boolean
isAnonymousDiamond

Is this an attribution environment for an anonymous class instantiated using <> ?

pack-priv boolean
isLambda

Is this a lambda environment?

pack-priv boolean
isNewClass

Is this an attribution environment for an instance creation expression?

pack-priv boolean
isSerializable

Is the current target of lambda expression or method reference serializable or is this a serializable class?

pack-priv boolean
isSerializableLambda

Is this a serializable lambda?

pack-priv Lint
lint

A record of the lint/SuppressWarnings currently in effect

pack-priv Resolve.MethodResolutionPhase
pendingResolutionPhase

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

pack-priv JCTree
preferredTreeForDiagnostics

Tree that when non null, is to be preferentially used in diagnostics.

pack-priv Attr.ResultInfo
returnResult

ResultInfo to be used for attributing 'return' statement expressions (set by Attr.visitMethod and Attr.visitLambda)

pack-priv Scope.WriteableScope
scope

The scope of local symbols.

pack-priv boolean
selectSuper

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

pack-priv int
staticLevel

The number of enclosing `static' modifiers.

pack-priv boolean
visitingServiceImplementation

Indicate if the type being visited is a service implementation

pack-priv Attr.ResultInfo
yieldResult

ResultInfo to be used for attributing 'yield' statement expressions (set by Attr.visitSwitchExpression)

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv AttrContext
dup(Scope.WriteableScope scope)

Duplicate this context, replacing scope field and copying all others.

pack-priv AttrContext
dup()

Duplicate this context, copying all fields.

public Iterable<Symbol>
pack-priv boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

allowProtectedAccessback to summary
pack-priv boolean allowProtectedAccess

Indicate protected access should be unconditionally allowed.

attributionModeback to summary
pack-priv DeferredAttr.AttributionMode attributionMode

Is this a speculative attribution environment?

ctorPrologueback to summary
pack-priv boolean ctorPrologue

Are we in the 'prologue' part of a constructor, prior to an explicit this()/super()?

defaultSuperCallSiteback to summary
pack-priv Type defaultSuperCallSite

Symbol corresponding to the site of a qualified default super call

enclVarback to summary
pack-priv Symbol enclVar

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

isAnonymousDiamondback to summary
pack-priv boolean isAnonymousDiamond

Is this an attribution environment for an anonymous class instantiated using <> ?

isLambdaback to summary
pack-priv boolean isLambda

Is this a lambda environment?

isNewClassback to summary
pack-priv boolean isNewClass

Is this an attribution environment for an instance creation expression?

isSerializableback to summary
pack-priv boolean isSerializable

Is the current target of lambda expression or method reference serializable or is this a serializable class?

isSerializableLambdaback to summary
pack-priv boolean isSerializableLambda

Is this a serializable lambda?

lintback to summary
pack-priv Lint lint

A record of the lint/SuppressWarnings currently in effect

pendingResolutionPhaseback to summary
pack-priv Resolve.MethodResolutionPhase pendingResolutionPhase

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

preferredTreeForDiagnosticsback to summary
pack-priv JCTree preferredTreeForDiagnostics

Tree that when non null, is to be preferentially used in diagnostics. Usually Env.tree is the tree to be referred to in messages, but this may not be true during the window a method is looked up in enclosing contexts (JDK-8145466)

returnResultback to summary
pack-priv Attr.ResultInfo returnResult

ResultInfo to be used for attributing 'return' statement expressions (set by Attr.visitMethod and Attr.visitLambda)

scopeback to summary
pack-priv Scope.WriteableScope scope

The scope of local symbols.

selectSuperback to summary
pack-priv boolean selectSuper

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

staticLevelback to summary
pack-priv int staticLevel

The number of enclosing `static' modifiers.

visitingServiceImplementationback to summary
pack-priv boolean visitingServiceImplementation

Indicate if the type being visited is a service implementation

yieldResultback to summary
pack-priv Attr.ResultInfo yieldResult

ResultInfo to be used for attributing 'yield' statement expressions (set by Attr.visitSwitchExpression)

Constructor Detail

AttrContextback to summary
public AttrContext()

Method Detail

dupback to summary
pack-priv AttrContext dup(Scope.WriteableScope scope)

Duplicate this context, replacing scope field and copying all others.

dupback to summary
pack-priv AttrContext dup()

Duplicate this context, copying all fields.

getLocalElementsback to summary
public Iterable<Symbol> getLocalElements()
lastResolveVarargsback to summary
pack-priv boolean lastResolveVarargs()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override