// VIM_TEST_SETUP unlet! g:java_no_tab_space_error g:java_ignore_javadoc // VIM_TEST_SETUP unlet! g:java_no_trail_space_error // VIM_TEST_SETUP let [g:java_space_errors,g:java_comment_strings]=[1,1] // VIM_TEST_SETUP let g:java_ignore_markdown = 1 // VIM_TEST_SETUP setlocal spell fdc=2 fdl=64 fdm=syntax fen // VIM_TEST_SETUP highlight link javaCommentStart Todo // VIM_TEST_SETUP highlight link javaCommentTitle Underlined /**/ /*/ */ /* /*/ /*/*/ /*//*/ /** HTML comment tests. *
There is no entry point method {@code main}: * {@snippet file = HTMLSnippets.java region = main id = _01} *
There is no textual representation:
* {@snippet class = HTMLSnippets region = toString id = _02} */
class HTMLCommentsTests implements Comparablejava.lang.Object
*
* @return an empty string */// No period for the above summary!
@Override public String toString() { return asString(); }
}
// javadoc --snippet-path . --source-path . -d /tmp/html_docs/ -package \
// -tag 'jls:a:See Java Language Specification:' HTMLSnippets.java
/** Snippets for HTML comment tests. */
class HTMLSnippets
{ /* TRAILING BLANKS AND MESSPILLINGS ARE SIGNIFICANT! */
private HTMLSnippets() { }
/** The method {@code main} must be declared {@code public}, {@code
* static}, and {@code void}. It must specify a formal parameter
* whose declared type is array of {@link String}. Therefore,
* either of the following declarations is acceptable:
* {@snippet lang="java":
* // @highlight substring="main" type="italic":
* public static void main(String[] args) { }
* }
*{@code public static void main(String... args) { }}
*
* @param args optional commande-line arguments
* @jls 12.1.4 Invoke {@code Test.main} */
// @start region = main
// @link substring = 'String' target = 'java.lang.String' :
public static void main(String[] args) { }
// @end
/** {@return an empty string}
* @see 3.10.5 String Literals
* @see
* 4.3.2 The Class Object
* @see java.base/java.lang.Object#toString() */
// @start region = toString
// @replace substring = '""' replacement = "\u0022\u0022"
// @link regex = '\bString' target = java.lang.String type = linkplain :
@Override public String toString() { return ""; }
// @end
}