本文整理了Java中org.eclipse.jdt.core.dom.Javadoc.tags()
方法的一些代码示例,展示了Javadoc.tags()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Javadoc.tags()
方法的具体详情如下:
包路径:org.eclipse.jdt.core.dom.Javadoc
类名称:Javadoc
方法名:tags
[英]The list of tag elements (element type: TagElement). Defaults to an empty list.
[中]标记元素列表(元素类型:TagElement)。默认为空列表。
代码示例来源:origin: opensourceBIM/BIMserver
LOGGER.error("Method " + currentMethod.getName().getIdentifier() + " not found in class");
} else {
for (Object tag : javaDoc.tags()) {
if (tag instanceof TagElement) {
TagElement tagElement = (TagElement) tag;
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
protected void updateDocComment() {
for (int idx = 0; idx <= this.astPtr; idx++) {
this.docComment.tags().add(this.astStack[idx]);
}
}
}
代码示例来源:origin: forge/roaster
@Override
public JavaDocSource<O> removeTag(JavaDocTag tag)
{
List<TagElement> tags = javadoc.tags();
tags.remove(tag.getInternal());
return this;
}
代码示例来源:origin: forge/roaster
@Override
public JavaDocSource<O> setFullText(String text)
{
javadoc.tags().clear();
setText(text);
return this;
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
@Override
final List internalGetChildListProperty(ChildListPropertyDescriptor property) {
if (property == TAGS_PROPERTY) {
return tags();
}
// allow default implementation to flag the error
return super.internalGetChildListProperty(property);
}
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
final List internalGetChildListProperty(ChildListPropertyDescriptor property) {
if (property == TAGS_PROPERTY) {
return tags();
}
// allow default implementation to flag the error
return super.internalGetChildListProperty(property);
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation
@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;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
final List internalGetChildListProperty(ChildListPropertyDescriptor property) {
if (property == TAGS_PROPERTY) {
return tags();
}
// allow default implementation to flag the error
return super.internalGetChildListProperty(property);
}
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
final List internalGetChildListProperty(ChildListPropertyDescriptor property) {
if (property == TAGS_PROPERTY) {
return tags();
}
// allow default implementation to flag the error
return super.internalGetChildListProperty(property);
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
@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;
}
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
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;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
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;
}
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
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;
}
代码示例来源:origin: forge/roaster
@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;
}
代码示例来源:origin: mono/sharpen
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>());
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.api.tools
@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;
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
@Override
ASTNode clone0(AST target) {
Javadoc result = new Javadoc(target);
result.setSourceRange(getStartPosition(), getLength());
if (this.ast.apiLevel == AST.JLS2_INTERNAL) {
result.setComment(getComment());
}
result.tags().addAll(ASTNode.copySubtrees(target, tags()));
return result;
}
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
ASTNode clone0(AST target) {
Javadoc result = new Javadoc(target);
result.setSourceRange(getStartPosition(), getLength());
if (this.ast.apiLevel == AST.JLS2_INTERNAL) {
result.setComment(getComment());
}
result.tags().addAll(ASTNode.copySubtrees(target, tags()));
return result;
}
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
ASTNode clone0(AST target) {
Javadoc result = new Javadoc(target);
result.setSourceRange(getStartPosition(), getLength());
if (this.ast.apiLevel == AST.JLS2_INTERNAL) {
result.setComment(getComment());
}
result.tags().addAll(ASTNode.copySubtrees(target, tags()));
return result;
}
代码示例来源:origin: forge/roaster
@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;
}
内容来源于网络,如有侵权,请联系作者删除!