- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for onStartHtmlElement (0.12 sec)
-
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/BasicJavadocLexerTest.groovy
final visitor = Mock(JavadocLexer.TokenVisitor) def parsesHtmlElements() { when: lexer.pushText("<p> text </p>") lexer.visit(visitor) then: 1 * visitor.onStartHtmlElement('p') 1 * visitor.onStartHtmlElementComplete('p') 1 * visitor.onText(' text ') 1 * visitor.onEndHtmlElement('p') 1 * visitor.onEnd() 0 * visitor._ }
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/main/groovy/gradlebuild/docs/dsl/docbook/HtmlToXmlJavadocLexer.java
visitor.onEndHtmlElement(elementStack.removeFirst()); } break; } } } @Override public void onStartHtmlElement(String name) { attributes.clear(); } @Override public void onHtmlElementAttribute(String name, String value) { attributes.put(name, value); }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 5.8K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/JavadocLexer.java
public interface JavadocLexer { /** * Visits the tokens in the input stream for this lexer. Reads to the end of the input. */ void visit(TokenVisitor visitor); class TokenVisitor { void onStartHtmlElement(String name) { } void onHtmlElementAttribute(String name, String value) { } void onStartHtmlElementComplete(String name) { }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 1.3K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/BasicJavadocLexer.java
String elementName = scanner.region().toLowerCase(Locale.ROOT); if (isEnd) { visitor.onEndHtmlElement(elementName); } else { visitor.onStartHtmlElement(elementName); } // attributes scanner.skip(WHITESPACE_WITH_EOL); while (!scanner.isEmpty() && scanner.lookingAt(ELEMENT_ATTRIBUTE)) { // attribute name
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/HtmlToXmlJavadocLexerTest.groovy
def result = new StringBuilder() lexer.visit(new JavadocLexer.TokenVisitor() { @Override void onStartHtmlElement(String name) { result.append("<$name") } @Override void onHtmlElementAttribute(String name, String value) { result.append(" $name='$value'")
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
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 29.3K bytes - Viewed (0)