private void buildTypeVariables() { SourceTypeBinding sourceType = this.referenceContext.binding; TypeParameter[] typeParameters = this.referenceContext.typeParameters; // https://bugs.eclipse.org/bugs/show_bug.cgi?id=324850, If they exist at all, process type parameters irrespective of source level. if (typeParameters == null || typeParameters.length == 0) { sourceType.setTypeVariables(Binding.NO_TYPE_VARIABLES); return; } sourceType.setTypeVariables(Binding.NO_TYPE_VARIABLES); // safety if (sourceType.id == TypeIds.T_JavaLangObject) { // handle the case of redefining java.lang.Object up front problemReporter().objectCannotBeGeneric(this.referenceContext); return; } sourceType.setTypeVariables(createTypeVariables(typeParameters, sourceType)); sourceType.modifiers |= ExtraCompilerModifiers.AccGenericSignature; }
private void buildTypeVariables() { SourceTypeBinding sourceType = this.referenceContext.binding; TypeParameter[] typeParameters = this.referenceContext.typeParameters; // https://bugs.eclipse.org/bugs/show_bug.cgi?id=324850, If they exist at all, process type parameters irrespective of source level. if (typeParameters == null || typeParameters.length == 0) { sourceType.setTypeVariables(Binding.NO_TYPE_VARIABLES); return; } sourceType.setTypeVariables(Binding.NO_TYPE_VARIABLES); // safety if (sourceType.id == TypeIds.T_JavaLangObject) { // handle the case of redefining java.lang.Object up front problemReporter().objectCannotBeGeneric(this.referenceContext); return; } sourceType.setTypeVariables(createTypeVariables(typeParameters, sourceType)); sourceType.modifiers |= ExtraCompilerModifiers.AccGenericSignature; }
private void buildTypeVariables() { SourceTypeBinding sourceType = this.referenceContext.binding; TypeParameter[] typeParameters = this.referenceContext.typeParameters; // https://bugs.eclipse.org/bugs/show_bug.cgi?id=324850, If they exist at all, process type parameters irrespective of source level. if (typeParameters == null || typeParameters.length == 0) { sourceType.setTypeVariables(Binding.NO_TYPE_VARIABLES); return; } sourceType.setTypeVariables(Binding.NO_TYPE_VARIABLES); // safety if (sourceType.id == TypeIds.T_JavaLangObject) { // handle the case of redefining java.lang.Object up front problemReporter().objectCannotBeGeneric(this.referenceContext); return; } sourceType.setTypeVariables(createTypeVariables(typeParameters, sourceType)); sourceType.modifiers |= ExtraCompilerModifiers.AccGenericSignature; }
private void buildTypeVariables() { SourceTypeBinding sourceType = this.referenceContext.binding; TypeParameter[] typeParameters = this.referenceContext.typeParameters; // https://bugs.eclipse.org/bugs/show_bug.cgi?id=324850, If they exist at all, process type parameters irrespective of source level. if (typeParameters == null || typeParameters.length == 0) { sourceType.setTypeVariables(Binding.NO_TYPE_VARIABLES); return; } sourceType.setTypeVariables(Binding.NO_TYPE_VARIABLES); // safety if (sourceType.id == TypeIds.T_JavaLangObject) { // handle the case of redefining java.lang.Object up front problemReporter().objectCannotBeGeneric(this.referenceContext); return; } sourceType.setTypeVariables(createTypeVariables(typeParameters, sourceType)); sourceType.modifiers |= ExtraCompilerModifiers.AccGenericSignature; }
private void buildTypeVariables() { SourceTypeBinding sourceType = this.referenceContext.binding; TypeParameter[] typeParameters = this.referenceContext.typeParameters; // https://bugs.eclipse.org/bugs/show_bug.cgi?id=324850, If they exist at all, process type parameters irrespective of source level. if (typeParameters == null || typeParameters.length == 0) { sourceType.setTypeVariables(Binding.NO_TYPE_VARIABLES); return; } sourceType.setTypeVariables(Binding.NO_TYPE_VARIABLES); // safety if (sourceType.id == TypeIds.T_JavaLangObject) { // handle the case of redefining java.lang.Object up front problemReporter().objectCannotBeGeneric(this.referenceContext); return; } sourceType.setTypeVariables(createTypeVariables(typeParameters, sourceType)); sourceType.modifiers |= ExtraCompilerModifiers.AccGenericSignature; }
private void buildTypeVariables() { SourceTypeBinding sourceType = this.referenceContext.binding; TypeParameter[] typeParameters = this.referenceContext.typeParameters; // https://bugs.eclipse.org/bugs/show_bug.cgi?id=324850, If they exist at all, process type parameters irrespective of source level. if (typeParameters == null || typeParameters.length == 0) { sourceType.setTypeVariables(Binding.NO_TYPE_VARIABLES); return; } sourceType.setTypeVariables(Binding.NO_TYPE_VARIABLES); // safety if (sourceType.id == TypeIds.T_JavaLangObject) { // handle the case of redefining java.lang.Object up front problemReporter().objectCannotBeGeneric(this.referenceContext); return; } sourceType.setTypeVariables(createTypeVariables(typeParameters, sourceType)); sourceType.modifiers |= ExtraCompilerModifiers.AccGenericSignature; }
private void buildTypeVariables() { SourceTypeBinding sourceType = this.referenceContext.binding; TypeParameter[] typeParameters = this.referenceContext.typeParameters; // https://bugs.eclipse.org/bugs/show_bug.cgi?id=324850, If they exist at all, process type parameters irrespective of source level. if (typeParameters == null || typeParameters.length == 0) { sourceType.setTypeVariables(Binding.NO_TYPE_VARIABLES); return; } sourceType.setTypeVariables(Binding.NO_TYPE_VARIABLES); // safety if (sourceType.id == TypeIds.T_JavaLangObject) { // handle the case of redefining java.lang.Object up front problemReporter().objectCannotBeGeneric(this.referenceContext); return; } sourceType.setTypeVariables(createTypeVariables(typeParameters, sourceType)); sourceType.modifiers |= ExtraCompilerModifiers.AccGenericSignature; }
private void buildTypeVariables() { SourceTypeBinding sourceType = this.referenceContext.binding; TypeParameter[] typeParameters = this.referenceContext.typeParameters; // https://bugs.eclipse.org/bugs/show_bug.cgi?id=324850, If they exist at all, process type parameters irrespective of source level. if (typeParameters == null || typeParameters.length == 0) { sourceType.setTypeVariables(Binding.NO_TYPE_VARIABLES); return; } sourceType.setTypeVariables(Binding.NO_TYPE_VARIABLES); // safety if (sourceType.id == TypeIds.T_JavaLangObject) { // handle the case of redefining java.lang.Object up front problemReporter().objectCannotBeGeneric(this.referenceContext); return; } sourceType.setTypeVariables(createTypeVariables(typeParameters, sourceType)); sourceType.modifiers |= ExtraCompilerModifiers.AccGenericSignature; }
public TypeVariableBinding [] setTypeVariables(TypeVariableBinding [] typeVariables) { if (!isPrototype()) return this.prototype.setTypeVariables(typeVariables); if ((this.tagBits & TagBits.HasAnnotatedVariants) != 0) { TypeBinding [] annotatedTypes = this.scope.environment().getAnnotatedTypes(this); for (int i = 0, length = annotatedTypes == null ? 0 : annotatedTypes.length; i < length; i++) { SourceTypeBinding annotatedType = (SourceTypeBinding) annotatedTypes[i]; annotatedType.typeVariables = typeVariables; } } return this.typeVariables = typeVariables; }
public TypeVariableBinding [] setTypeVariables(TypeVariableBinding [] typeVariables) { if (!isPrototype()) return this.prototype.setTypeVariables(typeVariables); if ((this.tagBits & TagBits.HasAnnotatedVariants) != 0) { TypeBinding [] annotatedTypes = this.scope.environment().getAnnotatedTypes(this); for (int i = 0, length = annotatedTypes == null ? 0 : annotatedTypes.length; i < length; i++) { SourceTypeBinding annotatedType = (SourceTypeBinding) annotatedTypes[i]; annotatedType.typeVariables = typeVariables; } } return this.typeVariables = typeVariables; }
public TypeVariableBinding [] setTypeVariables(TypeVariableBinding [] typeVariables) { if (!isPrototype()) return this.prototype.setTypeVariables(typeVariables); if ((this.tagBits & TagBits.HasAnnotatedVariants) != 0) { TypeBinding [] annotatedTypes = this.scope.environment().getAnnotatedTypes(this); for (int i = 0, length = annotatedTypes == null ? 0 : annotatedTypes.length; i < length; i++) { SourceTypeBinding annotatedType = (SourceTypeBinding) annotatedTypes[i]; annotatedType.typeVariables = typeVariables; } } return this.typeVariables = typeVariables; }
public TypeVariableBinding [] setTypeVariables(TypeVariableBinding [] typeVariables) { if (!isPrototype()) return this.prototype.setTypeVariables(typeVariables); if ((this.tagBits & TagBits.HasAnnotatedVariants) != 0) { TypeBinding [] annotatedTypes = this.scope.environment().getAnnotatedTypes(this); for (int i = 0, length = annotatedTypes == null ? 0 : annotatedTypes.length; i < length; i++) { SourceTypeBinding annotatedType = (SourceTypeBinding) annotatedTypes[i]; annotatedType.typeVariables = typeVariables; } } return this.typeVariables = typeVariables; }
public TypeVariableBinding [] setTypeVariables(TypeVariableBinding [] typeVariables) { if (!isPrototype()) return this.prototype.setTypeVariables(typeVariables); if ((this.tagBits & TagBits.HasAnnotatedVariants) != 0) { TypeBinding [] annotatedTypes = this.scope.environment().getAnnotatedTypes(this); for (int i = 0, length = annotatedTypes == null ? 0 : annotatedTypes.length; i < length; i++) { SourceTypeBinding annotatedType = (SourceTypeBinding) annotatedTypes[i]; annotatedType.typeVariables = typeVariables; } } return this.typeVariables = typeVariables; }
public TypeVariableBinding [] setTypeVariables(TypeVariableBinding [] typeVariables) { if (!isPrototype()) return this.prototype.setTypeVariables(typeVariables); if ((this.tagBits & TagBits.HasAnnotatedVariants) != 0) { TypeBinding [] annotatedTypes = this.scope.environment().getAnnotatedTypes(this); for (int i = 0, length = annotatedTypes == null ? 0 : annotatedTypes.length; i < length; i++) { SourceTypeBinding annotatedType = (SourceTypeBinding) annotatedTypes[i]; annotatedType.typeVariables = typeVariables; } } return this.typeVariables = typeVariables; }
public TypeVariableBinding [] setTypeVariables(TypeVariableBinding [] typeVariables) { if (!isPrototype()) return this.prototype.setTypeVariables(typeVariables); if ((this.tagBits & TagBits.HasAnnotatedVariants) != 0) { TypeBinding [] annotatedTypes = this.scope.environment().getAnnotatedTypes(this); for (int i = 0, length = annotatedTypes == null ? 0 : annotatedTypes.length; i < length; i++) { SourceTypeBinding annotatedType = (SourceTypeBinding) annotatedTypes[i]; annotatedType.typeVariables = typeVariables; } } return this.typeVariables = typeVariables; }
public TypeVariableBinding [] setTypeVariables(TypeVariableBinding [] typeVariables) { if (!isPrototype()) return this.prototype.setTypeVariables(typeVariables); if ((this.tagBits & TagBits.HasAnnotatedVariants) != 0) { TypeBinding [] annotatedTypes = this.scope.environment().getAnnotatedTypes(this); for (int i = 0, length = annotatedTypes == null ? 0 : annotatedTypes.length; i < length; i++) { SourceTypeBinding annotatedType = (SourceTypeBinding) annotatedTypes[i]; annotatedType.typeVariables = typeVariables; } } return this.typeVariables = typeVariables; }