Interface NodeContext<N,​C extends NodeContext<N,​C>>


  • public interface NodeContext<N,​C extends NodeContext<N,​C>>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      N getCurrentNode()  
      @NotNull com.vladsch.flexmark.util.data.DataHolder getOptions()
      Get options for the context
      C getSubContext()
      Creates a child rendering context that can be used to collect rendered html text.
      C getSubContext​(@Nullable com.vladsch.flexmark.util.data.DataHolder options)
      Creates a child rendering context that can be used to collect rendered html text.
      C getSubContext​(@Nullable com.vladsch.flexmark.util.data.DataHolder options, @NotNull com.vladsch.flexmark.util.sequence.builder.ISequenceBuilder<?,​?> builder)
      Creates a child rendering context that can be used to collect rendered html text.
    • Method Detail

      • getSubContext

        @NotNull
        C getSubContext()
        Creates a child rendering context that can be used to collect rendered html text. The child context inherits everything but the HtmlRenderer and doNotRenderLinksNesting from the parent.
        Returns:
        a new rendering context with a given appendable for its output
      • getSubContext

        @NotNull
        C getSubContext​(@Nullable
                        @Nullable com.vladsch.flexmark.util.data.DataHolder options)
        Creates a child rendering context that can be used to collect rendered html text. The child context inherits everything but the HtmlRenderer and doNotRenderLinksNesting from the parent.
        Parameters:
        options - options to use for the context (only options which do not affect the context construction will be used)
        Returns:
        a new rendering context with a given appendable for its output
      • getSubContext

        @NotNull
        C getSubContext​(@Nullable
                        @Nullable com.vladsch.flexmark.util.data.DataHolder options,
                        @NotNull
                        @NotNull com.vladsch.flexmark.util.sequence.builder.ISequenceBuilder<?,​?> builder)
        Creates a child rendering context that can be used to collect rendered html text. The child context inherits everything but the HtmlRenderer and doNotRenderLinksNesting from the parent.
        Parameters:
        options - options to use for the context (only options which do not affect the context construction will be used)
        builder - sequence builder to user for appended text for tracking original base offsets
        Returns:
        a new rendering context with a given appendable for its output
      • getCurrentNode

        @Nullable
        N getCurrentNode()
        Returns:
        the current node being rendered
      • getOptions

        @NotNull
        @NotNull com.vladsch.flexmark.util.data.DataHolder getOptions()
        Get options for the context
        Returns:
        data holder