- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for TokenVisitor (0.11 sec)
-
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/JavadocLexer.java
package gradlebuild.docs.dsl.docbook; 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/HtmlToXmlJavadocLexer.java
blockContent.add("tr"); blockContent.add("dl"); } @Override public void visit(TokenVisitor visitor) { lexer.visit(new VisitorImpl(visitor)); } private class VisitorImpl extends TokenVisitor { private final TokenVisitor visitor; private final LinkedList<String> elementStack = new LinkedList<String>();
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/BasicJavadocLexer.java
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
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: 1 * visitor.onStartHtmlElement('p')
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
} 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) { result.append("<$name") } @Override
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 6.5K bytes - Viewed (0)