Package org.eclipse.jdt.core.dom

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


        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

            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

                           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

        enumNode.setProperty(ClassFileSequencerLexicon.NAME, name);
        enumNode.setProperty(ClassFileSequencerLexicon.SEQUENCED_DATE, this.context.getTimestamp());
        enumNode.setProperty(ClassFileSequencerLexicon.INTERFACE, false);

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

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

        final Node fieldNode = parentNode.addNode(name, ClassFileSequencerLexicon.FIELD);
        fieldNode.setProperty(ClassFileSequencerLexicon.NAME, name);

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

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

        final String name = method.getName().getFullyQualifiedName();
        final Node methodNode = parentNode.addNode(name, ClassFileSequencerLexicon.METHOD);
        methodNode.setProperty(ClassFileSequencerLexicon.NAME, name);

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

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

                typeNode.setProperty(ClassFileSequencerLexicon.INTERFACES, interfaceNames);
            }
        }

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

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

                }
            }
        }

        { // Javadocs
            final Javadoc javadoc = pkg.getJavadoc();

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

    if (cu != null) {
      ASTNode[] nodes = ASTNodeSearchUtil.getDeclarationNodes(element, cu);
      if (nodes != null && nodes.length > 0){
        int offset = nodes[0].getStartPosition();
        if (nodes[0] instanceof BodyDeclaration){
          Javadoc docs = ((BodyDeclaration)nodes[0]).getJavadoc();
          if (docs != null){
            offset += docs.getLength() + 1;
          }
        }
        return offset;
      }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.core.dom.Javadoc

Copyright © 2018 www.massapicom. 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.