Class SubqueryTranslator

java.lang.Object
ch.tocco.nice2.conditionals.api.tree.processing.BaseNodeVisitor
ch.tocco.nice2.security.spi.util.SubqueryTranslator
All Implemented Interfaces:
NodeVisitor

public class SubqueryTranslator extends BaseNodeVisitor
Translates the subquery keywords from ACL to another language. The function call paths in ACL and PersistQL use different keywords because they're actually two separate languages with separate parsers. For example, the keyword for `exists` in ACL is indicated by SubqueryKeywords.EXISTS in ACL, but QueryCompiler.Subqueries.EXISTS in PersistQL, even though the syntax is actually the same. This class translates the keywords from one language to another.