Examples of Javadoc


Examples of org.eclipse.jdt.core.dom.Javadoc

                isAbstract()
            );
        }
      }
      if(syntaxTreeNode!=null) {
        Javadoc doc = syntaxTreeNode.getJavadoc();
        if(doc!=null) {
          Comment docComment =
            umlModelElement.createOwnedComment();
          docComment.setBody(doc.toString());       
        }
      }
      setupSuperTypeUMLModelElement();
      for(int i=0 ; i<operationsServices.size() ; i++) {
        operationsServices.get(i).setUpUMLModelElement();
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Javadoc

    if (defaultPackage) {
      // remove existing package statement
      PackageDeclaration pkg = astCU.getPackage();
      if (pkg != null) {
        int pkgStart;
        Javadoc javadoc = pkg.getJavadoc();
        if (javadoc != null) {
          pkgStart = javadoc.getStartPosition() + javadoc.getLength() + 1;
        } else {
          pkgStart = pkg.getStartPosition();
        }
        int extendedStart = astCU.getExtendedStartPosition(pkg);
        if (pkgStart != extendedStart) {
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Javadoc

   *            comments
   */
  @SuppressWarnings("unchecked")
  public void generatePackageJavadoc(AST ast,
      PackageDeclaration packageDeclaration, String... comment) {
    Javadoc javadoc = ast.newJavadoc();

    for (String actualComment : comment) {
      TagElement tagElement = ast.newTagElement();
      tagElement.setTagName(actualComment);
      javadoc.tags().add(tagElement);
    }

    packageDeclaration.setJavadoc(javadoc);
  }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Javadoc

   */
  public void generateGetterSetterJavadoc(AST ast, Property property,
      MethodDeclaration methodDeclaration) {
    EList<Comment> comments = property.getOwnedComments();
    for (Comment comment : comments) {
      Javadoc javadoc = ast.newJavadoc();
      generateJavadoc(ast, comment, javadoc);
      methodDeclaration.setJavadoc(javadoc);
    }
  }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Javadoc

   */
  public void generateClassJavadoc(Classifier clazz, AST ast,
      AbstractTypeDeclaration td) {
    EList<Comment> comments = clazz.getOwnedComments();
    for (Comment comment : comments) {
      Javadoc javadoc = ast.newJavadoc();
      generateJavadoc(ast, comment, javadoc);
      td.setJavadoc(javadoc);
    }
  }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Javadoc

   */
  public void generateMethodJavadoc(AST ast, Operation operation,
      MethodDeclaration md) {
    EList<Comment> comments = operation.getOwnedComments();
    for (Comment comment : comments) {
      Javadoc javadoc = ast.newJavadoc();
      generateJavadoc(ast, comment, javadoc);
      md.setJavadoc(javadoc);
    }
  }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Javadoc

    this.matched = false;
  }

  private void build() {
    InterestingCodeFragment md = cfg.getCodeFragment();
    Javadoc doc = md.getJavadoc();
    if (doc == null)
      throw new CommentParserException("No javadoc defined for method: '%s'", md.getUniqueName());
    List<?> a = doc.tags();
    assert a.size() == 1;
    String text = a.get(0).toString();
    for (String line : text.split("\n"))
      try {
        parseLine(line);
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Javadoc

        annotationTypeNode.setProperty(ClassFileSequencerLexicon.NAME, name);
        annotationTypeNode.setProperty(ClassFileSequencerLexicon.VISIBILITY, getVisibility(annotationType.getModifiers()));
        annotationTypeNode.setProperty(ClassFileSequencerLexicon.SEQUENCED_DATE, this.context.getTimestamp());

        { // javadocs
            final Javadoc javadoc = annotationType.getJavadoc();

            if (javadoc != null) {
                record(javadoc, annotationTypeNode);
            }
        }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Javadoc

            memberNode.setProperty(ClassFileSequencerLexicon.ABSTRACT, (modifiers & Modifier.ABSTRACT) != 0);
            memberNode.setProperty(ClassFileSequencerLexicon.VISIBILITY, getVisibility(modifiers));
        }

        { // javadocs
            final Javadoc javadoc = annotationTypeMember.getJavadoc();

            if (javadoc != null) {
                record(javadoc, memberNode);
            }
        }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Javadoc

                           final Node parentNode ) throws Exception {
        final String name = enumConstant.getName().getIdentifier();
        final Node constantNode = parentNode.addNode(name, ClassFileSequencerLexicon.ENUM_CONSTANT);

        { // javadocs
            final Javadoc javadoc = enumConstant.getJavadoc();

            if (javadoc != null) {
                record(javadoc, constantNode);
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.