Class QueryCollectingTreeProcessor

  • All Implemented Interfaces:
    org.asciidoctor.extension.Processor

    public class QueryCollectingTreeProcessor
    extends org.asciidoctor.extension.Treeprocessor
    Extension for Asciidoctor. It looks for two kinds of blocks in the AsciiDoc source: 1) Blocks with the role `setup-query`. 2) Blocks with the role `query-example`. The content is expected to contain exactly two blocks: 2.1) First, a block containing a Cypher query example. 2.2) Second, a table containing a Cypher query result.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> beforeAllQueries()  
      java.util.List<java.lang.String> beforeEachQueries()  
      org.asciidoctor.ast.Document process​(org.asciidoctor.ast.Document document)  
      java.util.List<QueryExampleGroup> queryExamples()  
      • Methods inherited from class org.asciidoctor.extension.BaseProcessor

        createBlock, createBlock, createBlock, createBlock, createBlock, createBlock, createBlock, createDocument, createList, createList, createList, createListItem, createListItem, createPhraseNode, createPhraseNode, createPhraseNode, createPhraseNode, createPhraseNode, createPhraseNode, createSection, createSection, createSection, createSection, createSection, createTable, createTable, createTableCell, createTableCell, createTableCell, createTableCell, createTableColumn, createTableColumn, createTableRow, getConfig, log, parseContent, setConfig, unwrap, updateConfig
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QueryCollectingTreeProcessor

        public QueryCollectingTreeProcessor()
    • Method Detail

      • beforeAllQueries

        public java.util.List<java.lang.String> beforeAllQueries()
      • beforeEachQueries

        public java.util.List<java.lang.String> beforeEachQueries()
      • process

        public org.asciidoctor.ast.Document process​(org.asciidoctor.ast.Document document)
        Specified by:
        process in class org.asciidoctor.extension.Treeprocessor