Lines Matching refs:parseTree
287 EBookQuery *OCommonStatement::whereAnalysis( const OSQLParseNode* parseTree ) in whereAnalysis() argument
291 ENSURE_OR_THROW( parseTree, "invalid parse tree" ); in whereAnalysis()
294 if( parseTree->count() == 3 && in whereAnalysis()
295 SQL_ISPUNCTUATION( parseTree->getChild( 0 ), "(" ) && in whereAnalysis()
296 SQL_ISPUNCTUATION( parseTree->getChild( 2 ), ")" ) ) in whereAnalysis()
298 pResult = whereAnalysis( parseTree->getChild( 1 ) ); in whereAnalysis()
302 else if( ( SQL_ISRULE( parseTree, search_condition ) || in whereAnalysis()
303 SQL_ISRULE( parseTree, boolean_term ) ) && in whereAnalysis()
304 parseTree->count() == 3 ) in whereAnalysis()
306 ENSURE_OR_THROW( SQL_ISTOKEN( parseTree->getChild( 1 ), OR ) in whereAnalysis()
307 || SQL_ISTOKEN( parseTree->getChild( 1 ), AND ), in whereAnalysis()
311 pArgs[0] = whereAnalysis( parseTree->getChild( 0 ) ); in whereAnalysis()
312 pArgs[1] = whereAnalysis( parseTree->getChild( 2 ) ); in whereAnalysis()
314 if( SQL_ISTOKEN( parseTree->getChild( 1 ), OR ) ) in whereAnalysis()
320 else if( SQL_ISRULE( parseTree, comparison_predicate ) ) in whereAnalysis()
322 OSQLParseNode *pPrec = parseTree->getChild( 1 ); in whereAnalysis()
324 ENSURE_OR_THROW( parseTree->count() == 3, "unexpected comparison_predicate structure" ); in whereAnalysis()
326 OSQLParseNode* pLHS = parseTree->getChild( 0 ); in whereAnalysis()
327 OSQLParseNode* pRHS = parseTree->getChild( 2 ); in whereAnalysis()
378 else if( SQL_ISRULE( parseTree, like_predicate ) ) in whereAnalysis()
380 ENSURE_OR_THROW( parseTree->count() == 2, "unexpected like_predicate structure" ); in whereAnalysis()
381 const OSQLParseNode* pPart2 = parseTree->getChild(1); in whereAnalysis()
383 if( ! SQL_ISRULE( parseTree->getChild( 0 ), column_ref) ) in whereAnalysis()
386 … ::rtl::OUString aColumnName( impl_getColumnRefColumnName_throw( *parseTree->getChild( 0 ) ) ); in whereAnalysis()
490 m_pParseTree = m_aParser.parseTree( aErr, sql ); in parseSql()