Lines Matching refs:pParseNode
99 KabCondition *KabCommonStatement::analyseWhereClause(const OSQLParseNode *pParseNode) const throw(S… in analyseWhereClause()
101 if (pParseNode->count() == 3) in analyseWhereClause()
103 const OSQLParseNode *pLeft = pParseNode->getChild(0), in analyseWhereClause()
104 *pMiddle = pParseNode->getChild(1), in analyseWhereClause()
105 *pRight = pParseNode->getChild(2); in analyseWhereClause()
112 else if (SQL_ISRULE(pParseNode, comparison_predicate)) in analyseWhereClause()
163 else if (SQL_ISRULE(pParseNode, search_condition)) in analyseWhereClause()
173 else if (SQL_ISRULE(pParseNode, boolean_term)) in analyseWhereClause()
184 else if (SQL_ISRULE(pParseNode, test_for_null) || SQL_ISRULE(pParseNode, like_predicate)) in analyseWhereClause()
186 const OSQLParseNode *pLeft = pParseNode->getChild(0); in analyseWhereClause()
187 const OSQLParseNode* pPart2 = pParseNode->getChild(1); in analyseWhereClause()
192 if (SQL_ISRULE(pParseNode, test_for_null)) in analyseWhereClause()
215 else if (SQL_ISRULE(pParseNode, like_predicate)) in analyseWhereClause()
246 KabOrder *KabCommonStatement::analyseOrderByClause(const OSQLParseNode *pParseNode) const throw(SQL… in analyseOrderByClause()
248 if (SQL_ISRULE(pParseNode, ordering_spec_commalist)) in analyseOrderByClause()
251 sal_uInt32 n = pParseNode->count(); in analyseOrderByClause()
257 (analyseOrderByClause(pParseNode->getChild(i))); in analyseOrderByClause()
262 else if (SQL_ISRULE(pParseNode, ordering_spec)) in analyseOrderByClause()
264 if (pParseNode->count() == 2) in analyseOrderByClause()
266 OSQLParseNode* pColumnRef = pParseNode->getChild(0); in analyseOrderByClause()
267 OSQLParseNode* pAscendingDescending = pParseNode->getChild(1); in analyseOrderByClause()
323 const OSQLParseNode *pParseNode; in selectAddressees() local
326 pParseNode = m_aSQLIterator.getWhereTree(); in selectAddressees()
327 if (pParseNode != NULL) in selectAddressees()
329 if (SQL_ISRULE(pParseNode, where_clause)) in selectAddressees()
332 pParseNode = pParseNode->getChild(1); in selectAddressees()
333 pCondition = analyseWhereClause(pParseNode); in selectAddressees()
349 const OSQLParseNode *pParseNode; in sortAddressees() local
352 pParseNode = m_aSQLIterator.getOrderTree(); in sortAddressees()
353 if (pParseNode != NULL) in sortAddressees()
355 if (SQL_ISRULE(pParseNode, opt_order_by_clause)) in sortAddressees()
357 pParseNode = pParseNode->getChild(2); in sortAddressees()
358 pOrder = analyseOrderByClause(pParseNode); in sortAddressees()