use of org.whole.lang.tests.model.Kind in project whole by wholeplatform.
the class TestsLearningInterpreterVisitor method visit.
@Override
public void visit(HasKind entity) {
Kind kind = entity.getKind();
if (isLearning() && EntityUtils.isResolver(kind)) {
EntityKinds entityKind = getBindings().wGet("evaluatedSubject").wGetEntityKind();
Value entityKindValue = KindEnum.instance.valueOf(entityKind.name());
Kind learntKind = TestsEntityFactory.instance.createKind(entityKindValue);
putLearntEntity(kind, learntKind);
setResultVisitor(GenericTraversalFactory.instance.identity());
} else
super.visit(entity);
}
Aggregations