Search in sources :

Example 1 with ParameterCounter

use of com.haulmont.cuba.core.sys.jpql.transform.ParameterCounter in project cuba by cuba-platform.

the class QueryParserAstBased method getParamNames.

@Override
public Set<String> getParamNames() {
    TreeVisitor visitor = new TreeVisitor();
    ParameterCounter parameterCounter = new ParameterCounter(true);
    visitor.visit(getQueryAnalyzer().getTree(), parameterCounter);
    return parameterCounter.getParameterNames();
}
Also used : TreeVisitor(org.antlr.runtime.tree.TreeVisitor) ParameterCounter(com.haulmont.cuba.core.sys.jpql.transform.ParameterCounter)

Aggregations

ParameterCounter (com.haulmont.cuba.core.sys.jpql.transform.ParameterCounter)1 TreeVisitor (org.antlr.runtime.tree.TreeVisitor)1