-
- Type Parameters:
A- the model typeB- the result type
public interface Meta<A,B>Meta information about the generation process.- Since:
- 2.0
- Author:
- Emil Forslund
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceMeta.Builder<A,B>Builder forMetaobjects.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <A,B>
Meta.Builder<A,B>builder(A model, B result)Returns a new builder.TransformFactorygetFactory()The factory that created the transform.AgetModel()The model that was sent to the generator.RenderStackgetRenderStack()The render stack that represents which generation processes is waiting for this result.RenderTreegetRenderTree()Returns a tree representation of the current rendering process.BgetResult()The result that was produced by the generator.Transform<A,B>getTransform()The transform that was used to produce the result.
-
-
-
Method Detail
-
getModel
A getModel()
The model that was sent to the generator.- Returns:
- the model
-
getResult
B getResult()
The result that was produced by the generator.- Returns:
- the model
-
getTransform
Transform<A,B> getTransform()
The transform that was used to produce the result.- Returns:
- the transform
-
getFactory
TransformFactory getFactory()
The factory that created the transform.- Returns:
- the factory
-
getRenderStack
RenderStack getRenderStack()
The render stack that represents which generation processes is waiting for this result.- Returns:
- the current render stack
-
getRenderTree
RenderTree getRenderTree()
Returns a tree representation of the current rendering process.- Returns:
- the rendering tree
-
builder
static <A,B> Meta.Builder<A,B> builder(A model, B result)
Returns a new builder.- Type Parameters:
A- the model typeB- the result type- Parameters:
model- the modelresult- the result- Returns:
- the builder instance.
-
-