Class FieldBinding
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.VariableBinding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.FieldBinding
- Direct Known Subclasses:
InlineAccessFieldBinding, InterTypeFieldBinding, ParameterizedFieldBinding, PrivilegedFieldBinding, ProblemFieldBinding, SyntheticFieldBinding
-
Field Summary
FieldsModifier and TypeFieldDescriptionintFields inherited from class Binding
ANY_EXCEPTION, ARRAY_TYPE, BASE_TYPE, DefaultLocationArrayContents, DefaultLocationField, DefaultLocationParameter, DefaultLocationRecordComponent, DefaultLocationReturnType, DefaultLocationsForTrueValue, DefaultLocationTypeArgument, DefaultLocationTypeBound, DefaultLocationTypeParameter, extendedTagBits, FIELD, GENERIC_TYPE, IMPORT, INTERSECTION_TYPE, INTERSECTION_TYPE18, LOCAL, METHOD, MODULE, NO_ANNOTATIONS, NO_COMPONENTS, NO_ELEMENT_VALUE_PAIRS, NO_EXCEPTIONS, NO_FIELDS, NO_MEMBER_TYPES, NO_METHODS, NO_MODULES, NO_NULL_DEFAULT, NO_PACKAGES, NO_PARAMETER_NAMES, NO_PARAMETERS, NO_PERMITTED_TYPES, NO_PLAIN_PACKAGES, NO_REFERENCE_TYPES, NO_SUPERINTERFACES, NO_TYPE_VARIABLES, NO_TYPES, NULL_UNSPECIFIED_BY_DEFAULT, NullnessDefaultMASK, PACKAGE, PARAMETERIZED_TYPE, PATTERN, POLY_TYPE, RAW_TYPE, RECORD_COMPONENT, tagBits, TYPE, TYPE_PARAMETER, TYPE_USE, UNINITIALIZED_FIELDS, UNINITIALIZED_METHODS, UNINITIALIZED_REFERENCE_TYPES, VARIABLE, WILDCARD_TYPE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFieldBinding(char[] name, TypeBinding type, int modifiers, ReferenceBinding declaringClass, Constant constant) FieldBinding(FieldDeclaration field, TypeBinding type, int modifiers, ReferenceBinding declaringClass) FieldBinding(FieldBinding initialFieldBinding, ReferenceBinding declaringClass) -
Method Summary
Modifier and TypeMethodDescriptionbooleanalwaysNeedsAccessMethod(boolean isReadAccess) final booleancanBeSeenBy(PackageBinding invocationPackage) booleancanBeSeenBy(TypeBinding receiverType, InvocationSite invocationSite, Scope scope) char[]computeUniqueKey(boolean isLeaf) constant()Call this variant during resolve / analyse, so we can handle the case when a tentative lambda resolve triggers resolving of outside code.findPrivilegedBinding(SourceTypeBinding invocationType, ASTNode location) char[]X<T> t --> LX<TT;>;final intgetAccessMethod(boolean isReadAccess) longCompute the tagbits for standard annotations.getVisibleBinding(TypeBinding receiverType, InvocationSite invocationSite, Scope scope) final booleanfinal booleanfinal booleanfinal booleanbooleanfinal booleanfinal booleanfinal booleanisUsed()final booleanfinal booleanfinal booleanfinal intkind()original()Returns the original field (as opposed to parameterized instances)voidsetAnnotations(AnnotationBinding[] annotations, boolean forceStore) Methods inherited from class VariableBinding
clearEffectiveFinality, fillInDefaultNonNullness, isBlankFinal, isDeprecated, isEffectivelyFinal, isFinal, isNonNull, isNullable, isPublic, isStatic, readableName, setConstant, toStringMethods inherited from class Binding
computeUniqueKey, initializeDeprecatedAnnotationTagBits, isAnnotationType, isParameter, isPatternVariable, isTaggedRepeatable, isValid, isValidBinding, problemId, setAnnotations, shortReadableName
-
Field Details
-
declaringClass
-
compoundUseFlag
public int compoundUseFlag -
closeTracker
-
binaryPreviewAnnotation
-
-
Constructor Details
-
FieldBinding
protected FieldBinding() -
FieldBinding
public FieldBinding(char[] name, TypeBinding type, int modifiers, ReferenceBinding declaringClass, Constant constant) -
FieldBinding
-
FieldBinding
public FieldBinding(FieldDeclaration field, TypeBinding type, int modifiers, ReferenceBinding declaringClass)
-
-
Method Details
-
canBeSeenBy
-
canBeSeenBy
-
computeUniqueKey
public char[] computeUniqueKey(boolean isLeaf) - Overrides:
computeUniqueKeyin classBinding
-
constant
- Overrides:
constantin classVariableBinding
-
constant
Description copied from class:VariableBindingCall this variant during resolve / analyse, so we can handle the case when a tentative lambda resolve triggers resolving of outside code.- Overrides:
constantin classVariableBinding
-
genericSignature
public char[] genericSignature()X<T> t --> LX<TT;>; -
getAccessFlags
public final int getAccessFlags() -
getAnnotations
- Specified by:
getAnnotationsin classVariableBinding
-
getAnnotationTagBits
public long getAnnotationTagBits()Compute the tagbits for standard annotations. For source types, these could require lazily resolving corresponding annotation nodes, in case of forward references.- Overrides:
getAnnotationTagBitsin classBinding- See Also:
-
getDeclaringClass
- Overrides:
getDeclaringClassin classVariableBinding
-
isDefault
public final boolean isDefault() -
isPrivate
public final boolean isPrivate() -
isOrEnclosedByPrivateType
public final boolean isOrEnclosedByPrivateType() -
isProtected
public final boolean isProtected() -
isSynthetic
public final boolean isSynthetic() -
isTransient
public final boolean isTransient() -
isUsed
public final boolean isUsed() -
isUsedOnlyInCompound
public final boolean isUsedOnlyInCompound() -
isViewedAsDeprecated
public final boolean isViewedAsDeprecated() -
isVolatile
public final boolean isVolatile()- Overrides:
isVolatilein classBinding
-
kind
-
isRecordComponent
public boolean isRecordComponent() -
original
Returns the original field (as opposed to parameterized instances) -
setAnnotations
- Overrides:
setAnnotationsin classBinding
-
sourceField
-
alwaysNeedsAccessMethod
public boolean alwaysNeedsAccessMethod(boolean isReadAccess) -
getAccessMethod
-
getFieldBindingForLookup
-
getVisibleBinding
public FieldBinding getVisibleBinding(TypeBinding receiverType, InvocationSite invocationSite, Scope scope) -
findPrivilegedBinding
-