Search in sources :

Example 1 with DependencyVisitor

use of pcgen.base.formula.visitor.DependencyVisitor in project pcgen by PCGen.

the class AbstractFormulaTestCase method getVariables.

protected List<VariableID<?>> getVariables(SimpleNode node) {
    DependencyManager fdm = generateDependencyManager(getFormulaManager(), getGlobalScopeInst(), null);
    new DependencyVisitor().visit(node, fdm);
    return fdm.getVariables();
}
Also used : DependencyVisitor(pcgen.base.formula.visitor.DependencyVisitor) DependencyManager(pcgen.base.formula.base.DependencyManager)

Example 2 with DependencyVisitor

use of pcgen.base.formula.visitor.DependencyVisitor in project pcgen by PCGen.

the class AbstractFormulaTestCase method getVariables.

protected List<VariableID<?>> getVariables(SimpleNode node) {
    DependencyManager fdm = managerFactory.generateDependencyManager(getFormulaManager(), getGlobalScopeInst(), null);
    new DependencyVisitor().visit(node, fdm);
    return fdm.getVariables();
}
Also used : DependencyVisitor(pcgen.base.formula.visitor.DependencyVisitor) DependencyManager(pcgen.base.formula.base.DependencyManager)

Aggregations

DependencyManager (pcgen.base.formula.base.DependencyManager)2 DependencyVisitor (pcgen.base.formula.visitor.DependencyVisitor)2