if (!"Target".equals(CharOperation.charToString(annotation.getAnnotationType().sourceName()))) { continue;
public boolean isDeprecated() { ReferenceBinding typeBinding = this.binding.getAnnotationType(); if (typeBinding == null) return false; return typeBinding.isDeprecated(); }
public ITypeBinding getAnnotationType() { ITypeBinding typeBinding = this.bindingResolver.getTypeBinding(this.binding.getAnnotationType()); if (typeBinding == null) return null; return typeBinding; }
@NonNull @Override public TypeDescriptor getType() { TypeDescriptor typeDescriptor = getTypeDescriptor(binding.getAnnotationType()); assert typeDescriptor != null; // because mBinding.type is known not to be null return typeDescriptor; }
public boolean isDeprecated() { ReferenceBinding typeBinding = this.binding.getAnnotationType(); if (typeBinding == null) return false; return typeBinding.isDeprecated(); }
public ITypeBinding getAnnotationType() { ITypeBinding typeBinding = this.bindingResolver.getTypeBinding(this.binding.getAnnotationType()); if (typeBinding == null) return null; return typeBinding; }
public boolean isDeprecated() { ReferenceBinding typeBinding = this.binding.getAnnotationType(); if (typeBinding == null) return false; return typeBinding.isDeprecated(); }
static boolean hasDeprecatedAnnotation(AnnotationBinding[] annotations) { if (annotations == null) { return false; } for (int i = 0, length = annotations.length; i < length; i++) { AnnotationBinding annotation = annotations[i]; if (CharOperation.equals(annotation.getAnnotationType().sourceName, TypeConstants.JAVA_LANG_DEPRECATED[2])) { return true; } } return false; }
@Override public TypeSpi getType() { if (m_type == null) { m_type = SpiWithJdtUtils.bindingToType(m_env, m_binding.getAnnotationType()); } return m_type; }
@Override public String toString() { if (this._binding == null) { return "@any()"; //$NON-NLS-1$ } return "@" + _binding.getAnnotationType().debugName(); //$NON-NLS-1$ }
public ITypeBinding getAnnotationType() { ITypeBinding typeBinding = this.bindingResolver.getTypeBinding(this.binding.getAnnotationType()); if (typeBinding == null) return null; return typeBinding; }
@Override public String toString() { if (this._binding == null) { return "@any()"; //$NON-NLS-1$ } return "@" + _binding.getAnnotationType().debugName(); //$NON-NLS-1$ }
public boolean isDeprecated() { ReferenceBinding typeBinding = this.binding.getAnnotationType(); if (typeBinding == null) return false; return typeBinding.isDeprecated(); }
public ITypeBinding getAnnotationType() { ITypeBinding typeBinding = this.bindingResolver.getTypeBinding(this.binding.getAnnotationType()); if (typeBinding == null) return null; return typeBinding; }
@Override public DeclaredType getAnnotationType() { return (DeclaredType) _env.getFactory().newTypeMirror(_binding.getAnnotationType()); }
@Override public String getName() { ITypeBinding annotationType = getAnnotationType(); if (annotationType == null) { return new String(this.binding.getAnnotationType().sourceName()); } else { return annotationType.getName(); } }
public String getName() { ITypeBinding annotationType = getAnnotationType(); if (annotationType == null) { return new String(this.binding.getAnnotationType().sourceName()); } else { return annotationType.getName(); } }
public String getName() { ITypeBinding annotationType = getAnnotationType(); if (annotationType == null) { return new String(this.binding.getAnnotationType().sourceName()); } else { return annotationType.getName(); } }
public DeclaredType getAnnotationType() { if (this._binding == null) { return _env.getFactory().getErrorType(); } ReferenceBinding annoType = _binding.getAnnotationType(); return _env.getFactory().newAnnotationType(annoType); }
public <A extends java.lang.annotation.Annotation> CtAnnotation<A> getTypeCtAnnotation(AnnotationBinding annotationBinding) { CtAnnotation<A> a = factory.Core().createAnnotation(); CtTypeReference<A> t = references.getTypeReference(annotationBinding.getAnnotationType()); a.setAnnotationType(t); for (ElementValuePair valuePair : annotationBinding.getElementValuePairs()) { a.addValue(String.valueOf(valuePair.getName()), buildValuePairAnnotation(valuePair.getValue())); } return a; }