use of org.whole.lang.visitors.IVisitor in project whole by wholeplatform.
the class TestsInterpreterVisitor method visit.
@Override
public void visit(AllOf entity) {
int size = entity.wSize();
IVisitor[] visitors = new IVisitor[size];
for (int i = 0; i < size; i++) {
entity.get(i).accept(this);
visitors[i] = getResultVisitor();
}
setResultVisitor(GenericTraversalFactory.instance.all(visitors).withSourceEntity(entity));
}
use of org.whole.lang.visitors.IVisitor in project whole by wholeplatform.
the class TestsInterpreterVisitor method visit.
@Override
public void visit(IsDef entity) {
IVisitor v = TestsMatcherFactory.instance.defined();
v.withSourceEntity(entity).setBindings(getBindings());
setResultVisitor(v);
}
use of org.whole.lang.visitors.IVisitor in project whole by wholeplatform.
the class TestsInterpreterVisitor method visit.
@Override
public void visit(Throws entity) {
String className = entity.getThrowableType().getValue();
IVisitor v = TestsMatcherFactory.instance.hasThrown(className);
v.withSourceEntity(entity).setBindings(getBindings());
setResultVisitor(v);
}
Aggregations