本文整理汇总了Java中org.asciidoctor.Asciidoctor.javaExtensionRegistry方法的典型用法代码示例。如果您正苦于以下问题:Java Asciidoctor.javaExtensionRegistry方法的具体用法?Java Asciidoctor.javaExtensionRegistry怎么用?Java Asciidoctor.javaExtensionRegistry使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.asciidoctor.Asciidoctor
的用法示例。
在下文中一共展示了Asciidoctor.javaExtensionRegistry方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: register
import org.asciidoctor.Asciidoctor; //导入方法依赖的package包/类
@Override
public void register(final Asciidoctor asciidoctor) {
final JavaExtensionRegistry registry = asciidoctor.javaExtensionRegistry();
for (final String name : extensionNames) {
register(registry, configuration.get("extension." + name + ".class"), configuration.get("extension." + name + ".block"));
}
}
示例2: register
import org.asciidoctor.Asciidoctor; //导入方法依赖的package包/类
@Override
public void register(Asciidoctor asciidoctor) {
JavaExtensionRegistry javaExtensionRegistry = asciidoctor
.javaExtensionRegistry();
javaExtensionRegistry.block(SdEditBlockProcessor.SDEDIT_BLOCK_NAME,
SdEditBlockProcessor.class);
javaExtensionRegistry.blockMacro(
SdEditBlockMacroProcessor.SDEDIT_BLOCK_MACRO_NAME,
SdEditBlockMacroProcessor.class);
}
示例3: register
import org.asciidoctor.Asciidoctor; //导入方法依赖的package包/类
@Override
public void register(Asciidoctor asciidoctor) {
JavaExtensionRegistry javaExtensionRegistry = asciidoctor.javaExtensionRegistry();
javaExtensionRegistry.postprocessor(ArrowsAndBoxesIncludesPostProcessor.class);
javaExtensionRegistry.block("arrowsAndBoxes", ArrowsAndBoxesBlock.class);
}
示例4: register
import org.asciidoctor.Asciidoctor; //导入方法依赖的package包/类
@Override
public void register(Asciidoctor asciidoctor) {
JavaExtensionRegistry javaExtensionRegistry = asciidoctor.javaExtensionRegistry();
javaExtensionRegistry.block("tree", MonoTreeProcessor.class);
}