java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.VariableBinding
Direct Known Subclasses:
FieldBinding, LocalVariableBinding, RecordComponentBinding

public abstract class VariableBinding extends Binding
  • Field Details

    • modifiers

      public int modifiers
    • type

      public TypeBinding type
    • name

      public char[] name
    • constant

      protected Constant constant
    • id

      public int id
    • tagBits

      public long tagBits
  • Constructor Details

    • VariableBinding

      public VariableBinding(char[] name, TypeBinding type, int modifiers, Constant constant)
  • Method Details

    • constant

      public Constant constant()
    • constant

      public Constant constant(Scope scope)
      Call this variant during resolve / analyse, so we can handle the case when a tentative lambda resolve triggers resolving of outside code.
    • getAnnotations

      public abstract AnnotationBinding[] getAnnotations()
      Overrides:
      getAnnotations in class Binding
    • isBlankFinal

      public final boolean isBlankFinal()
    • isFinal

      public final boolean isFinal()
    • isEffectivelyFinal

      public final boolean isEffectivelyFinal()
    • isNonNull

      public boolean isNonNull()
      Answer true if null annotations are enabled and this field is specified @NonNull
    • isNullable

      public boolean isNullable()
      Answer true if null annotations are enabled and this field is specified @Nullable
    • readableName

      public char[] readableName()
      Specified by:
      readableName in class Binding
    • setConstant

      public void setConstant(Constant constant)
    • toString

      public String toString()
      Overrides:
      toString in class Object