public abstract class VariableBinding extends Binding
| Modifier and Type | Field and Description |
|---|---|
Constant |
constant |
int |
id |
int |
modifiers |
char[] |
name |
long |
tagBits |
TypeBinding |
type |
ANY_EXCEPTION, ARRAY_TYPE, BASE_TYPE, DefaultLocationArrayContents, DefaultLocationField, DefaultLocationParameter, DefaultLocationReturnType, DefaultLocationTypeArgument, DefaultLocationTypeBound, DefaultLocationTypeParameter, FIELD, GENERIC_TYPE, IMPORT, INTERSECTION_TYPE, INTERSECTION_TYPE18, LOCAL, METHOD, NO_ANNOTATIONS, NO_ELEMENT_VALUE_PAIRS, NO_EXCEPTIONS, NO_FIELDS, NO_MEMBER_TYPES, NO_METHODS, NO_NULL_DEFAULT, NO_PARAMETER_NAMES, NO_PARAMETERS, NO_REFERENCE_TYPES, NO_SUPERINTERFACES, NO_TYPE_VARIABLES, NO_TYPES, NONNULL_BY_DEFAULT, NULL_UNSPECIFIED_BY_DEFAULT, NullnessDefaultMASK, PACKAGE, PARAMETERIZED_TYPE, POLY_TYPE, RAW_TYPE, TYPE, TYPE_PARAMETER, TYPE_USE, UNINITIALIZED_FIELDS, UNINITIALIZED_METHODS, UNINITIALIZED_REFERENCE_TYPES, VARIABLE, WILDCARD_TYPE| Constructor and Description |
|---|
VariableBinding(char[] name,
TypeBinding type,
int modifiers,
Constant constant) |
| Modifier and Type | Method and Description |
|---|---|
Constant |
constant() |
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.
|
abstract AnnotationBinding[] |
getAnnotations() |
boolean |
isBlankFinal() |
boolean |
isEffectivelyFinal() |
boolean |
isFinal() |
boolean |
isNonNull()
Answer true if null annotations are enabled and this field is specified @NonNull
|
boolean |
isNullable()
Answer true if null annotations are enabled and this field is specified @Nullable
|
char[] |
readableName() |
void |
setConstant(Constant constant) |
java.lang.String |
toString() |
computeUniqueKey, computeUniqueKey, getAnnotationTagBits, initializeDeprecatedAnnotationTagBits, isAnnotationType, isParameter, isTaggedRepeatable, isValidBinding, isVolatile, kind, problemId, setAnnotations, setAnnotations, shortReadableNamepublic int modifiers
public TypeBinding type
public char[] name
public Constant constant
public int id
public long tagBits
public VariableBinding(char[] name,
TypeBinding type,
int modifiers,
Constant constant)
public Constant constant()
public Constant constant(Scope scope)
public abstract AnnotationBinding[] getAnnotations()
getAnnotations in class Bindingpublic final boolean isBlankFinal()
public final boolean isFinal()
public final boolean isEffectivelyFinal()
public boolean isNonNull()
public boolean isNullable()
public char[] readableName()
readableName in class Bindingpublic void setConstant(Constant constant)
public java.lang.String toString()
toString in class java.lang.Object