/** * Remove specified member declaration (by name), if it exists.. * * @param memberDeclaration The member to remove. */ public void removeByName(E memberDeclaration) { removeByName(memberDeclaration.getSimpleName()); } }
/** * Remove specified member declaration (by name), if it exists.. * * @param memberDeclaration The member to remove. */ public void removeByName(E memberDeclaration) { removeByName(memberDeclaration.getSimpleName()); } }
bag.fields.removeByName(fieldDeclaration); indexOf(bag.fields, propertyDeclaration.getSimpleName().toString()) >= 0 || propsIgnore.contains(propertyDeclaration.getSimpleName().toString())) { bag.properties.removeByName(propertyDeclaration);
bag.fields.removeByName(fieldDeclaration); indexOf(bag.fields, propertyDeclaration.getSimpleName().toString()) >= 0 || propsIgnore.contains(propertyDeclaration.getSimpleName().toString())) { bag.properties.removeByName(propertyDeclaration);
bag.fields.removeByName(fieldDeclaration); bag.properties.removeByName(propertyDeclaration);
bag.fields.removeByName(fieldDeclaration); bag.properties.removeByName(propertyDeclaration);
/** * Aggregate the potential accessor into their separate buckets for the given class declaration, recursively including transient superclasses. * * @param bag The collected fields and properties. * @param clazz The class. * @param filter The filter. */ protected void aggregatePotentialAccessors(AccessorBag bag, DecoratedTypeElement clazz, AccessorFilter filter, boolean inlineAccessorsOfSuperclasses) { DecoratedTypeElement superDeclaration = clazz.getSuperclass() != null ? (DecoratedTypeElement) this.env.getTypeUtils().asElement(clazz.getSuperclass()) : null; if (superDeclaration != null && (isXmlTransient(superDeclaration) || inlineAccessorsOfSuperclasses)) { aggregatePotentialAccessors(bag, superDeclaration, filter, true); } for (VariableElement fieldDeclaration : ElementFilter.fieldsIn(clazz.getEnclosedElements())) { if (!filter.accept((DecoratedElement) fieldDeclaration)) { bag.fields.removeByName(fieldDeclaration); } else { bag.fields.addOrReplace(fieldDeclaration); } } for (PropertyElement propertyDeclaration : clazz.getProperties()) { if (!filter.accept(propertyDeclaration)) { bag.properties.remove(propertyDeclaration); } else { bag.properties.addOrReplace(propertyDeclaration); } } }
/** * Aggregate the potential accessor into their separate buckets for the given class declaration, recursively including transient superclasses. * * @param bag The collected fields and properties. * @param clazz The class. * @param filter The filter. */ protected void aggregatePotentialAccessors(AccessorBag bag, DecoratedTypeElement clazz, AccessorFilter filter, boolean inlineAccessorsOfSuperclasses) { DecoratedTypeElement superDeclaration = clazz.getSuperclass() != null ? (DecoratedTypeElement) this.env.getTypeUtils().asElement(clazz.getSuperclass()) : null; if (superDeclaration != null && (isXmlTransient(superDeclaration) || inlineAccessorsOfSuperclasses)) { aggregatePotentialAccessors(bag, superDeclaration, filter, true); } for (VariableElement fieldDeclaration : ElementFilter.fieldsIn(clazz.getEnclosedElements())) { if (!filter.accept((DecoratedElement) fieldDeclaration)) { bag.fields.removeByName(fieldDeclaration); } else { bag.fields.addOrReplace(fieldDeclaration); } } for (PropertyElement propertyDeclaration : clazz.getProperties()) { if (!filter.accept(propertyDeclaration)) { bag.properties.remove(propertyDeclaration); } else { bag.properties.addOrReplace(propertyDeclaration); } } }
/** * Add the specified member declaration, or if it is already in the list (by name), replace it. * * @param memberDeclaration The member to add/replace. */ public void addOrReplace(E memberDeclaration) { removeByName(memberDeclaration); add(memberDeclaration); }
/** * Add the specified member declaration, or if it is already in the list (by name), replace it. * * @param memberDeclaration The member to add/replace. */ public void addOrReplace(E memberDeclaration) { removeByName(memberDeclaration); add(memberDeclaration); }