public AttributeEvaluator build(TreeStructure tree) {
BasicAttributeEvaluator evaluator = new BasicAttributeEvaluator();
Instantiator instantiator = new Instantiator();
for (Attribute a : attributes.values()) {
AttributeHandler handler = a.createHandler(tree, instantiator, true);
evaluator.addAttribute(handler);
}
for (Object o : instantiator.getInstances().values()) {
((Module<?>) o).setEvaluator(evaluator);
}
return evaluator;