@Override protected AnnotationBinding[] getAnnotationBindings() { return ((VariableBinding)_binding).getAnnotations(); }
/** * Call this variant during resolve / analyse, so we can handle the case * when a tentative lambda resolve triggers resolving of outside code. */ public Constant constant(Scope scope) { return constant(); }
@Override public String toString() { return this.binding.toString(); } }
@Override public boolean isEffectivelyFinal() { return (!this.binding.isFinal() && this.binding.isEffectivelyFinal()); }
@Override synchronized IVariableBinding getVariableBinding(org.eclipse.jdt.internal.compiler.lookup.VariableBinding variableBinding) { if (variableBinding != null) { if (variableBinding.isValidBinding()) { org.eclipse.jdt.internal.compiler.lookup.TypeBinding variableType = variableBinding.type; if (variableType != null) {
public int getModifiers() { if (isField()) { return ((FieldBinding) this.binding).getAccessFlags() & VALID_MODIFIERS; } if (this.binding.isFinal()) { return IModifierConstants.ACC_FINAL; } return Modifier.NONE; }
public void nullityMismatch(Expression expression, TypeBinding providedType, TypeBinding requiredType, int nullStatus, char[][] annotationName) { if ((nullStatus & FlowInfo.NULL) != 0) { nullityMismatchIsNull(expression, requiredType); return; } if (expression instanceof MessageSend) { if ((((MessageSend) expression).binding.tagBits & TagBits.AnnotationNullable) != 0) { nullityMismatchSpecdNullable(expression, requiredType, this.options.nonNullAnnotationName); return; } } if ((nullStatus & FlowInfo.POTENTIALLY_NULL) != 0) { VariableBinding var = expression.localVariableBinding(); if (var == null && expression instanceof Reference) { var = ((Reference)expression).lastFieldBinding(); } if (var != null && var.isNullable()) { nullityMismatchSpecdNullable(expression, requiredType, annotationName); return; } nullityMismatchPotentiallyNull(expression, requiredType, annotationName); return; } if (this.options.sourceLevel < ClassFileConstants.JDK1_8) nullityMismatchIsUnknown(expression, providedType, requiredType, annotationName); else nullityMismatchingTypeAnnotation(expression, providedType, requiredType, NullAnnotationMatching.NULL_ANNOTATIONS_UNCHECKED); } public void nullityMismatchIsNull(Expression expression, TypeBinding requiredType) {
public String getKey() { if (this.key == null) { this.key = new String(this.binding.computeUniqueKey()); } return this.key; }
synchronized IVariableBinding getVariableBinding(org.eclipse.jdt.internal.compiler.lookup.VariableBinding variableBinding) { if (variableBinding != null) { if (variableBinding.isValidBinding()) { org.eclipse.jdt.internal.compiler.lookup.TypeBinding variableType = variableBinding.type; if (variableType != null) {
public boolean isEffectivelyFinal() { return (!this.binding.isFinal() && this.binding.isEffectivelyFinal()); }
public int getModifiers() { if (isField()) { return ((FieldBinding) this.binding).getAccessFlags() & VALID_MODIFIERS; } if (this.binding.isFinal()) { return IModifierConstants.ACC_FINAL; } return Modifier.NONE; }
public void nullityMismatch(Expression expression, TypeBinding providedType, TypeBinding requiredType, int nullStatus, char[][] annotationName) { if ((nullStatus & FlowInfo.NULL) != 0) { nullityMismatchIsNull(expression, requiredType); return; } if (expression instanceof MessageSend) { if ((((MessageSend) expression).binding.tagBits & TagBits.AnnotationNullable) != 0) { nullityMismatchSpecdNullable(expression, requiredType, this.options.nonNullAnnotationName); return; } } if ((nullStatus & FlowInfo.POTENTIALLY_NULL) != 0) { VariableBinding var = expression.localVariableBinding(); if (var == null && expression instanceof Reference) { var = ((Reference)expression).lastFieldBinding(); } if (var != null && var.isNullable()) { nullityMismatchSpecdNullable(expression, requiredType, annotationName); return; } nullityMismatchPotentiallyNull(expression, requiredType, annotationName); return; } if (this.options.sourceLevel < ClassFileConstants.JDK1_8) nullityMismatchIsUnknown(expression, providedType, requiredType, annotationName); else nullityMismatchingTypeAnnotation(expression, providedType, requiredType, NullAnnotationMatching.NULL_ANNOTATIONS_UNCHECKED); } public void nullityMismatchIsNull(Expression expression, TypeBinding requiredType) {
public String getKey() { if (this.key == null) { this.key = new String(this.binding.computeUniqueKey()); } return this.key; }
@Override protected AnnotationBinding[] getAnnotationBindings() { return ((VariableBinding)_binding).getAnnotations(); }
/** * Call this variant during resolve / analyse, so we can handle the case * when a tentative lambda resolve triggers resolving of outside code. */ public Constant constant(Scope scope) { return constant(); }
@Override public String getSignature() { return mBinding.toString(); }
synchronized IVariableBinding getVariableBinding(org.eclipse.jdt.internal.compiler.lookup.VariableBinding variableBinding) { if (variableBinding != null) { if (variableBinding.isValidBinding()) { org.eclipse.jdt.internal.compiler.lookup.TypeBinding variableType = variableBinding.type; if (variableType != null) {
public boolean isEffectivelyFinal() { return (!this.binding.isFinal() && this.binding.isEffectivelyFinal()); }
@Override public int getModifiers() { if (isField()) { return ((FieldBinding) this.binding).getAccessFlags() & VALID_MODIFIERS; } if (this.binding.isFinal()) { return IModifierConstants.ACC_FINAL; } return Modifier.NONE; }
public void nullityMismatch(Expression expression, TypeBinding providedType, TypeBinding requiredType, int nullStatus, char[][] annotationName) { if ((nullStatus & FlowInfo.NULL) != 0) { nullityMismatchIsNull(expression, requiredType); return; } if (expression instanceof MessageSend) { if ((((MessageSend) expression).binding.tagBits & TagBits.AnnotationNullable) != 0) { nullityMismatchSpecdNullable(expression, requiredType, this.options.nonNullAnnotationName); return; } } if ((nullStatus & FlowInfo.POTENTIALLY_NULL) != 0) { VariableBinding var = expression.localVariableBinding(); if (var == null && expression instanceof Reference) { var = ((Reference)expression).lastFieldBinding(); } if (var != null && var.isNullable()) { nullityMismatchSpecdNullable(expression, requiredType, annotationName); return; } nullityMismatchPotentiallyNull(expression, requiredType, annotationName); return; } if (this.options.sourceLevel < ClassFileConstants.JDK1_8) nullityMismatchIsUnknown(expression, providedType, requiredType, annotationName); else nullityMismatchingTypeAnnotation(expression, providedType, requiredType, NullAnnotationMatching.NULL_ANNOTATIONS_UNCHECKED); } public void nullityMismatchIsNull(Expression expression, TypeBinding requiredType) {