Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for TokenVisitor (0.12 sec)

  1. 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)
  2. 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)
  3. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/BasicJavadocLexer.java

            this.scanner = scanner;
        }
    
        public void pushText(String rawCommentText) {
            scanner.pushText(rawCommentText);
        }
    
        @Override
        public void visit(TokenVisitor visitor) {
            while (!scanner.isEmpty()) {
                if (scanner.lookingAt(START_HTML_COMMENT)) {
                    skipComment();
                    continue;
                }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Aug 19 15:07:24 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/JavadocConverter.java

            }
    
            @Override
            public List<Element> getDocbook() {
                return nodes;
            }
        }
    
        private static class HtmlGeneratingTokenHandler extends JavadocLexer.TokenVisitor {
            final DocBookBuilder nodes;
            final List<HtmlElementHandler> elementHandlers = new ArrayList<HtmlElementHandler>();
            final List<JavadocTagHandler> tagHandlers = new ArrayList<JavadocTagHandler>();
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 29.3K bytes
    - Viewed (0)
Back to top