/** * Check and/or redirect the field access to the delegate receiver if any */ public TypeBinding checkFieldAccess(BlockScope scope) { if (this.delegateThis == null) { return super.checkFieldAccess(scope); } FieldBinding fieldBinding = (FieldBinding) this.binding; this.bits &= ~RestrictiveFlagMASK; // clear bits this.bits |= Binding.FIELD; if (!fieldBinding.isStatic()) { // must check for the static status.... if (this.evaluationContext.isStatic) { scope.problemReporter().staticFieldAccessToNonStaticVariable( this, fieldBinding); this.constant = Constant.NotAConstant; return null; } } this.constant = fieldBinding.constant(scope); if (isFieldUseDeprecated(fieldBinding, scope, this.bits)) { scope.problemReporter().deprecatedField(fieldBinding, this); } return fieldBinding.type; } public void generateAssignment(BlockScope currentScope, CodeStream codeStream, Assignment assignment, boolean valueRequired) {
/** * Check and/or redirect the field access to the delegate receiver if any */ public TypeBinding checkFieldAccess(BlockScope scope) { if (this.delegateThis == null) { return super.checkFieldAccess(scope); } FieldBinding fieldBinding = (FieldBinding) this.binding; this.bits &= ~RestrictiveFlagMASK; // clear bits this.bits |= Binding.FIELD; if (!fieldBinding.isStatic()) { // must check for the static status.... if (this.evaluationContext.isStatic) { scope.problemReporter().staticFieldAccessToNonStaticVariable( this, fieldBinding); this.constant = Constant.NotAConstant; return null; } } this.constant = fieldBinding.constant(); if (isFieldUseDeprecated(fieldBinding, scope, this.bits)) { scope.problemReporter().deprecatedField(fieldBinding, this); } return fieldBinding.type; } public void generateAssignment(BlockScope currentScope, CodeStream codeStream, Assignment assignment, boolean valueRequired) {
/** * Check and/or redirect the field access to the delegate receiver if any */ public TypeBinding checkFieldAccess(BlockScope scope) { if (this.delegateThis == null) { return super.checkFieldAccess(scope); } FieldBinding fieldBinding = (FieldBinding) this.binding; this.bits &= ~RestrictiveFlagMASK; // clear bits this.bits |= Binding.FIELD; if (!fieldBinding.isStatic()) { // must check for the static status.... if (this.evaluationContext.isStatic) { scope.problemReporter().staticFieldAccessToNonStaticVariable( this, fieldBinding); this.constant = Constant.NotAConstant; return null; } } this.constant = fieldBinding.constant(scope); if (isFieldUseDeprecated(fieldBinding, scope, this.bits)) { scope.problemReporter().deprecatedField(fieldBinding, this); } return fieldBinding.type; } public void generateAssignment(BlockScope currentScope, CodeStream codeStream, Assignment assignment, boolean valueRequired) {
return super.checkFieldAccess(scope);
/** * Check and/or redirect the field access to the delegate receiver if any */ public TypeBinding checkFieldAccess(BlockScope scope) { if (this.delegateThis == null) { return super.checkFieldAccess(scope); } FieldBinding fieldBinding = (FieldBinding) this.binding; this.bits &= ~RestrictiveFlagMASK; // clear bits this.bits |= Binding.FIELD; if (!fieldBinding.isStatic()) { // must check for the static status.... if (this.evaluationContext.isStatic) { scope.problemReporter().staticFieldAccessToNonStaticVariable( this, fieldBinding); this.constant = Constant.NotAConstant; return null; } } this.constant = fieldBinding.constant(); if (isFieldUseDeprecated(fieldBinding, scope, this.bits)) { scope.problemReporter().deprecatedField(fieldBinding, this); } return fieldBinding.type; } public void generateAssignment(BlockScope currentScope, CodeStream codeStream, Assignment assignment, boolean valueRequired) {
/** * Check and/or redirect the field access to the delegate receiver if any */ public TypeBinding checkFieldAccess(BlockScope scope) { if (this.delegateThis == null) { return super.checkFieldAccess(scope); } FieldBinding fieldBinding = (FieldBinding) this.binding; this.bits &= ~RestrictiveFlagMASK; // clear bits this.bits |= Binding.FIELD; if (!fieldBinding.isStatic()) { // must check for the static status.... if (this.evaluationContext.isStatic) { scope.problemReporter().staticFieldAccessToNonStaticVariable( this, fieldBinding); this.constant = Constant.NotAConstant; return null; } } this.constant = fieldBinding.constant(); if (isFieldUseDeprecated(fieldBinding, scope, this.bits)) { scope.problemReporter().deprecatedField(fieldBinding, this); } return fieldBinding.type; } public void generateAssignment(BlockScope currentScope, CodeStream codeStream, Assignment assignment, boolean valueRequired) {
} else { variableType = checkFieldAccess(scope);
} else { variableType = checkFieldAccess(scope);
} else { variableType = checkFieldAccess(scope);
} else { variableType = checkFieldAccess(scope);
} else { variableType = checkFieldAccess(scope);
} else { variableType = checkFieldAccess(scope);
} else { variableType = checkFieldAccess(scope);
} else { variableType = checkFieldAccess(scope);
} else { variableType = checkFieldAccess(scope);
} else { variableType = checkFieldAccess(scope);
} else { variableType = checkFieldAccess(scope);