- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for JavadocScanner (0.07 sec)
-
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/JavadocScanner.java
* <li>Removes block tags.</li> * <li>Removes leading and trailing empty lines.</li> * </ul> */ class JavadocScanner { private final StringBuilder input = new StringBuilder(); private int pos; private int markPos; JavadocScanner(String rawCommentText) { pushText(rawCommentText); } @Override public String toString() {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 4.3K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/BasicJavadocLexer.java
ENTITIES.put("lt", "<"); ENTITIES.put("gt", ">"); ENTITIES.put("quot", "\""); ENTITIES.put("apos", "'"); } private final JavadocScanner scanner; BasicJavadocLexer(JavadocScanner scanner) { this.scanner = scanner; } public void pushText(String rawCommentText) { scanner.pushText(rawCommentText); } @Override
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Mon Aug 19 15:07:24 UTC 2024 - 7.1K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/BasicJavadocLexerTest.groovy
*/ package gradlebuild.docs.dsl.docbook import spock.lang.Specification class BasicJavadocLexerTest extends Specification { final BasicJavadocLexer lexer = new BasicJavadocLexer(new JavadocScanner("")) final visitor = Mock(JavadocLexer.TokenVisitor) def parsesHtmlElements() { when: lexer.pushText("<p> text </p>") lexer.visit(visitor) then:
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 6K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/HtmlToXmlJavadocLexerTest.groovy
"text<h2>header</h2>text" | "<p>text</p><h2>header</h2><p>text</p>" } def parse(String source) { def lexer = new HtmlToXmlJavadocLexer(new BasicJavadocLexer(new JavadocScanner(source))) def result = new StringBuilder() lexer.visit(new JavadocLexer.TokenVisitor() { @Override void onStartHtmlElement(String name) {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 6.5K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/JavadocConverter.java
CommentSource inheritedCommentSource, GenerationListener listener) { JavadocLexer lexer = new HtmlToXmlJavadocLexer(new BasicJavadocLexer(new JavadocScanner(rawCommentText))); DocBookBuilder nodes = new DocBookBuilder(document); final HtmlGeneratingTokenHandler handler = new HtmlGeneratingTokenHandler(nodes, document);
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 29.3K bytes - Viewed (0)