org.eclipse.jdt.internal.compiler.ast.Javadoc类的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(8.1k)|赞(0)|评价(0)|浏览(131)

本文整理了Java中org.eclipse.jdt.internal.compiler.ast.Javadoc类的一些代码示例,展示了Javadoc类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Javadoc类的具体详情如下:
包路径:org.eclipse.jdt.internal.compiler.ast.Javadoc
类名称:Javadoc

Javadoc介绍

[英]Node representing a structured Javadoc comment
[中]表示结构化Javadoc注释的节点

代码示例

代码示例来源:origin: org.projectlombok/lombok.ast

Javadoc parse(String rawInput, int from, int to) {
    char[] rawContent;
    
    rawContent = new char[to + GENERIC_JAVA_CLASS_SUFFIX.length];
    Arrays.fill(rawContent, 0, from, ' ');
    System.arraycopy(rawInput.substring(from, to).toCharArray(), 0, rawContent, from, to - from);
    // Eclipse crashes if there's no character following the javadoc.
    System.arraycopy(GENERIC_JAVA_CLASS_SUFFIX, 0, rawContent, to, GENERIC_JAVA_CLASS_SUFFIX.length);
    
    this.sourceLevel = ClassFileConstants.JDK1_6;
    this.scanner.setSource(rawContent);
    this.source = rawContent;
    this.javadocStart = from;
    this.javadocEnd = to;
    this.reportProblems = true;
    this.docComment = new Javadoc(this.javadocStart, this.javadocEnd);
    commentParse();
    this.docComment.valuePositions = -1;
    this.docComment.sourceEnd--;
    return docComment;
  }
}

代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps

public StringBuffer printStatement(int indent, StringBuffer output) {
  if (this.javadoc != null) {
    this.javadoc.print(indent, output);
  }
  return super.printStatement(indent, output);
}

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

