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 TypeFieldDescriptionintlongFields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.VariableBinding
constant, id, modifiers, name, tagBits, typeFields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding
ANY_EXCEPTION, ARRAY_TYPE, BASE_TYPE, DefaultLocationArrayContents, DefaultLocationField, DefaultLocationParameter, DefaultLocationReturnType, DefaultLocationsForTrueValue, DefaultLocationTypeArgument, DefaultLocationTypeBound, DefaultLocationTypeParameter, 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, TYPE, TYPE_PARAMETER, TYPE_USE, UNINITIALIZED_COMPONENTS, 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.voidfillInDefaultNonNullness(FieldDeclaration sourceField, Scope scope) 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 booleanfinal booleanfinal booleanisPublic()booleanfinal booleanisStatic()final 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 org.aspectj.org.eclipse.jdt.internal.compiler.lookup.VariableBinding
clearEffectiveFinality, isBlankFinal, isEffectivelyFinal, isFinal, isNonNull, isNullable, readableName, setConstant, toStringMethods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding
computeUniqueKey, initializeDeprecatedAnnotationTagBits, isAnnotationType, isParameter, isPatternVariable, isTaggedRepeatable, isValid, isValidBinding, problemId, setAnnotations, shortReadableName
-
Field Details
-
declaringClass
-
compoundUseFlag
public int compoundUseFlag -
closeTracker
-
extendedTagBits
public long extendedTagBits -
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
-
fillInDefaultNonNullness
-
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:
-
isDefault
public final boolean isDefault() -
isDeprecated
public final boolean isDeprecated() -
isPrivate
public final boolean isPrivate() -
isOrEnclosedByPrivateType
public final boolean isOrEnclosedByPrivateType() -
isProtected
public final boolean isProtected() -
isPublic
public final boolean isPublic() -
isStatic
public final boolean isStatic() -
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
-