Interface Meta.Builder<A,​B>

  • Type Parameters:
    A - the model type
    B - the result type
    Enclosing interface:
    Meta<A,​B>

    public static interface Meta.Builder<A,​B>
    Builder for Meta objects.
    • Method Detail

      • withModel

        Meta.Builder<A,​B> withModel​(A model)
        The model that was sent to the generator.
        Parameters:
        model - the model
        Returns:
        a reference to this builder
      • withResult

        Meta.Builder<A,​B> withResult​(B result)
        The result that was produced by the generator.
        Parameters:
        result - the result
        Returns:
        a reference to this builder
      • withTransform

        Meta.Builder<A,​B> withTransform​(Transform<A,​B> transform)
        The transform that was used to produce the result.
        Parameters:
        transform - the transform
        Returns:
        a reference to this builder
      • withFactory

        Meta.Builder<A,​B> withFactory​(TransformFactory factory)
        The factory that created the transform.
        Parameters:
        factory - the factory
        Returns:
        a reference to this builder
      • withRenderStack

        Meta.Builder<A,​B> withRenderStack​(RenderStack stack)
        The render stack that represents which generation processes is waiting for this result.
        Parameters:
        stack - the render stack
        Returns:
        a reference to this builder
      • withRenderTree

        Meta.Builder<A,​B> withRenderTree​(RenderTree tree)
        Sets the tree that should represent the current rendering process.
        Parameters:
        tree - the render tree
        Returns:
        a reference to this builder
      • build

        Meta<A,​B> build()
        Builds this instance.
        Returns:
        the built instance