public interface NodeBuilder<E extends Node>
Modifier and Type | Method and Description |
---|---|
E |
build()
Builds a
Node and returns it. |
E |
buildAndAdd(NodeManager nodeManager)
Builds a
Node and returns it. |
E build()
Node
and returns it. Any Reference
's will need to be added using
a NodeManager
by the caller.Node
.E buildAndAdd(NodeManager nodeManager)
Node
and returns it.
Before being returned:
Reference
s that are needed to fully construct the Node
, such as
ReferenceType.HasTypeDefinition
, will be added using nodeManager.Node
will be added to nodeManager.nodeManager
- A NodeManager
.Node
.