use of org.eclipse.xtext.nodemodel.impl.CompositeNode in project xtext-core by eclipse.
the class NodeIteratorTest method setUp.
@Before
public void setUp() throws Exception {
NodeModelBuilder builder = new NodeModelBuilder();
nodes = new INode[NUM_NODES];
nodes[0] = new CompositeNode();
nodes[1] = new LeafNode();
nodes[2] = new CompositeNode();
nodes[3] = new CompositeNode();
nodes[4] = new LeafNode();
nodes[5] = new LeafNode();
nodes[6] = new LeafNode();
nodes[7] = new CompositeNode();
nodes[8] = new LeafNode();
nodes[9] = new LeafNode();
nodes[10] = new CompositeNode();
builder.addChild((ICompositeNode) nodes[0], (AbstractNode) nodes[1]);
builder.addChild((ICompositeNode) nodes[0], (AbstractNode) nodes[2]);
builder.addChild((ICompositeNode) nodes[2], (AbstractNode) nodes[3]);
builder.addChild((ICompositeNode) nodes[3], (AbstractNode) nodes[4]);
builder.addChild((ICompositeNode) nodes[3], (AbstractNode) nodes[5]);
builder.addChild((ICompositeNode) nodes[2], (AbstractNode) nodes[6]);
builder.addChild((ICompositeNode) nodes[2], (AbstractNode) nodes[7]);
builder.addChild((ICompositeNode) nodes[2], (AbstractNode) nodes[8]);
builder.addChild((ICompositeNode) nodes[0], (AbstractNode) nodes[9]);
builder.addChild((ICompositeNode) nodes[0], (AbstractNode) nodes[10]);
}
Aggregations