protected AnnotationBinding[] getAnnotationBindings() { return ((TypeBinding)_binding).getTypeAnnotations(); }
protected AnnotationBinding[] getAnnotationBindings() { return ((MethodBinding) this._binding).returnType.getTypeAnnotations(); }
protected AnnotationBinding[] getAnnotationBindings() { return ((MethodBinding) this._binding).returnType.getTypeAnnotations(); }
protected AnnotationBinding[] getAnnotationBindings() { return ((TypeBinding)_binding).getTypeAnnotations(); }
protected AnnotationBinding[] getAnnotationBindings() { return ((TypeBinding)_binding).getTypeAnnotations(); }
protected AnnotationBinding[] getAnnotationBindings() { return ((MethodBinding) this._binding).returnType.getTypeAnnotations(); }
@Override public IAnnotationBinding[] getTypeAnnotations() { if (this.typeAnnotations != null) { return this.typeAnnotations; } this.typeAnnotations = resolveAnnotationBindings(this.binding.getTypeAnnotations(), true); return this.typeAnnotations; }
public IAnnotationBinding[] getTypeAnnotations() { if (this.typeAnnotations != null) { return this.typeAnnotations; } this.typeAnnotations = resolveAnnotationBindings(this.binding.getTypeAnnotations(), true); return this.typeAnnotations; }
public IAnnotationBinding[] getTypeAnnotations() { if (this.typeAnnotations != null) { return this.typeAnnotations; } this.typeAnnotations = resolveAnnotationBindings(this.binding.getTypeAnnotations(), true); return this.typeAnnotations; }
public IAnnotationBinding[] getTypeAnnotations() { if (this.typeAnnotations != null) { return this.typeAnnotations; } this.typeAnnotations = resolveAnnotationBindings(this.binding.getTypeAnnotations(), true); return this.typeAnnotations; } }
public IAnnotationBinding[] getTypeAnnotations() { if (this.typeAnnotations != null) { return this.typeAnnotations; } this.typeAnnotations = resolveAnnotationBindings(this.binding.getTypeAnnotations(), true); return this.typeAnnotations; } }
public String annotatedDebugName() { TypeBinding enclosingType = enclosingType(); StringBuffer buffer = new StringBuffer(16); if (enclosingType != null) { buffer.append(enclosingType.annotatedDebugName()); buffer.append('.'); } AnnotationBinding [] annotations = getTypeAnnotations(); for (int i = 0, length = annotations == null ? 0 : annotations.length; i < length; i++) { buffer.append(annotations[i]); buffer.append(' '); } buffer.append(sourceName()); return buffer.toString(); }
public String annotatedDebugName() { TypeBinding enclosingType = enclosingType(); StringBuffer buffer = new StringBuffer(16); if (enclosingType != null) { buffer.append(enclosingType.annotatedDebugName()); buffer.append('.'); } AnnotationBinding [] annotations = getTypeAnnotations(); for (int i = 0, length = annotations == null ? 0 : annotations.length; i < length; i++) { buffer.append(annotations[i]); buffer.append(' '); } buffer.append(sourceName()); return buffer.toString(); }
public String annotatedDebugName() { TypeBinding enclosingType = enclosingType(); StringBuffer buffer = new StringBuffer(16); if (enclosingType != null) { buffer.append(enclosingType.annotatedDebugName()); buffer.append('.'); } AnnotationBinding [] annotations = getTypeAnnotations(); for (int i = 0, length = annotations == null ? 0 : annotations.length; i < length; i++) { buffer.append(annotations[i]); buffer.append(' '); } buffer.append(sourceName()); return buffer.toString(); }
public String annotatedDebugName() { TypeBinding enclosingType = enclosingType(); StringBuffer buffer = new StringBuffer(16); if (enclosingType != null) { buffer.append(enclosingType.annotatedDebugName()); buffer.append('.'); } AnnotationBinding [] annotations = getTypeAnnotations(); for (int i = 0, length = annotations == null ? 0 : annotations.length; i < length; i++) { buffer.append(annotations[i]); buffer.append(' '); } buffer.append(sourceName()); return buffer.toString(); }
private boolean isContainsInTypeAnnotation(TypeBinding binding, Annotation a) { return !binding.hasTypeAnnotations() || !containsInTypeAnnotation(a, binding.getTypeAnnotations()); }
private void addTypeAnnotationFromBindingToReference(TypeBinding resolvedType, CtTypeReference<?> reference) { if (resolvedType.hasTypeAnnotations()) { final AnnotationBinding[] typeAnnotations = resolvedType.getTypeAnnotations(); for (AnnotationBinding typeAnnotation : typeAnnotations) { reference.addTypeAnnotation(getTypeCtAnnotation(typeAnnotation)); } } }
/** * Override method {@link Scope.Substitutor#substitute(Substitution, TypeBinding)}, * to add substitution of types other than type variables. */ public TypeBinding substitute(Substitution substitution, TypeBinding originalType) { for (int i = 0; i < this.variables.length; i++) { InferenceVariable variable = this.variables[i]; if (this.site == variable.site && TypeBinding.equalsEquals(getP(i), originalType)) { if (this.environment.globalOptions.isAnnotationBasedNullAnalysisEnabled && originalType.hasNullTypeAnnotations()) return this.environment.createAnnotatedType(variable.withoutToplevelNullAnnotation(), originalType.getTypeAnnotations()); return variable; } } return super.substitute(substitution, originalType); }
/** * Override method {@link Scope.Substitutor#substitute(Substitution, TypeBinding)}, * to add substitution of types other than type variables. */ public TypeBinding substitute(Substitution substitution, TypeBinding originalType) { for (int i = 0; i < this.variables.length; i++) { InferenceVariable variable = this.variables[i]; if (isInSites(variable.site) && isSameParameter(getP(i), originalType)) { if (this.environment.globalOptions.isAnnotationBasedNullAnalysisEnabled && originalType.hasNullTypeAnnotations()) return this.environment.createAnnotatedType(variable.withoutToplevelNullAnnotation(), originalType.getTypeAnnotations()); return variable; } } return super.substitute(substitution, originalType); }
/** * Override method {@link Scope.Substitutor#substitute(Substitution, TypeBinding)}, * to add substitution of types other than type variables. */ @Override public TypeBinding substitute(Substitution substitution, TypeBinding originalType) { for (int i = 0; i < this.variables.length; i++) { InferenceVariable variable = this.variables[i]; if (isInSites(variable.site) && isSameParameter(getP(i), originalType)) { if (this.environment.globalOptions.isAnnotationBasedNullAnalysisEnabled && originalType.hasNullTypeAnnotations()) return this.environment.createAnnotatedType(variable.withoutToplevelNullAnnotation(), originalType.getTypeAnnotations()); return variable; } } return super.substitute(substitution, originalType); }