private int countNonStaticNestingLevels(TypeBinding binding) { if (binding.isUnresolvedType()) { throw new IllegalStateException(); } int depth = -1; TypeBinding currentBinding = binding; while (currentBinding != null) { depth++; if (currentBinding.isStatic()) break; currentBinding = currentBinding.enclosingType(); } return depth; }
private int countNonStaticNestingLevels(TypeBinding binding) { if (binding.isUnresolvedType()) { throw new IllegalStateException(); } int depth = -1; TypeBinding currentBinding = binding; while (currentBinding != null) { depth++; if (currentBinding.isStatic()) break; currentBinding = currentBinding.enclosingType(); } return depth; }
private TypeBinding annotateType(TypeBinding binding, ITypeAnnotationWalker walker, char[][][] missingTypeNames) { int depth = binding.depth() + 1; if (depth > 1) { // need to count non-static nesting levels, resolved binding required for precision if (binding.isUnresolvedType()) binding = ((UnresolvedReferenceBinding) binding).resolve(this, true); TypeBinding currentBinding = binding; depth = 0; while (currentBinding != null) { depth++; if (currentBinding.isStatic()) break; currentBinding = currentBinding.enclosingType(); } } AnnotationBinding [][] annotations = null; for (int i = 0; i < depth; i++) { AnnotationBinding[] annots = BinaryTypeBinding.createAnnotations(walker.getAnnotationsAtCursor(binding.id), this, missingTypeNames); if (annots != null && annots.length > 0) { if (annotations == null) annotations = new AnnotationBinding[depth][]; annotations[i] = annots; } walker = walker.toNextNestedType(); } if (annotations != null) binding = createAnnotatedType(binding, annotations); return binding; }
private TypeBinding annotateType(TypeBinding binding, ITypeAnnotationWalker walker, char[][][] missingTypeNames) { int depth = binding.depth() + 1; if (depth > 1) { // need to count non-static nesting levels, resolved binding required for precision if (binding.isUnresolvedType()) binding = ((UnresolvedReferenceBinding) binding).resolve(this, true); TypeBinding currentBinding = binding; depth = 0; while (currentBinding != null) { depth++; if (currentBinding.isStatic()) break; currentBinding = currentBinding.enclosingType(); } } AnnotationBinding [][] annotations = null; for (int i = 0; i < depth; i++) { AnnotationBinding[] annots = BinaryTypeBinding.createAnnotations(walker.getAnnotationsAtCursor(binding.id), this, missingTypeNames); if (annots != null && annots.length > 0) { if (annotations == null) annotations = new AnnotationBinding[depth][]; annotations[i] = annots; } walker = walker.toNextNestedType(); } if (annotations != null) binding = createAnnotatedType(binding, annotations); return binding; }
private TypeBinding annotateType(TypeBinding binding, TypeAnnotationWalker walker, char[][][] missingTypeNames) { int depth = binding.depth() + 1; if (depth > 1) { // need to count non-static nesting levels, resolved binding required for precision if (binding.isUnresolvedType()) binding = ((UnresolvedReferenceBinding) binding).resolve(this, true); TypeBinding currentBinding = binding; depth = 0; while (currentBinding != null) { depth++; if (currentBinding.isStatic()) break; currentBinding = currentBinding.enclosingType(); } } AnnotationBinding [][] annotations = null; for (int i = 0; i < depth; i++) { AnnotationBinding[] annots = BinaryTypeBinding.createAnnotations(walker.getAnnotationsAtCursor(), this, missingTypeNames); if (annots != null && annots.length > 0) { if (annotations == null) annotations = new AnnotationBinding[depth][]; annotations[i] = annots; } walker = walker.toNextNestedType(); } if (annotations != null) binding = createAnnotatedType(binding, annotations); return binding; }
private TypeBinding annotateType(TypeBinding binding, ITypeAnnotationWalker walker, char[][][] missingTypeNames) { int depth = binding.depth() + 1; if (depth > 1) { // need to count non-static nesting levels, resolved binding required for precision if (binding.isUnresolvedType()) binding = ((UnresolvedReferenceBinding) binding).resolve(this, true); TypeBinding currentBinding = binding; depth = 0; while (currentBinding != null) { depth++; if (currentBinding.isStatic()) break; currentBinding = currentBinding.enclosingType(); } } AnnotationBinding [][] annotations = null; for (int i = 0; i < depth; i++) { AnnotationBinding[] annots = BinaryTypeBinding.createAnnotations(walker.getAnnotationsAtCursor(binding.id), this, missingTypeNames); if (annots != null && annots.length > 0) { if (annotations == null) annotations = new AnnotationBinding[depth][]; annotations[i] = annots; } walker = walker.toNextNestedType(); } if (annotations != null) binding = createAnnotatedType(binding, annotations); return binding; }
private TypeBinding annotateType(TypeBinding binding, TypeAnnotationWalker walker, char[][][] missingTypeNames) { int depth = binding.depth() + 1; if (depth > 1) { // need to count non-static nesting levels, resolved binding required for precision if (binding.isUnresolvedType()) binding = ((UnresolvedReferenceBinding) binding).resolve(this, true); TypeBinding currentBinding = binding; depth = 0; while (currentBinding != null) { depth++; if (currentBinding.isStatic()) break; currentBinding = currentBinding.enclosingType(); } } AnnotationBinding [][] annotations = null; for (int i = 0; i < depth; i++) { AnnotationBinding[] annots = BinaryTypeBinding.createAnnotations(walker.getAnnotationsAtCursor(), this, missingTypeNames); if (annots != null && annots.length > 0) { if (annotations == null) annotations = new AnnotationBinding[depth][]; annotations[i] = annots; } walker = walker.toNextNestedType(); } if (annotations != null) binding = createAnnotatedType(binding, annotations); return binding; }
private TypeBinding annotateType(TypeBinding binding, TypeAnnotationWalker walker, char[][][] missingTypeNames) { int depth = binding.depth() + 1; if (depth > 1) { // need to count non-static nesting levels, resolved binding required for precision if (binding.isUnresolvedType()) binding = ((UnresolvedReferenceBinding) binding).resolve(this, true); TypeBinding currentBinding = binding; depth = 0; while (currentBinding != null) { depth++; if (currentBinding.isStatic()) break; currentBinding = currentBinding.enclosingType(); } } AnnotationBinding [][] annotations = null; for (int i = 0; i < depth; i++) { AnnotationBinding[] annots = BinaryTypeBinding.createAnnotations(walker.getAnnotationsAtCursor(), this, missingTypeNames); if (annots != null && annots.length > 0) { if (annotations == null) annotations = new AnnotationBinding[depth][]; annotations[i] = annots; } walker = walker.toNextNestedType(); } if (annotations != null) binding = createAnnotatedType(binding, annotations); return binding; }
convertedType = needToConvert ? createRawType((ReferenceBinding)originalType.erasure(), null) : originalType; } else { if (!needToConvert && originalType.isStatic()) return originalType;
convertedType = needToConvert ? createRawType((ReferenceBinding)originalType.erasure(), null) : originalType; } else { if (!needToConvert && originalType.isStatic()) return originalType;
ReferenceBinding originalEnclosing = originalType.enclosingType(); ReferenceBinding substitutedEnclosing = originalEnclosing; if (originalEnclosing != null && !originalType.isStatic()) { substitutedEnclosing = (ReferenceBinding) substitute(substitution, originalEnclosing); if (isMemberTypeOfRaw(originalType, substitutedEnclosing)) if (substitutedEnclosing != originalEnclosing && !originalType.isStatic()) { //$IDENTITY-COMPARISON$ return substitution.isRawSubstitution() ? substitution.environment().createRawType(originalReferenceType, substitutedEnclosing, originalType.getTypeAnnotations()) substitutedEnclosing = originalEnclosing; if (originalEnclosing != null) { substitutedEnclosing = (ReferenceBinding) (originalType.isStatic() ? substitution.environment().convertToRawType(originalEnclosing, true) : (ReferenceBinding) substitute(substitution, originalEnclosing)); if (isMemberTypeOfRaw(originalType, substitutedEnclosing))
break; forceRawEnclosingType &= !originalType.isStatic(); ReferenceBinding originalEnclosing = originalType.enclosingType(); TypeBinding convertedType;
break; forceRawEnclosingType &= !originalType.isStatic(); ReferenceBinding originalEnclosing = originalType.enclosingType(); TypeBinding convertedType;
substitutedEnclosing = originalEnclosing; if (originalEnclosing != null) { substitutedEnclosing = (ReferenceBinding) (originalType.isStatic() ? substitution.environment().convertToRawType(originalEnclosing, true) : (ReferenceBinding) substitute(substitution, originalEnclosing)); if (isMemberTypeOfRaw(originalType, substitutedEnclosing))
substitutedEnclosing = originalEnclosing; if (originalEnclosing != null) { substitutedEnclosing = (ReferenceBinding) (originalType.isStatic() ? substitution.environment().convertToRawType(originalEnclosing, true) : (ReferenceBinding) substitute(substitution, originalEnclosing)); if (isMemberTypeOfRaw(originalType, substitutedEnclosing))
substitutedEnclosing = originalEnclosing; if (originalEnclosing != null) { substitutedEnclosing = (ReferenceBinding) (originalType.isStatic() ? substitution.environment().convertToRawType(originalEnclosing, true) : (ReferenceBinding) substitute(substitution, originalEnclosing)); if (isMemberTypeOfRaw(originalType, substitutedEnclosing))
substitutedEnclosing = originalEnclosing; if (originalEnclosing != null) { substitutedEnclosing = (ReferenceBinding) (originalType.isStatic() ? substitution.environment().convertToRawType(originalEnclosing, true) : (ReferenceBinding) substitute(substitution, originalEnclosing)); if (isMemberTypeOfRaw(originalType, substitutedEnclosing))
substitutedEnclosing = originalEnclosing; if (originalEnclosing != null) { substitutedEnclosing = (ReferenceBinding) (originalType.isStatic() ? substitution.environment().convertToRawType(originalEnclosing, true) : (ReferenceBinding) substitute(substitution, originalEnclosing)); if (isMemberTypeOfRaw(originalType, substitutedEnclosing))
substitutedEnclosing = originalEnclosing; if (originalEnclosing != null) { substitutedEnclosing = (ReferenceBinding) (originalType.isStatic() ? substitution.environment().convertToRawType(originalEnclosing, true) : (ReferenceBinding) substitute(substitution, originalEnclosing)); if (isMemberTypeOfRaw(originalType, substitutedEnclosing))
substitutedEnclosing = originalEnclosing; if (originalEnclosing != null) { substitutedEnclosing = (ReferenceBinding) (originalType.isStatic() ? substitution.environment().convertToRawType(originalEnclosing, true) : (ReferenceBinding) substitute(substitution, originalEnclosing)); if (isMemberTypeOfRaw(originalType, substitutedEnclosing))