/** * Returns whether this tag element is nested within another * tag element. Nested tag elements appears enclosed in * "{" and "}"; certain doc tags, including "@link" and * "@linkplain" are only meaningful as nested tags. * Top-level (i.e., non-nested) doc tags begin on a new line; * certain doc tags, including "@param" and * "@see" are only meaningful as top-level tags. * <p> * This convenience methods checks to see whether the parent * of this node is of type {@link org.eclipse.jdt.core.dom.TagElement}. * </p> * * @return <code>true</code> if this node is a nested tag element, * and false if this node is either parented by a doc comment node * ({@link Javadoc}), or is unparented */ public boolean isNested() { return (getParent() instanceof TagElement); }
/** * Returns whether this tag element is nested within another * tag element. Nested tag elements appears enclosed in * "{" and "}"; certain doc tags, including "@link" and * "@linkplain" are only meaningful as nested tags. * Top-level (i.e., non-nested) doc tags begin on a new line; * certain doc tags, including "@param" and * "@see" are only meaningful as top-level tags. * <p> * This convenience methods checks to see whether the parent * of this node is of type {@link org.eclipse.jdt.core.dom.TagElement}. * </p> * * @return <code>true</code> if this node is a nested tag element, * and false if this node is either parented by a doc comment node * ({@link Javadoc}), or is unparented */ public boolean isNested() { return (getParent() instanceof TagElement); }
/** * Returns whether this tag element is nested within another * tag element. Nested tag elements appears enclosed in * "{" and "}"; certain doc tags, including "@link" and * "@linkplain" are only meaningful as nested tags. * Top-level (i.e., non-nested) doc tags begin on a new line; * certain doc tags, including "@param" and * "@see" are only meaningful as top-level tags. * <p> * This convenience methods checks to see whether the parent * of this node is of type {@link org.eclipse.jdt.core.dom.TagElement}. * </p> * * @return <code>true</code> if this node is a nested tag element, * and false if this node is either parented by a doc comment node * ({@link Javadoc}), or is unparented */ public boolean isNested() { return (getParent() instanceof TagElement); }
/** * Returns whether this tag element is nested within another * tag element. Nested tag elements appears enclosed in * "{" and "}"; certain doc tags, including "@link" and * "@linkplain" are only meaningful as nested tags. * Top-level (i.e., non-nested) doc tags begin on a new line; * certain doc tags, including "@param" and * "@see" are only meaningful as top-level tags. * <p> * This convenience methods checks to see whether the parent * of this node is of type {@link org.eclipse.jdt.core.dom.TagElement}. * </p> * * @return <code>true</code> if this node is a nested tag element, * and false if this node is either parented by a doc comment node * ({@link Javadoc}), or is unparented */ public boolean isNested() { return (getParent() instanceof TagElement); }
/** * Returns whether this tag element is nested within another * tag element. Nested tag elements appears enclosed in * "{" and "}"; certain doc tags, including "@link" and * "@linkplain" are only meaningful as nested tags. * Top-level (i.e., non-nested) doc tags begin on a new line; * certain doc tags, including "@param" and * "@see" are only meaningful as top-level tags. * <p> * This convenience methods checks to see whether the parent * of this node is of type {@link org.eclipse.jdt.core.dom.TagElement}. * </p> * * @return <code>true</code> if this node is a nested tag element, * and false if this node is either parented by a doc comment node * ({@link Javadoc}), or is unparented */ public boolean isNested() { return (getParent() instanceof TagElement); }
/** * Returns whether this tag element is nested within another * tag element. Nested tag elements appears enclosed in * "{" and "}"; certain doc tags, including "@link" and * "@linkplain" are only meaningful as nested tags. * Top-level (i.e., non-nested) doc tags begin on a new line; * certain doc tags, including "@param" and * "@see" are only meaningful as top-level tags. * <p> * This convenience methods checks to see whether the parent * of this node is of type {@link org.eclipse.jdt.core.dom.TagElement}. * </p> * * @return <code>true</code> if this node is a nested tag element, * and false if this node is either parented by a doc comment node * ({@link Javadoc}), or is unparented */ public boolean isNested() { return (getParent() instanceof TagElement); }
TagElement blockTag = (TagElement) node.getParent(); String blockTagName = blockTag.getTagName();
return false; TagElement blockTag= (TagElement) node.getParent(); String blockTagName= blockTag.getTagName();
return false; TagElement blockTag= (TagElement) node.getParent(); String blockTagName= blockTag.getTagName();
if (node.getParent() instanceof Javadoc) { assert this.ctm.toString(startIndex).startsWith(tagName);
if (node.getParent() instanceof Javadoc) { assert this.ctm.toString(startIndex).startsWith(tagName);
if (node.getParent() instanceof Javadoc) { assert this.ctm.toString(startIndex).startsWith(tagName);
if (node.getParent() instanceof Javadoc) { assert this.ctm.toString(startIndex).startsWith(tagName);
TagElement tagElement= (TagElement) parent; if (TagElement.TAG_THROWS.equals(tagElement.getTagName()) || TagElement.TAG_EXCEPTION.equals(tagElement.getTagName())) { ASTNode methNode= tagElement.getParent().getParent(); if (methNode instanceof MethodDeclaration) { List thrownExcpetions= ((MethodDeclaration) methNode).thrownExceptions();
TagElement tagElement= (TagElement) parent; if (TagElement.TAG_THROWS.equals(tagElement.getTagName()) || TagElement.TAG_EXCEPTION.equals(tagElement.getTagName())) { ASTNode methNode= tagElement.getParent().getParent(); if (methNode instanceof MethodDeclaration) { List<Type> thrownExceptions= ((MethodDeclaration) methNode).thrownExceptionTypes();
TagElement tagElement= (TagElement) parent; if (TagElement.TAG_THROWS.equals(tagElement.getTagName()) || TagElement.TAG_EXCEPTION.equals(tagElement.getTagName())) { ASTNode methNode= tagElement.getParent().getParent(); if (methNode instanceof MethodDeclaration) { List<Type> thrownExceptions= ((MethodDeclaration) methNode).thrownExceptionTypes();