public interface NodeFactory<T>
Modifier and Type | Method and Description |
---|---|
T |
createNode(Object... arguments)
Instantiates the node using the arguments array.
|
List<Class<? extends Node>> |
getExecutionSignature()
Returns a list of children that will be executed by the created node.
|
Class<T> |
getNodeClass()
Returns the node class that will get created by
NodeFactory.createNode(Object...) . |
List<List<Class<?>>> |
getNodeSignatures()
Returns a list of signatures that can be used to invoke
NodeFactory.createNode(Object...) . |
default T |
getUncachedInstance()
Returns the uncached version of this node or
null if GenerateUncached
was not applied to the node. |
T createNode(Object... arguments)
NodeFactory.getNodeSignatures()
. If the arguments array does
not suffice one of the node signatures an IllegalArgumentException
is thrown.arguments
- the argument valuesIllegalArgumentException
Class<T> getNodeClass()
NodeFactory.createNode(Object...)
. The node
class does not match exactly to the instantiated object but they are guaranteed to be
assignable.List<List<Class<?>>> getNodeSignatures()
NodeFactory.createNode(Object...)
.List<Class<? extends Node>> getExecutionSignature()
default T getUncachedInstance()
null
if GenerateUncached
was not applied to the node.