Search in sources :

Example 1 with AbstractVariableVisitor

use of org.whole.lang.matchers.GenericMatcherFactory.AbstractVariableVisitor in project whole by wholeplatform.

the class MatcherTest method testRemoveVars.

@Test
public void testRemoveVars() {
    IEntity pattern = new SimpleEntityPattern().create();
    Matcher.removeVars(pattern, true);
    GenericTraversalFactory.instance.topDown(new AbstractVariableVisitor() {

        public void visitVariable(Variable variable) {
            fail();
        }
    }, false).visit(pattern);
}
Also used : Variable(org.whole.lang.commons.model.Variable) IEntity(org.whole.lang.model.IEntity) AbstractVariableVisitor(org.whole.lang.matchers.GenericMatcherFactory.AbstractVariableVisitor) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 Variable (org.whole.lang.commons.model.Variable)1 AbstractVariableVisitor (org.whole.lang.matchers.GenericMatcherFactory.AbstractVariableVisitor)1 IEntity (org.whole.lang.model.IEntity)1