LOGGER.error("Method " + currentMethod.getName().getIdentifier() + " not found in class"); } else { for (Object tag : javaDoc.tags()) { if (tag instanceof TagElement) { TagElement tagElement = (TagElement) tag;
protected void updateDocComment() { for (int idx = 0; idx <= this.astPtr; idx++) { this.docComment.tags().add(this.astStack[idx]); } } }
@Override public JavaDocSource<O> removeTag(JavaDocTag tag) { List<TagElement> tags = javadoc.tags(); tags.remove(tag.getInternal()); return this; }
@Override public JavaDocSource<O> setFullText(String text) { javadoc.tags().clear(); setText(text); return this; }
@Override final List internalGetChildListProperty(ChildListPropertyDescriptor property) { if (property == TAGS_PROPERTY) { return tags(); } // allow default implementation to flag the error return super.internalGetChildListProperty(property); }
final List internalGetChildListProperty(ChildListPropertyDescriptor property) { if (property == TAGS_PROPERTY) { return tags(); } // allow default implementation to flag the error return super.internalGetChildListProperty(property); }
@Override public boolean visit(Javadoc node) { this.fBuffer.append("/** ");//$NON-NLS-1$ for (Iterator<TagElement> it= node.tags().iterator(); it.hasNext();) { ASTNode e= it.next(); e.accept(this); } this.fBuffer.append("\n */");//$NON-NLS-1$ return false; }
final List internalGetChildListProperty(ChildListPropertyDescriptor property) { if (property == TAGS_PROPERTY) { return tags(); } // allow default implementation to flag the error return super.internalGetChildListProperty(property); }
final List internalGetChildListProperty(ChildListPropertyDescriptor property) { if (property == TAGS_PROPERTY) { return tags(); } // allow default implementation to flag the error return super.internalGetChildListProperty(property); }
@Override public boolean visit(Javadoc node) { printIndent(); this.buffer.append("/** ");//$NON-NLS-1$ for (Iterator it = node.tags().iterator(); it.hasNext(); ) { ASTNode e = (ASTNode) it.next(); e.accept(this); } this.buffer.append("\n */\n");//$NON-NLS-1$ return false; }
public boolean visit(Javadoc node) { printIndent(); this.buffer.append("/** ");//$NON-NLS-1$ for (Iterator it = node.tags().iterator(); it.hasNext(); ) { ASTNode e = (ASTNode) it.next(); e.accept(this); } this.buffer.append("\n */\n");//$NON-NLS-1$ return false; }
public boolean visit(Javadoc node) { printIndent(); this.buffer.append("/** ");//$NON-NLS-1$ for (Iterator it = node.tags().iterator(); it.hasNext(); ) { ASTNode e = (ASTNode) it.next(); e.accept(this); } this.buffer.append("\n */\n");//$NON-NLS-1$ return false; }
public boolean visit(Javadoc node) { printIndent(); this.buffer.append("/** ");//$NON-NLS-1$ for (Iterator it = node.tags().iterator(); it.hasNext(); ) { ASTNode e = (ASTNode) it.next(); e.accept(this); } this.buffer.append("\n */\n");//$NON-NLS-1$ return false; }
@Override public List<JavaDocTag> getTags() { List<JavaDocTag> tags = new ArrayList<JavaDocTag>(); List<TagElement> tagElements = javadoc.tags(); for (TagElement tagElement : tagElements) { if (tagElement.getTagName() != null) tags.add(new JavaDocTagImpl(tagElement)); } return tags; }
private static List<TagElement> getJavaDocTags(final Javadoc javadoc, String tag) { if (null == javadoc) { return Collections.emptyList(); } final List<TagElement> tags = Types.cast(javadoc.tags()); return collectTags(tags, tag, new ArrayList<TagElement>()); }
@Override public boolean visit(Javadoc node) { if (!fScanTags) { return false; } ASTNode parent = node.getParent(); if (parent != null) { List<TagElement> tags = node.tags(); validateTags(parent, tags); } return false; }
@Override public JavaDocSource<O> addTagValue(String tagName, String tagValue) { Assert.notNull(tagName, TAG_NAME_CANNOT_BE_NULL); TagElement tagElement = javadoc.getAST().newTagElement(); TextElement textElement = javadoc.getAST().newTextElement(); tagElement.setTagName(tagName); textElement.setText(tagValue); tagElement.fragments().add(textElement); javadoc.tags().add(tagElement); return this; }