public ContainerAnnotation(Annotation repeatingAnnotation, ReferenceBinding containerAnnotationType, BlockScope scope) { char [][] containerTypeName = containerAnnotationType.compoundName; if (containerTypeName.length == 1) { this.type = new SingleTypeReference(containerTypeName[0], 0); } else { this.type = new QualifiedTypeReference(containerTypeName, new long [containerTypeName.length]); } this.sourceStart = repeatingAnnotation.sourceStart; this.sourceEnd = repeatingAnnotation.sourceEnd; this.resolvedType = containerAnnotationType; this.recipient = repeatingAnnotation.recipient; this.containees = new Annotation[0]; this.memberValue = this.memberValues = new ArrayInitializer(); addContainee(repeatingAnnotation); }
Annotation repeatingAnnotation = this.containees[0]; ReferenceBinding repeatingAnnotationType = (ReferenceBinding) repeatingAnnotation.resolvedType; if (!repeatingAnnotationType.isDeprecated() && isTypeUseDeprecated(containerAnnotationType, scope)) { scope.problemReporter().deprecatedType(containerAnnotationType, repeatingAnnotation); checkContainerAnnotationType(repeatingAnnotation, scope, containerAnnotationType, repeatingAnnotationType, true); // true => repeated *use* site error reporting requested. this.resolvedType = containerAnnotationType = repeatingAnnotationType.containerAnnotationType(); if (!this.resolvedType.isValidBinding()) MemberValuePair pair = memberValuePairs()[0]; this.compilerAnnotation = scope.environment().createAnnotation((ReferenceBinding) this.resolvedType, computeElementValuePairs()); return this.resolvedType;
if (container == null) { // first encounter with a duplicate. ReferenceBinding containerAnnotationType = annotationType.containerAnnotationType(); container = new ContainerAnnotation(sourceAnnotations[i], containerAnnotationType, scope); if (implicitContainerAnnotations == null) implicitContainerAnnotations = new HashMap(3); implicitContainerAnnotations.put(containerAnnotationType, sourceAnnotations[i]); Annotation.checkForInstancesOfRepeatableWithRepeatingContainerAnnotation(scope, annotationType, sourceAnnotations); container.addContainee(sourceAnnotations[j]); } else { foundDuplicate = true; container.resolveType(scope);
if (container == null) { // first encounter with a duplicate. ReferenceBinding containerAnnotationType = annotationType.containerAnnotationType(); container = new ContainerAnnotation(sourceAnnotations[i], containerAnnotationType, scope); if (implicitContainerAnnotations == null) implicitContainerAnnotations = new HashMap(3); implicitContainerAnnotations.put(containerAnnotationType, sourceAnnotations[i]); Annotation.checkForInstancesOfRepeatableWithRepeatingContainerAnnotation(scope, annotationType, sourceAnnotations); container.addContainee(sourceAnnotations[j]); } else { foundDuplicate = true; container.resolveType(scope);
Annotation repeatingAnnotation = this.containees[0]; ReferenceBinding repeatingAnnotationType = (ReferenceBinding) repeatingAnnotation.resolvedType; if (!repeatingAnnotationType.isDeprecated() && isTypeUseDeprecated(containerAnnotationType, scope)) { scope.problemReporter().deprecatedType(containerAnnotationType, repeatingAnnotation); checkContainerAnnotationType(repeatingAnnotation, scope, containerAnnotationType, repeatingAnnotationType, true); // true => repeated *use* site error reporting requested. this.resolvedType = containerAnnotationType = repeatingAnnotationType.containerAnnotationType(); if (!this.resolvedType.isValidBinding()) MemberValuePair pair = memberValuePairs()[0]; this.compilerAnnotation = scope.environment().createAnnotation((ReferenceBinding) this.resolvedType, computeElementValuePairs()); return this.resolvedType;
if (container == null) { // first encounter with a duplicate. ReferenceBinding containerAnnotationType = annotationType.containerAnnotationType(); container = new ContainerAnnotation(sourceAnnotations[i], containerAnnotationType, scope); if (implicitContainerAnnotations == null) implicitContainerAnnotations = new HashMap(3); implicitContainerAnnotations.put(containerAnnotationType, sourceAnnotations[i]); Annotation.checkForInstancesOfRepeatableWithRepeatingContainerAnnotation(scope, annotationType, sourceAnnotations); container.addContainee(sourceAnnotations[j]); } else { foundDuplicate = true; container.resolveType(scope);
public ContainerAnnotation(Annotation repeatingAnnotation, ReferenceBinding containerAnnotationType, BlockScope scope) { char [][] containerTypeName = containerAnnotationType.compoundName; if (containerTypeName.length == 1) { this.type = new SingleTypeReference(containerTypeName[0], 0); } else { this.type = new QualifiedTypeReference(containerTypeName, new long [containerTypeName.length]); } this.sourceStart = repeatingAnnotation.sourceStart; this.sourceEnd = repeatingAnnotation.sourceEnd; this.resolvedType = containerAnnotationType; this.recipient = repeatingAnnotation.recipient; this.containees = new Annotation[0]; this.memberValue = this.memberValues = new ArrayInitializer(); addContainee(repeatingAnnotation); }
Annotation repeatingAnnotation = this.containees[0]; ReferenceBinding repeatingAnnotationType = (ReferenceBinding) repeatingAnnotation.resolvedType; if (!repeatingAnnotationType.isDeprecated() && isTypeUseDeprecated(containerAnnotationType, scope)) { scope.problemReporter().deprecatedType(containerAnnotationType, repeatingAnnotation); checkContainerAnnotationType(repeatingAnnotation, scope, containerAnnotationType, repeatingAnnotationType, true); // true => repeated *use* site error reporting requested. this.resolvedType = containerAnnotationType = repeatingAnnotationType.containerAnnotationType(); if (!this.resolvedType.isValidBinding()) MemberValuePair pair = memberValuePairs()[0]; this.compilerAnnotation = scope.environment().createAnnotation((ReferenceBinding) this.resolvedType, computeElementValuePairs()); return this.resolvedType;
if (container == null) { // first encounter with a duplicate. ReferenceBinding containerAnnotationType = annotationType.containerAnnotationType(); container = new ContainerAnnotation(sourceAnnotations[i], containerAnnotationType, scope); if (implicitContainerAnnotations == null) implicitContainerAnnotations = new HashMap(3); implicitContainerAnnotations.put(containerAnnotationType, sourceAnnotations[i]); Annotation.checkForInstancesOfRepeatableWithRepeatingContainerAnnotation(scope, annotationType, sourceAnnotations); container.addContainee(sourceAnnotations[j]); } else { foundDuplicate = true; container.resolveType(scope);
public ContainerAnnotation(Annotation repeatingAnnotation, ReferenceBinding containerAnnotationType, BlockScope scope) { char [][] containerTypeName = containerAnnotationType.compoundName; if (containerTypeName.length == 1) { this.type = new SingleTypeReference(containerTypeName[0], 0); } else { this.type = new QualifiedTypeReference(containerTypeName, new long [containerTypeName.length]); } this.sourceStart = repeatingAnnotation.sourceStart; this.sourceEnd = repeatingAnnotation.sourceEnd; this.resolvedType = containerAnnotationType; this.recipient = repeatingAnnotation.recipient; this.containees = new Annotation[0]; this.memberValue = this.memberValues = new ArrayInitializer(); addContainee(repeatingAnnotation); }
Annotation repeatingAnnotation = this.containees[0]; ReferenceBinding repeatingAnnotationType = (ReferenceBinding) repeatingAnnotation.resolvedType; if (!repeatingAnnotationType.isDeprecated() && isTypeUseDeprecated(containerAnnotationType, scope)) { scope.problemReporter().deprecatedType(containerAnnotationType, repeatingAnnotation); checkContainerAnnotationType(repeatingAnnotation, scope, containerAnnotationType, repeatingAnnotationType, true); // true => repeated *use* site error reporting requested. this.resolvedType = containerAnnotationType = repeatingAnnotationType.containerAnnotationType(); if (!this.resolvedType.isValidBinding()) MemberValuePair pair = memberValuePairs()[0]; this.compilerAnnotation = scope.environment().createAnnotation((ReferenceBinding) this.resolvedType, computeElementValuePairs()); return this.resolvedType;
if (container == null) { // first encounter with a duplicate. ReferenceBinding containerAnnotationType = annotationType.containerAnnotationType(); container = new ContainerAnnotation(sourceAnnotations[i], containerAnnotationType, scope); if (implicitContainerAnnotations == null) implicitContainerAnnotations = new HashMap(3); implicitContainerAnnotations.put(containerAnnotationType, sourceAnnotations[i]); Annotation.checkForInstancesOfRepeatableWithRepeatingContainerAnnotation(scope, annotationType, sourceAnnotations); container.addContainee(sourceAnnotations[j]); } else { foundDuplicate = true; container.resolveType(scope);
public ContainerAnnotation(Annotation repeatingAnnotation, ReferenceBinding containerAnnotationType, BlockScope scope) { char [][] containerTypeName = containerAnnotationType.compoundName; if (containerTypeName.length == 1) { this.type = new SingleTypeReference(containerTypeName[0], 0); } else { this.type = new QualifiedTypeReference(containerTypeName, new long [containerTypeName.length]); } this.sourceStart = repeatingAnnotation.sourceStart; this.sourceEnd = repeatingAnnotation.sourceEnd; this.resolvedType = containerAnnotationType; this.recipient = repeatingAnnotation.recipient; this.containees = new Annotation[0]; this.memberValue = this.memberValues = new ArrayInitializer(); addContainee(repeatingAnnotation); }
Annotation repeatingAnnotation = this.containees[0]; ReferenceBinding repeatingAnnotationType = (ReferenceBinding) repeatingAnnotation.resolvedType; if (!repeatingAnnotationType.isDeprecated() && isTypeUseDeprecated(containerAnnotationType, scope)) { scope.problemReporter().deprecatedType(containerAnnotationType, repeatingAnnotation); checkContainerAnnotationType(repeatingAnnotation, scope, containerAnnotationType, repeatingAnnotationType, true); // true => repeated *use* site error reporting requested. this.resolvedType = containerAnnotationType = repeatingAnnotationType.containerAnnotationType(); if (!this.resolvedType.isValidBinding()) MemberValuePair pair = memberValuePairs()[0]; this.compilerAnnotation = scope.environment().createAnnotation((ReferenceBinding) this.resolvedType, computeElementValuePairs()); return this.resolvedType;
if (container == null) { // first encounter with a duplicate. ReferenceBinding containerAnnotationType = annotationType.containerAnnotationType(); container = new ContainerAnnotation(sourceAnnotations[i], containerAnnotationType, scope); if (implicitContainerAnnotations == null) implicitContainerAnnotations = new HashMap(3); implicitContainerAnnotations.put(containerAnnotationType, sourceAnnotations[i]); Annotation.checkForInstancesOfRepeatableWithRepeatingContainerAnnotation(scope, annotationType, sourceAnnotations); container.addContainee(sourceAnnotations[j]); } else { foundDuplicate = true; container.resolveType(scope);
public ContainerAnnotation(Annotation repeatingAnnotation, ReferenceBinding containerAnnotationType, BlockScope scope) { char [][] containerTypeName = containerAnnotationType.compoundName; if (containerTypeName.length == 1) { this.type = new SingleTypeReference(containerTypeName[0], 0); } else { this.type = new QualifiedTypeReference(containerTypeName, new long [containerTypeName.length]); } this.sourceStart = repeatingAnnotation.sourceStart; this.sourceEnd = repeatingAnnotation.sourceEnd; this.resolvedType = containerAnnotationType; this.recipient = repeatingAnnotation.recipient; this.containees = new Annotation[0]; this.memberValue = this.memberValues = new ArrayInitializer(); addContainee(repeatingAnnotation); }
Annotation repeatingAnnotation = this.containees[0]; ReferenceBinding repeatingAnnotationType = (ReferenceBinding) repeatingAnnotation.resolvedType; if (!repeatingAnnotationType.isDeprecated() && isTypeUseDeprecated(containerAnnotationType, scope)) { scope.problemReporter().deprecatedType(containerAnnotationType, repeatingAnnotation); checkContainerAnnotationType(repeatingAnnotation, scope, containerAnnotationType, repeatingAnnotationType, true); // true => repeated *use* site error reporting requested. this.resolvedType = containerAnnotationType = repeatingAnnotationType.containerAnnotationType(); if (!this.resolvedType.isValidBinding()) MemberValuePair pair = memberValuePairs()[0]; this.compilerAnnotation = scope.environment().createAnnotation((ReferenceBinding) this.resolvedType, computeElementValuePairs()); return this.resolvedType;
if (container == null) { // first encounter with a duplicate. ReferenceBinding containerAnnotationType = annotationType.containerAnnotationType(); container = new ContainerAnnotation(sourceAnnotations[i], containerAnnotationType, scope); if (implicitContainerAnnotations == null) implicitContainerAnnotations = new HashMap(3); implicitContainerAnnotations.put(containerAnnotationType, sourceAnnotations[i]); Annotation.checkForInstancesOfRepeatableWithRepeatingContainerAnnotation(scope, annotationType, sourceAnnotations); container.addContainee(sourceAnnotations[j]); } else { foundDuplicate = true; container.resolveType(scope);
public ContainerAnnotation(Annotation repeatingAnnotation, ReferenceBinding containerAnnotationType, BlockScope scope) { char [][] containerTypeName = containerAnnotationType.compoundName; if (containerTypeName.length == 1) { this.type = new SingleTypeReference(containerTypeName[0], 0); } else { this.type = new QualifiedTypeReference(containerTypeName, new long [containerTypeName.length]); } this.sourceStart = repeatingAnnotation.sourceStart; this.sourceEnd = repeatingAnnotation.sourceEnd; this.resolvedType = containerAnnotationType; this.recipient = repeatingAnnotation.recipient; this.containees = new Annotation[0]; this.memberValue = this.memberValues = new ArrayInitializer(); addContainee(repeatingAnnotation); }
Annotation repeatingAnnotation = this.containees[0]; ReferenceBinding repeatingAnnotationType = (ReferenceBinding) repeatingAnnotation.resolvedType; if (!repeatingAnnotationType.isDeprecated() && isTypeUseDeprecated(containerAnnotationType, scope)) { scope.problemReporter().deprecatedType(containerAnnotationType, repeatingAnnotation); checkContainerAnnotationType(repeatingAnnotation, scope, containerAnnotationType, repeatingAnnotationType, true); // true => repeated *use* site error reporting requested. this.resolvedType = containerAnnotationType = repeatingAnnotationType.containerAnnotationType(); if (!this.resolvedType.isValidBinding()) MemberValuePair pair = memberValuePairs()[0]; this.compilerAnnotation = scope.environment().createAnnotation((ReferenceBinding) this.resolvedType, computeElementValuePairs()); return this.resolvedType;