LibreOffice Module connectivity (master) 1
Classes | Namespaces | Macros | Typedefs | Enumerations
sqlnode.hxx File Reference
#include <connectivity/dbtoolsdllapi.hxx>
#include <connectivity/dbmetadata.hxx>
#include <com/sun/star/uno/Reference.hxx>
#include <memory>
#include <set>
#include <string_view>
#include <vector>
#include <rtl/ustrbuf.hxx>
Include dependency graph for sqlnode.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  connectivity::SQLParseNodeParameter
 
class  connectivity::OSQLParseNode
 

Namespaces

namespace  com
 
namespace  com::sun
 
namespace  com::sun::star
 
namespace  com::sun::star::lang
 
namespace  com::sun::star::sdbc
 
namespace  com::sun::star::beans
 
namespace  com::sun::star::util
 
namespace  com::sun::star::container
 
namespace  connectivity
 

Macros

#define ORDER_BY_CHILD_POS   5
 
#define TABLE_EXPRESSION_CHILD_COUNT   9
 
#define SQL_ISRULE(pParseNode, eRule)   ((pParseNode)->isRule() && (pParseNode)->getRuleID() == OSQLParser::RuleID(OSQLParseNode::eRule))
 
#define SQL_ISRULEOR2(pParseNode, e1, e2)
 
#define SQL_ISRULEOR3(pParseNode, e1, e2, e3)
 
#define SQL_ISTOKEN(pParseNode, token)   ((pParseNode)->isToken() && (pParseNode)->getTokenID() == SQL_TOKEN_##token)
 
#define SQL_ISTOKENOR2(pParseNode, tok0, tok1)   ((pParseNode)->isToken() && ( (pParseNode)->getTokenID() == SQL_TOKEN_##tok0 || (pParseNode)->getTokenID() == SQL_TOKEN_##tok1 ))
 
#define SQL_ISTOKENOR3(pParseNode, tok0, tok1, tok2)   ((pParseNode)->isToken() && ( (pParseNode)->getTokenID() == SQL_TOKEN_##tok0 || (pParseNode)->getTokenID() == SQL_TOKEN_##tok1 || (pParseNode)->getTokenID() == SQL_TOKEN_##tok2 ))
 
#define SQL_ISPUNCTUATION(pParseNode, aString)   ((pParseNode)->getNodeType() == SQLNodeType::Punctuation && (pParseNode)->getTokenValue() == (aString))
 

Typedefs

typedef ::std::set< OUString > connectivity::QueryNameSet
 

Enumerations

enum class  connectivity::SQLNodeType {
  connectivity::Rule ,
  connectivity::ListRule ,
  connectivity::CommaListRule ,
  connectivity::Keyword ,
  connectivity::Name ,
  connectivity::String ,
  connectivity::IntNum ,
  connectivity::ApproxNum ,
  connectivity::Equal ,
  connectivity::Less ,
  connectivity::Great ,
  connectivity::LessEq ,
  connectivity::GreatEq ,
  connectivity::NotEqual ,
  connectivity::Punctuation ,
  connectivity::AccessDate ,
  connectivity::Concat
}
 

Macro Definition Documentation

◆ ORDER_BY_CHILD_POS

#define ORDER_BY_CHILD_POS   5

Definition at line 51 of file sqlnode.hxx.

◆ SQL_ISPUNCTUATION

#define SQL_ISPUNCTUATION (   pParseNode,
  aString 
)    ((pParseNode)->getNodeType() == SQLNodeType::Punctuation && (pParseNode)->getTokenValue() == (aString))

Definition at line 450 of file sqlnode.hxx.

◆ SQL_ISRULE

#define SQL_ISRULE (   pParseNode,
  eRule 
)    ((pParseNode)->isRule() && (pParseNode)->getRuleID() == OSQLParser::RuleID(OSQLParseNode::eRule))

Definition at line 439 of file sqlnode.hxx.

◆ SQL_ISRULEOR2

#define SQL_ISRULEOR2 (   pParseNode,
  e1,
  e2 
)
Value:
((pParseNode)->isRule() && ( \
(pParseNode)->getRuleID() == OSQLParser::RuleID(OSQLParseNode::e1) || \
(pParseNode)->getRuleID() == OSQLParser::RuleID(OSQLParseNode::e2)))

Definition at line 440 of file sqlnode.hxx.

◆ SQL_ISRULEOR3

#define SQL_ISRULEOR3 (   pParseNode,
  e1,
  e2,
  e3 
)
Value:
((pParseNode)->isRule() && ( \
(pParseNode)->getRuleID() == OSQLParser::RuleID(OSQLParseNode::e1) || \
(pParseNode)->getRuleID() == OSQLParser::RuleID(OSQLParseNode::e2) || \
(pParseNode)->getRuleID() == OSQLParser::RuleID(OSQLParseNode::e3)))

Definition at line 443 of file sqlnode.hxx.

◆ SQL_ISTOKEN

#define SQL_ISTOKEN (   pParseNode,
  token 
)    ((pParseNode)->isToken() && (pParseNode)->getTokenID() == SQL_TOKEN_##token)

Definition at line 447 of file sqlnode.hxx.

◆ SQL_ISTOKENOR2

#define SQL_ISTOKENOR2 (   pParseNode,
  tok0,
  tok1 
)    ((pParseNode)->isToken() && ( (pParseNode)->getTokenID() == SQL_TOKEN_##tok0 || (pParseNode)->getTokenID() == SQL_TOKEN_##tok1 ))

Definition at line 448 of file sqlnode.hxx.

◆ SQL_ISTOKENOR3

#define SQL_ISTOKENOR3 (   pParseNode,
  tok0,
  tok1,
  tok2 
)    ((pParseNode)->isToken() && ( (pParseNode)->getTokenID() == SQL_TOKEN_##tok0 || (pParseNode)->getTokenID() == SQL_TOKEN_##tok1 || (pParseNode)->getTokenID() == SQL_TOKEN_##tok2 ))

Definition at line 449 of file sqlnode.hxx.

◆ TABLE_EXPRESSION_CHILD_COUNT

#define TABLE_EXPRESSION_CHILD_COUNT   9

Definition at line 52 of file sqlnode.hxx.