Skip to content

Commit

Permalink
Revert "Reference the javadoc-parser submodule in spoon element's doc…
Browse files Browse the repository at this point in the history
…umentation"

This reverts commit 60beb63.
  • Loading branch information
I-Al-Istannen committed Jan 3, 2023
1 parent 64b7748 commit c91b623
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
5 changes: 1 addition & 4 deletions src/main/java/spoon/reflect/code/CtJavaDoc.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@

/**
* This code element defines a javadoc comment
* <p><br>
* Further utilities to parse javadoc comments to an AST with resolved references can be found in the
* <a href="https://spoon.gforge.inria.fr/spoon_javadoc.html">spoon-javadoc</a> submodule.
* <p><br>>
*
* Example:
* <pre>
* &#x2F;**
Expand Down
16 changes: 6 additions & 10 deletions src/main/java/spoon/reflect/declaration/CtElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,12 @@ <A extends Annotation> CtAnnotation<A> getAnnotation(

/**
* Returns the text of the documentation ("javadoc") comment of this
* element. It contains the text of Javadoc together with the block tags.
* <p>
* To get only the text without block tags, use {@code getComments().get(0).getContent()}.
* <p>
* To instead extract block tags, use {@code getComments().get(0).asJavaDoc().getTags()}.
* <p><br>
* To obtain an <strong>AST representation of the comment with resolved references</strong>,
* you can use the {@code JavadocParser} from
* <a href="https://spoon.gforge.inria.fr/spoon_javadoc.html">spoon-javadoc</a>.
* <p>
* element. It contains the text of Javadoc together with the tags.
*
* If one only wants only the text without the tag, one can call `getComments().get(0).getContent()`
*
* If one wants to analyze the tags, one can call `getComments().get(0).asJavaDoc().getTags()`
*
* See also {@link #getComments()}.and {@link spoon.reflect.code.CtJavaDoc}
*/
@DerivedProperty
Expand Down

0 comments on commit c91b623

Please sign in to comment.