@Override public Set<Modifier> getModifiers() { MethodBinding binding = (MethodBinding)_binding; return Factory.getModifiers(binding.modifiers, getKind()); }
@Override public Set<Modifier> getModifiers() { int modifiers = this.binding.modifiers; return Factory.getModifiers(modifiers, getKind(), false); }
@Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { if (shouldEmulateJavacBug()) return null; return super.getAnnotation(annotationType); }
public BaseProcessingEnvImpl() { _addedUnits = new ArrayList<>(); _addedClassFiles = new ArrayList<>(); _deletedUnits = new ArrayList<>(); _elementUtils = new ElementsImpl(this); _typeUtils = new TypesImpl(this); _factory = new Factory(this); _errorRaised = false; }
/** * Convenience method to get the PrimitiveTypeImpl corresponding to a particular BaseTypeBinding. */ public PrimitiveTypeImpl getPrimitiveType(BaseTypeBinding binding) { return getPrimitiveType(PrimitiveTypeImpl.getKind(binding)); }
public final AnnotationBinding [] getPackedAnnotationBindings() { return Factory.getPackedAnnotationBindings(getAnnotationBindings()); }
/** * @param declaringElement the class, method, etc. that is parameterized by this parameter. */ public TypeParameterElement newTypeParameterElement(TypeVariableBinding variable, Element declaringElement) { return new TypeParameterElementImpl(_env, variable, declaringElement); }
public final AnnotationBinding [] getPackedAnnotationBindings() { return Factory.getPackedAnnotationBindings(getAnnotationBindings()); }
/** * Returns enclosing top-level type of the element. Returns {@code null} if the element does not have enclosing top-level type. */ private TypeElementImpl getTopLevelType(ElementImpl element) { for (; element != null; element = (ElementImpl) element.getEnclosingElement()) { if (element instanceof TypeElementImpl && ((TypeElementImpl) element).getNestingKind() == NestingKind.TOP_LEVEL) { return (TypeElementImpl) element; } } return null; } }
@Override public Set<Modifier> getModifiers() { MethodBinding binding = (MethodBinding)_binding; return Factory.getModifiers(binding.modifiers, getKind()); }
public BaseProcessingEnvImpl() { _addedUnits = new ArrayList<ICompilationUnit>(); _addedClassFiles = new ArrayList<ReferenceBinding>(); _deletedUnits = new ArrayList<ICompilationUnit>(); _elementUtils = new ElementsImpl(this); _typeUtils = new TypesImpl(this); _factory = new Factory(this); _errorRaised = false; }
@Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { if (shouldEmulateJavacBug()) return null; return super.getAnnotation(annotationType); }
@Override public Name getSimpleName() { MethodBinding binding = (MethodBinding)_binding; if (_name == null) { _name = new NameImpl(binding.selector); } return _name; }
/** * Returns enclosing top-level type of the element. Returns {@code null} if the element does not have enclosing top-level type. */ private TypeElementImpl getTopLevelType(ElementImpl element) { for (; element != null; element = (ElementImpl) element.getEnclosingElement()) { if (element instanceof TypeElementImpl && ((TypeElementImpl) element).getNestingKind() == NestingKind.TOP_LEVEL) { return (TypeElementImpl) element; } } return null; } }
@Override public Set<Modifier> getModifiers() { MethodBinding binding = (MethodBinding)_binding; return Factory.getModifiers(binding.modifiers, getKind()); }
@Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { if (shouldEmulateJavacBug()) return null; return super.getAnnotation(annotationType); }
@Override public Set<Modifier> getModifiers() { MethodBinding binding = (MethodBinding)_binding; return Factory.getModifiers(binding.modifiers, getKind()); }
@Override public Set<Modifier> getModifiers() { MethodBinding binding = (MethodBinding)_binding; return Factory.getModifiers(binding.modifiers, getKind()); }
@Override public Set<Modifier> getModifiers() { MethodBinding binding = (MethodBinding)_binding; return Factory.getModifiers(binding.modifiers, getKind()); }