Package org.asciidoctor.extension
Class BlockProcessor
java.lang.Object
org.asciidoctor.extension.BaseProcessor
org.asciidoctor.extension.BlockProcessor
- All Implemented Interfaces:
Processor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final StringDeprecated.Please useContexts.LISTINGstatic final StringDeprecated.Please useContexts.LITERALstatic final StringDeprecated.Please useContexts.OPENstatic final StringDeprecated.Please useContexts.PARAGRAPHstatic final StringDeprecated.Please useContexts.PASSstatic final StringDeprecated.Please useContexts.QUOTEstatic final StringDeprecated.Please useContexts.SIDEBARstatic final StringDeprecated.Please useContexts.KEYprotected String -
Constructor Summary
ConstructorsConstructorDescriptionBlockProcessor(String name) BlockProcessor(String name, Map<String, Object> config) -
Method Summary
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
-
Field Details
-
CONTEXTS
Deprecated.Please useContexts.KEYThis value is used as the config option key when defining the block type a Processor should process. Its value must be a list of String constants:Example to make a BlockProcessor work on listings and examples named foo:
Map<String, Object> config = new HashMap<>(); config.put(CONTEXTS, Arrays.asList(EXAMPLE, LISTING)); BlockProcessor blockProcessor = new BlockProcessor("foo", config); asciidoctor.javaExtensionRegistry().block(blockProcessor); - See Also:
-
CONTEXT_OPEN
Deprecated.Please useContexts.OPENPredefined constant for making a BlockProcessor work on open blocks. When passed with theCONTEXTSconfig option this BlockProcessor works on open blocks:[foo] -- An open block can be an anonymous container, or it can masquerade as any other block. --
- See Also:
-
CONTEXT_EXAMPLE
Deprecated.Please useContexts.EXAMPLEPredefined constant for making a BlockProcessor work on example blocks. When passed with theCONTEXTSconfig option this BlockProcessor works on example blocks:[foo] ==== This is just a neat example. ====
- See Also:
-
CONTEXT_SIDEBAR
Deprecated.Please useContexts.SIDEBARPredefined constant for making a BlockProcessor work on sidebar blocks. When passed with theCONTEXTSconfig option this BlockProcessor works on sidebar blocks:[foo] **** This is just a sidebar. ****
- See Also:
-
CONTEXT_LITERAL
Deprecated.Please useContexts.LITERALPredefined constant for making a BlockProcessor work on literal blocks. When passed with theCONTEXTSconfig option this BlockProcessor works on literal blocks:[foo] .... This is just a literal block. ....
- See Also:
-
CONTEXT_LISTING
Deprecated.Please useContexts.LISTINGPredefined constant for making a BlockProcessor work on source blocks. When passed with theCONTEXTSconfig option this BlockProcessor works on source blocks:[foo] .... This is just a literal block. ....
- See Also:
-
CONTEXT_QUOTE
Deprecated.Please useContexts.QUOTEPredefined constant for making a BlockProcessor work on quote blocks. When passed with theCONTEXTSconfig option this BlockProcessor works on quote blocks:[foo] ____ To be or not to be... ____
- See Also:
-
CONTEXT_PASS
Deprecated.Please useContexts.PASSPredefined constant for making a BlockProcessor work on passthrough blocks. When passed with theCONTEXTSconfig option this BlockProcessor works on passthrough blocks:[foo] ++++ <h1>Big text</h1> ++++
- See Also:
-
CONTEXT_PARAGRAPH
Deprecated.Please useContexts.PARAGRAPHPredefined constant for making a BlockProcessor work on paragraph blocks. This is also the default for theCONTEXTSconfig option if no other context is given. When passed with theCONTEXTSconfig option this BlockProcessor works on paragraph blocks:[foo] Please process this paragraph. And don't process this.
- See Also:
-
name
-
-
Constructor Details
-
BlockProcessor
public BlockProcessor() -
BlockProcessor
-
BlockProcessor
-
-
Method Details
-
getName
-
setName
-
process
-
Contexts.EXAMPLE