public StringBuffer print(int indent, StringBuffer output) {
  printIndent(indent, output).append("/**\n"); //$NON-NLS-1$
  if (this.paramReferences != null) {
    for (int i = 0, length = this.paramReferences.length; i < length; i++) {
      printIndent(indent + 1, output).append(" * @param "); //$NON-NLS-1$
      this.paramReferences[i].print(indent, output).append('\n');
      printIndent(indent + 1, output).append(" * @param <"); //$NON-NLS-1$
      this.paramTypeParameters[i].print(indent, output).append(">\n"); //$NON-NLS-1$
    printIndent(indent + 1, output).append(" * @"); //$NON-NLS-1$
    this.returnStatement.print(indent, output).append('\n');
      printIndent(indent + 1, output).append(" * @throws "); //$NON-NLS-1$
      this.exceptionReferences[i].print(indent, output).append('\n');
      printIndent(indent + 1, output).append(" * @see "); //$NON-NLS-1$
      this.seeReferences[i].print(indent, output).append('\n');
  printIndent(indent, output).append(" */\n"); //$NON-NLS-1$
  return output;

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

resolveReference(this.seeReferences[i], methScope);
resolveParamTags(methScope, reportMissing, compilerOptions.reportUnusedParameterIncludeDocCommentReference /* considerParamRefAsUsage*/);
resolveTypeParameterTags(methScope, reportMissing);
resolveThrowsTags(methScope, reportMissing);

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

syntheticTypeDeclaration.javadoc = new Javadoc(syntheticTypeDeclaration.declarationSourceStart, syntheticTypeDeclaration.declarationSourceStart);
this.javadoc.resolve(syntheticTypeDeclaration.staticInitializerScope);
this.javadoc.resolve(this.scope);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

scope.problemReporter().javadocUnexpectedTag(param.tagSourceStart, param.tagSourceEnd);
resolveTypeParameterTags(scope, true);
  resolveReference(this.seeReferences[i], scope);

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

/**
 * Resolve completion node if not null and throw exception to let clients know
 * that it has been found.
 *
 * @throws CompletionNodeFound
 */
@Override
public void resolve(MethodScope scope) {
  super.resolve(scope);
  internalResolve(scope);
}

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

public void traverse(ASTVisitor visitor, MethodScope scope) {
  if (visitor.visit(this, scope)) {
    if (this.javadoc != null) {
      this.javadoc.traverse(visitor, scope);
    }
    if (this.annotations != null) {
      int annotationsLength = this.annotations.length;
      for (int i = 0; i < annotationsLength; i++)
        this.annotations[i].traverse(visitor, scope);
    }
    if (this.type != null) {
      this.type.traverse(visitor, scope);
    }
    if (this.initialization != null)
      this.initialization.traverse(visitor, scope);
  }
  visitor.endVisit(this, scope);
}
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

if (!canBeSeen(scope.problemReporter().options.reportInvalidJavadocTagsVisibility, modifiers)) {
  scope.problemReporter().javadocHiddenReference(typeReference.sourceStart, reference.sourceEnd, scope, modifiers);
  return;
  if (!canBeSeen(scope.problemReporter().options.reportInvalidJavadocTagsVisibility, resolvedType.modifiers)) {
    scope.problemReporter().javadocHiddenReference(typeReference.sourceStart, typeReference.sourceEnd, scope, resolvedType.modifiers);
    return;

代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

resolveReference(this.seeReferences[i], methScope);
resolveParamTags(methScope, reportMissing, compilerOptions.reportUnusedParameterIncludeDocCommentReference /* considerParamRefAsUsage*/);
resolveTypeParameterTags(methScope, reportMissing && compilerOptions.reportMissingJavadocTagsMethodTypeParameters);
resolveThrowsTags(methScope, reportMissing);

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

syntheticTypeDeclaration.javadoc = new Javadoc(syntheticTypeDeclaration.declarationSourceStart, syntheticTypeDeclaration.declarationSourceStart);
this.javadoc.resolve(syntheticTypeDeclaration.staticInitializerScope);
this.javadoc.resolve(this.scope);

代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps

scope.problemReporter().javadocUnexpectedTag(param.tagSourceStart, param.tagSourceEnd);
resolveTypeParameterTags(scope, true);
  resolveReference(this.seeReferences[i], scope);

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

/**
 * Resolve completion node if not null and throw exception to let clients know
 * that it has been found.
 *
 * @throws CompletionNodeFound
 */
public void resolve(ClassScope scope) {
  super.resolve(scope);
  internalResolve(scope);
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

public void traverse(ASTVisitor visitor, MethodScope scope) {
  if (visitor.visit(this, scope)) {
    if (this.javadoc != null) {
      this.javadoc.traverse(visitor, scope);
    }
    if (this.annotations != null) {
      int annotationsLength = this.annotations.length;
      for (int i = 0; i < annotationsLength; i++)
        this.annotations[i].traverse(visitor, scope);
    }
    if (this.type != null) {
      this.type.traverse(visitor, scope);
    }
    if (this.initialization != null)
      this.initialization.traverse(visitor, scope);
  }
  visitor.endVisit(this, scope);
}
}

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

if (!canBeSeen(scope.problemReporter().options.reportInvalidJavadocTagsVisibility, modifiers)) {
  scope.problemReporter().javadocHiddenReference(typeReference.sourceStart, reference.sourceEnd, scope, modifiers);
  return;
  if (!canBeSeen(scope.problemReporter().options.reportInvalidJavadocTagsVisibility, resolvedType.modifiers)) {
    scope.problemReporter().javadocHiddenReference(typeReference.sourceStart, typeReference.sourceEnd, scope, resolvedType.modifiers);
    return;

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

resolveReference(this.seeReferences[i], methScope);
resolveParamTags(methScope, reportMissing, compilerOptions.reportUnusedParameterIncludeDocCommentReference /* considerParamRefAsUsage*/);
resolveTypeParameterTags(methScope, reportMissing && compilerOptions.reportMissingJavadocTagsMethodTypeParameters);
resolveThrowsTags(methScope, reportMissing);

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

syntheticTypeDeclaration.javadoc = new Javadoc(syntheticTypeDeclaration.declarationSourceStart, syntheticTypeDeclaration.declarationSourceStart);
this.javadoc.resolve(syntheticTypeDeclaration.staticInitializerScope);
this.javadoc.resolve(this.scope);

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

scope.problemReporter().javadocUnexpectedTag(param.tagSourceStart, param.tagSourceEnd);
resolveTypeParameterTags(scope, true);
  resolveReference(this.seeReferences[i], scope);

代码示例来源:origin: org.eclipse.scout.sdk.deps/ecj

public StringBuffer printStatement(int indent, StringBuffer output) {
  if (this.javadoc != null) {
    this.javadoc.print(indent, output);
  }
  return super.printStatement(indent, output);
}

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

/**
 * Resolve completion node if not null and throw exception to let clients know
 * that it has been found.
 *
 * @throws CompletionNodeFound
 */
public void resolve(MethodScope scope) {
  super.resolve(scope);
  internalResolve(scope);
}

相关文章