Absimpa v684

absimpa
Interface NodeFactory<N>

Type Parameters:
N - is the type of node being created.

public interface NodeFactory<N>

creates a new N from a list of N objects provided by a parser. Whenever a parser recognizes a piece of input, the sub-pieces where already mapped to objects of type N. The list of these objects is passed by the parser to its NodeFactory to obtain a combined N.


Method Summary
 N create(java.util.List<N> children)
           creates a new N from the child objects.
 

Method Detail

create

N create(java.util.List<N> children)

creates a new N from the child objects. This list of children may be empty, but it will not contain null elements.

Returns:
an N or null. A return value of null will not be put into a list of nodes on the level above, but will be discarded.

Absimpa v684