protected TypeVariableBinding[] getTypeVariables() { //ask this or the actualType since we do not distinguish between the virtual parameterized type with arguments and the effective parameterized type with parameters ReferenceBinding refType = m_binding; if (m_binding.actualType() != null) { refType = m_binding.actualType(); } return refType.typeVariables(); }
ref.setDeclaringType(getTypeReference(exec.declaringClass.actualType()));
@Override public TypeSpi getOriginalType() { if (m_originalType == null) { ReferenceBinding ref = m_binding.actualType(); if (ref == null || ref == m_binding) { m_originalType = this; } else { m_originalType = SpiWithJdtUtils.bindingToType(m_env, ref); } } return m_originalType; }
@Override public List<BindingAnnotationWithJdt> getAnnotations() { if (m_annotations != null) { return m_annotations; } getSourceTypeBinding(); ReferenceBinding refType = m_binding; if (m_binding.actualType() != null) { refType = m_binding.actualType(); } m_annotations = SpiWithJdtUtils.createBindingAnnotations(m_env, this, refType.getAnnotations()); return m_annotations; }
&& methodBinding.isConstructor() && methodBinding.declaringClass != null && methodBinding.declaringClass.actualType() instanceof SourceTypeBinding) { && element == null && fieldBinding.declaringClass != null && fieldBinding.declaringClass.actualType() instanceof SourceTypeBinding) {
this.superInterfaces[i].superclass(); if (this.superInterfaces[i].isParameterizedType()) { ReferenceBinding superType = this.superInterfaces[i].actualType(); if (TypeBinding.equalsEquals(superType, this)) { this.tagBits |= TagBits.HierarchyHasProblems;
this.superInterfaces[i].superclass(); if (this.superInterfaces[i].isParameterizedType()) { ReferenceBinding superType = this.superInterfaces[i].actualType(); if (TypeBinding.equalsEquals(superType, this)) { this.tagBits |= TagBits.HierarchyHasProblems;
this.superInterfaces[i].superclass(); if (this.superInterfaces[i].isParameterizedType()) { ReferenceBinding superType = this.superInterfaces[i].actualType(); if (TypeBinding.equalsEquals(superType, this)) { this.tagBits |= TagBits.HierarchyHasProblems;
this.superInterfaces[i].superclass(); if (this.superInterfaces[i].isParameterizedType()) { ReferenceBinding superType = this.superInterfaces[i].actualType(); if (TypeBinding.equalsEquals(superType, this)) { this.tagBits |= TagBits.HierarchyHasProblems;
this.superInterfaces[i].superclass(); if (this.superInterfaces[i].isParameterizedType()) { ReferenceBinding superType = this.superInterfaces[i].actualType(); if (TypeBinding.equalsEquals(superType, this)) { this.tagBits |= TagBits.HierarchyHasProblems;
if (owner instanceof BindingTypeWithJdt) { ReferenceBinding b = ((BindingTypeWithJdt) owner).getInternalBinding(); b = nvl(b.actualType(), b); if (b instanceof SourceTypeBinding) { declaredAnnotations = ((SourceTypeBinding) b).scope.referenceContext.annotations;
scope.problemReporter().staticMemberOfParameterizedType(this, currentType, qualifyingType, i); typeIsConsistent = false; qualifyingType = qualifyingType.actualType(); // avoid raw/parameterized enclosing of static member if (!currentType.hasEnclosingInstanceContext()) { if (qualifyingType != null && qualifyingType.isRawType()) this.typesPerToken[i-1] = qualifyingType = qualifyingType.actualType(); // revert rawification of enclosing, since its generics are inaccessible } else { ReferenceBinding actualEnclosing = currentType.enclosingType();
scope.problemReporter().staticMemberOfParameterizedType(this, currentType, qualifyingType, i); typeIsConsistent = false; qualifyingType = qualifyingType.actualType(); // avoid raw/parameterized enclosing of static member if (currentType.isStatic()) { if (qualifyingType != null && qualifyingType.isRawType()) this.typesPerToken[i-1] = qualifyingType = qualifyingType.actualType(); // revert rawification of enclosing, since its generics are inaccessible } else { ReferenceBinding actualEnclosing = currentType.enclosingType();
receiverType = receiverType.actualType(); // outer generics are irrelevant
receiverType = receiverType.actualType(); // outer generics are irrelevant