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

    • 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
                        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
                        DataHolder options,
                        @NotNull
                        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
        DataHolder getOptions()
        Get options for the context
        Returns:
        data holder