Qt 4.8
|
#include <limits>
#include <QUrl>
#include "qabstractfloat_p.h"
#include "qandexpression_p.h"
#include "qanyuri_p.h"
#include "qapplytemplate_p.h"
#include "qargumentreference_p.h"
#include "qarithmeticexpression_p.h"
#include "qatomicstring_p.h"
#include "qattributeconstructor_p.h"
#include "qattributenamevalidator_p.h"
#include "qaxisstep_p.h"
#include "qbuiltintypes_p.h"
#include "qcalltemplate_p.h"
#include "qcastableas_p.h"
#include "qcastas_p.h"
#include "qcombinenodes_p.h"
#include "qcommentconstructor_p.h"
#include "qcommonnamespaces_p.h"
#include "qcommonsequencetypes_p.h"
#include "qcommonvalues_p.h"
#include "qcomputednamespaceconstructor_p.h"
#include "qcontextitem_p.h"
#include "qcopyof_p.h"
#include "qcurrentitemstore_p.h"
#include "qdebug_p.h"
#include "qdelegatingnamespaceresolver_p.h"
#include "qdocumentconstructor_p.h"
#include "qelementconstructor_p.h"
#include "qemptysequence_p.h"
#include "qemptysequencetype_p.h"
#include "qevaluationcache_p.h"
#include "qexpressionfactory_p.h"
#include "qexpressionsequence_p.h"
#include "qexpressionvariablereference_p.h"
#include "qexternalvariablereference_p.h"
#include "qforclause_p.h"
#include "qfunctioncall_p.h"
#include "qfunctionfactory_p.h"
#include "qfunctionsignature_p.h"
#include "qgeneralcomparison_p.h"
#include "qgenericpredicate_p.h"
#include "qgenericsequencetype_p.h"
#include "qifthenclause_p.h"
#include "qinstanceof_p.h"
#include "qletclause_p.h"
#include "qliteral_p.h"
#include "qlocalnametest_p.h"
#include "qnamespaceconstructor_p.h"
#include "qnamespacenametest_p.h"
#include "qncnameconstructor_p.h"
#include "qnodecomparison_p.h"
#include "qnodesort_p.h"
#include "qorderby_p.h"
#include "qorexpression_p.h"
#include "qparsercontext_p.h"
#include "qpath_p.h"
#include "qpatternistlocale_p.h"
#include "qpositionalvariablereference_p.h"
#include "qprocessinginstructionconstructor_p.h"
#include "qqnameconstructor_p.h"
#include "qqnametest_p.h"
#include "qqnamevalue_p.h"
#include "qquantifiedexpression_p.h"
#include "qrangeexpression_p.h"
#include "qrangevariablereference_p.h"
#include "qreturnorderby_p.h"
#include "qschemanumeric_p.h"
#include "qschematypefactory_p.h"
#include "qsimplecontentconstructor_p.h"
#include "qstaticbaseuristore_p.h"
#include "qstaticcompatibilitystore_p.h"
#include "qtemplateparameterreference_p.h"
#include "qtemplate_p.h"
#include "qtextnodeconstructor_p.h"
#include "qtokenizer_p.h"
#include "qtreatas_p.h"
#include "qtypechecker_p.h"
#include "qunaryexpression_p.h"
#include "qunresolvedvariablereference_p.h"
#include "quserfunctioncallsite_p.h"
#include "qvaluecomparison_p.h"
#include "qxpathhelper_p.h"
#include "qxsltsimplecontentconstructor_p.h"
#include <stddef.h>
Go to the source code of this file.
Classes | |
class | QPatternist::ReflectYYLTYPE |
Namespaces | |
QPatternist | |
The namespace for the internal API of QtXmlPatterns. | |
Macros | |
#define | YY_(msgid) msgid |
#define | YY_LOCATION_PRINT(File, Loc) ((void) 0) |
#define | YY_REDUCE_PRINT(Rule) |
#define | YY_STACK_PRINT(Bottom, Top) |
#define | YY_SYMBOL_PRINT(Title, Type, Value, Location) |
#define | YYABORT goto yyabortlab |
#define | YYACCEPT goto yyacceptlab |
#define | YYBACKUP(Token, Value) |
#define | YYBISON 1 |
#define | YYBISON_VERSION "2.3a" |
#define | yychar XPathchar |
#define | yyclearin (yychar = YYEMPTY) |
#define | yydebug XPathdebug |
#define | YYDEBUG 0 |
#define | YYDPRINTF(Args) |
#define | YYEMPTY (-2) |
#define | YYENABLE_NLS 0 |
#define | YYEOF 0 |
#define | YYERRCODE 256 |
#define | yyerrok (yyerrstatus = 0) |
#define | yyerror XPatherror |
#define | YYERROR goto yyerrorlab |
#define | YYERROR_VERBOSE 1 |
#define | YYERROR_VERBOSE 1 |
#define | YYFAIL goto yyerrlab |
#define | YYFINAL 5 |
#define | YYFREE free |
#define | YYID(n) (n) |
#define | YYINITDEPTH 200 |
#define | YYLAST 2052 |
#define | yylex XPathlex |
#define | YYLEX yylex (&yylval, &yylloc, parseInfo) |
#define | yylloc XPathlloc |
#define | YYLLOC_DEFAULT(Current, Rhs, N) |
#define | YYLSP_NEEDED 1 |
#define | YYLTYPE_IS_TRIVIAL 0 |
#define | yylval XPathlval |
#define | YYMALLOC malloc |
#define | YYMAXDEPTH 10000 |
#define | YYMAXUTOK 423 |
#define | yynerrs XPathnerrs |
#define | YYNNTS 237 |
#define | YYNRULES 472 |
#define | YYNSTATES 812 |
#define | YYNTOKENS 169 |
#define | YYPACT_NINF -668 |
#define | yyparse XPathparse |
#define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N)) |
#define | YYPURE 1 |
#define | YYRECOVERING() (!!yyerrstatus) |
#define | YYRHSLOC(Rhs, K) ((Rhs)[K]) |
#define | YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
#define | YYSIZE_T size_t |
#define | YYSKELETON_NAME "yacc.c" |
#define | YYSTACK_ALLOC YYMALLOC |
#define | YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
#define | YYSTACK_FREE YYFREE |
#define | YYTABLE_NINF -463 |
#define | YYTERROR 1 |
#define | YYTOKEN_TABLE 0 |
#define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define | YYUNDEFTOK 2 |
#define | YYUSE(e) ((void) (e)) |
Typedefs | |
typedef short int | QPatternist::yytype_int16 |
typedef signed char | QPatternist::yytype_int8 |
typedef unsigned short int | QPatternist::yytype_uint16 |
typedef unsigned char | QPatternist::yytype_uint8 |
Functions | |
static void | QPatternist::allowedIn (const QueryLanguages allowedLanguages, const ParserContext *const parseInfo, const YYLTYPE &sourceLocator, const bool isInternal=false) |
Flags invalid expressions and declarations in the currently parsed language. More... | |
static void | QPatternist::changeToTopAxis (const Expression::Ptr &op) |
static void | QPatternist::checkVariableCircularity (const VariableDeclaration::Ptr &var, const Expression::Ptr &checkee, const VariableDeclaration::Type type, FunctionSignature::List &signList, const ParserContext *const parseInfo) |
Checks for variable initialization circularity. More... | |
static Expression::Ptr | QPatternist::create (Expression *const expr, const YYLTYPE &sourceLocator, const ParserContext *const parseInfo) |
static Template::Ptr | QPatternist::create (Template *const expr, const YYLTYPE &sourceLocator, const ParserContext *const parseInfo) |
static Expression::Ptr | QPatternist::create (const Expression::Ptr &expr, const YYLTYPE &sourceLocator, const ParserContext *const parseInfo) |
static Expression::Ptr | QPatternist::createCompatStore (const Expression::Ptr &expr, const YYLTYPE &sourceLocator, const ParserContext *const parseInfo) |
static Expression::Ptr | QPatternist::createConcatFN (const ParserContext *const parseInfo, const Expression::List &args, const YYLTYPE &sourceLocator) |
Creates a call to fn:concat() with args as the arguments. More... | |
static Expression::Ptr | QPatternist::createCopyOf (const Expression::Ptr &operand, const ParserContext *const parseInfo, const YYLTYPE &sl) |
static Expression::Ptr | QPatternist::createDirAttributeValue (const Expression::List &content, const ParserContext *const parseInfo, const YYLTYPE &sourceLocator) |
static Expression::Ptr | QPatternist::createIdPatternPath (const Expression::Ptr &operand1, const Expression::Ptr &operand2, const QXmlNodeModelIndex::Axis axis, const YYLTYPE &sl, const ParserContext *const parseInfo) |
Performs the same role as createPatternPath(), but is tailored for fn:key() and fn:id() . More... | |
template<typename TNumberClass > | |
Expression::Ptr | QPatternist::createNumericLiteral (const QString &in, const YYLTYPE &sl, const ParserContext *const parseInfo) |
Centralizes code for creating numeric literals. More... | |
static Expression::Ptr | QPatternist::createPatternPath (const Expression::Ptr &operand1, const Expression::Ptr &operand2, const QXmlNodeModelIndex::Axis axis, const YYLTYPE &sl, const ParserContext *const parseInfo) |
Writes operand1 and operand2 , two operands in an XSL-T pattern, into an equivalent XPath expression. More... | |
static Expression::Ptr | QPatternist::createReturnOrderBy (const OrderSpecTransfer::List &orderSpecTransfer, const Expression::Ptr &returnExpr, const OrderBy::Stability stability, const YYLTYPE &sourceLocator, const ParserContext *const parseInfo) |
static Expression::Ptr | QPatternist::createRootExpression (const ParserContext *const parseInfo, const YYLTYPE &sl) |
Creates an Expression that corresponds to / . This is literally fn:root(self::node()) treat as document-node() . More... | |
static Expression::Ptr | QPatternist::createSimpleContent (const Expression::Ptr &source, const YYLTYPE &sourceLocator, const ParserContext *const parseInfo) |
static Expression::Ptr | QPatternist::createSlashSlashPath (const Expression::Ptr &begin, const Expression::Ptr &end, const YYLTYPE &sourceLocator, const ParserContext *const parseInfo) |
Creates a path expression which contains the step // between begin and and end . More... | |
static Expression::Ptr | QPatternist::findAxisStep (const Expression::Ptr &expr, const bool throughStructures=true) |
static QSourceLocation | QPatternist::fromYYLTYPE (const YYLTYPE &sourceLocator, const ParserContext *const parseInfo) |
static bool | QPatternist::isPredicate (const Expression::ID id) |
static bool | QPatternist::isVariableReference (const Expression::ID id) |
static void | QPatternist::loadPattern (const Expression::Ptr &matchPattern, TemplatePattern::Vector &ourPatterns, const TemplatePattern::ID id, const PatternPriority priority, const Template::Ptr &temp) |
static ReturnOrderBy * | QPatternist::locateReturnClause (const Expression::Ptr &expr) |
static QString | QPatternist::prologMessage (const char *const msg) |
Centralizes a translation message, for the purpose of consistency and modularization. More... | |
static Expression::Ptr | QPatternist::pushVariable (const QXmlName name, const SequenceType::Ptr &seqType, const Expression::Ptr &expr, const VariableDeclaration::Type type, const YYLTYPE &sourceLocator, ParserContext *const parseInfo, const bool checkSource=true) |
static SequenceType::Ptr | QPatternist::quantificationType (const SequenceType::Ptr &type) |
static void | QPatternist::registerNamedTemplate (const QXmlName &name, const Expression::Ptr &body, ParserContext *const parseInfo, const YYLTYPE &sourceLocator, const Template::Ptr &temp) |
template<const ReportContext::ErrorCode errorCode> | |
static QUrl | QPatternist::resolveAndCheckCollation (const QString &collation, const ParserContext *const parseInfo, const YYLTYPE &sl) |
Resolves against the static base URI and checks that collation is a supported Unicode Collation. More... | |
static Expression::Ptr | QPatternist::resolveVariable (const QXmlName &name, const YYLTYPE &sourceLocator, ParserContext *const parseInfo, const bool raiseErrorOnUnavailability) |
static Expression::Ptr | QPatternist::typeCheckTemplateBody (const Expression::Ptr &body, const SequenceType::Ptr &reqType, const ParserContext *const parseInfo) |
static QString | QPatternist::unknownType () |
Centralizes a translation string for the purpose of increasing consistency. More... | |
static VariableDeclaration::Ptr | QPatternist::variableByName (const QXmlName name, const ParserContext *const parseInfo) |
static void | QPatternist::variableUnavailable (const QXmlName &variableName, const ParserContext *const parseInfo, const YYLTYPE &location) |
static int | QPatternist::XPatherror (YYLTYPE *sourceLocator, const ParserContext *const parseInfo, const char *const msg) |
The generated Bison parser calls this function when there is a parse error. More... | |
static int | QPatternist::XPathlex (YYSTYPE *lexVal, YYLTYPE *sourceLocator, const ParserContext *const parseInfo) |
static void | QPatternist::yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp, ParserContext *const parseInfo) |
int | QPatternist::yyparse (ParserContext *const parseInfo) |
static char * | QPatternist::yystpcpy (char *yydest, const char *yysrc) |
static YYSIZE_T | QPatternist::yystrlen (const char *yystr) |
static YYSIZE_T | QPatternist::yysyntax_error (char *yyresult, int yystate, int yychar) |
static YYSIZE_T | QPatternist::yytnamerr (char *yyres, const char *yystr) |
Variables | |
static const yytype_int16 | QPatternist::yycheck [] |
static const yytype_uint16 | QPatternist::yydefact [] |
static const yytype_int16 | QPatternist::yydefgoto [] |
static const yytype_int16 | QPatternist::yypact [] |
static const yytype_int16 | QPatternist::yypgoto [] |
static const yytype_uint16 | QPatternist::yyr1 [] |
static const yytype_uint8 | QPatternist::yyr2 [] |
static const yytype_uint16 | QPatternist::yystos [] |
static const yytype_int16 | QPatternist::yytable [] |
static const char *const | QPatternist::yytname [] |
static const yytype_uint8 | QPatternist::yytranslate [] |
#define YY_ | ( | msgid | ) | msgid |
Definition at line 1399 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse(), and QPatternist::yysyntax_error().
#define YY_LOCATION_PRINT | ( | File, | |
Loc | |||
) | ((void) 0) |
Definition at line 2936 of file qquerytransformparser.cpp.
#define YY_REDUCE_PRINT | ( | Rule | ) |
Definition at line 3119 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
Definition at line 3118 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
#define YY_SYMBOL_PRINT | ( | Title, | |
Type, | |||
Value, | |||
Location | |||
) |
Definition at line 3117 of file qquerytransformparser.cpp.
Referenced by QPatternist::yydestruct(), and QPatternist::yyparse().
#define YYABORT goto yyabortlab |
Definition at line 2865 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
#define YYACCEPT goto yyacceptlab |
Definition at line 2864 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
#define YYBACKUP | ( | Token, | |
Value | |||
) |
Definition at line 2877 of file qquerytransformparser.cpp.
#define YYBISON 1 |
Definition at line 88 of file qquerytransformparser.cpp.
#define YYBISON_VERSION "2.3a" |
Definition at line 91 of file qquerytransformparser.cpp.
#define yychar XPathchar |
Definition at line 107 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
Definition at line 2860 of file qquerytransformparser.cpp.
#define yydebug XPathdebug |
Definition at line 108 of file qquerytransformparser.cpp.
#define YYDEBUG 0 |
Definition at line 1124 of file qquerytransformparser.cpp.
#define YYDPRINTF | ( | Args | ) |
Definition at line 3116 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
#define YYEMPTY (-2) |
Definition at line 2861 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
#define YYENABLE_NLS 0 |
Definition at line 231 of file qquerytransformparser.cpp.
#define YYEOF 0 |
Definition at line 2862 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
#define YYERRCODE 256 |
Definition at line 2896 of file qquerytransformparser.cpp.
#define yyerrok (yyerrstatus = 0) |
Definition at line 2859 of file qquerytransformparser.cpp.
#define yyerror XPatherror |
Definition at line 105 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
#define YYERROR goto yyerrorlab |
Definition at line 2866 of file qquerytransformparser.cpp.
#define YYERROR_VERBOSE 1 |
"Macro that you define with #define in the Bison declarations section to request verbose, specific error message strings when yyerror is called."
Definition at line 1130 of file qquerytransformparser.cpp.
#define YYERROR_VERBOSE 1 |
"Macro that you define with #define in the Bison declarations section to request verbose, specific error message strings when yyerror is called."
Definition at line 1130 of file qquerytransformparser.cpp.
#define YYFAIL goto yyerrlab |
Definition at line 2873 of file qquerytransformparser.cpp.
#define YYFINAL 5 |
Definition at line 1557 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
#define YYFREE free |
Definition at line 208 of file qquerytransformparser.cpp.
#define YYID | ( | n | ) | (n) |
Definition at line 1412 of file qquerytransformparser.cpp.
#define YYINITDEPTH 200 |
Definition at line 3125 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
#define YYLAST 2052 |
Definition at line 1559 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse(), and QPatternist::yysyntax_error().
#define yylex XPathlex |
Definition at line 104 of file qquerytransformparser.cpp.
Definition at line 2946 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
#define yylloc XPathlloc |
Definition at line 110 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
#define YYLLOC_DEFAULT | ( | Current, | |
Rhs, | |||
N | |||
) |
Definition at line 2905 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
#define YYLSP_NEEDED 1 |
Definition at line 100 of file qquerytransformparser.cpp.
#define YYLTYPE_IS_TRIVIAL 0 |
Definition at line 225 of file qquerytransformparser.cpp.
#define yylval XPathlval |
Definition at line 106 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
#define YYMALLOC malloc |
Definition at line 207 of file qquerytransformparser.cpp.
#define YYMAXDEPTH 10000 |
Definition at line 3136 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
#define YYMAXUTOK 423 |
Definition at line 1572 of file qquerytransformparser.cpp.
#define yynerrs XPathnerrs |
Definition at line 109 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
#define YYNNTS 237 |
Definition at line 1564 of file qquerytransformparser.cpp.
#define YYNRULES 472 |
Definition at line 1566 of file qquerytransformparser.cpp.
#define YYNSTATES 812 |
Definition at line 1568 of file qquerytransformparser.cpp.
#define YYNTOKENS 169 |
Definition at line 1562 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse(), and QPatternist::yysyntax_error().
#define YYPACT_NINF -668 |
Definition at line 2230 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse(), and QPatternist::yysyntax_error().
#define yyparse XPathparse |
Definition at line 103 of file qquerytransformparser.cpp.
#define YYPOPSTACK | ( | N | ) | (yyvsp -= (N), yyssp -= (N), yylsp -= (N)) |
Referenced by QPatternist::yyparse().
#define YYPURE 1 |
Definition at line 97 of file qquerytransformparser.cpp.
#define YYRECOVERING | ( | ) | (!!yyerrstatus) |
Definition at line 2875 of file qquerytransformparser.cpp.
#define YYRHSLOC | ( | Rhs, | |
K | |||
) | ((Rhs)[K]) |
Definition at line 2903 of file qquerytransformparser.cpp.
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
Definition at line 1389 of file qquerytransformparser.cpp.
Referenced by QPatternist::yysyntax_error().
#define YYSIZE_T size_t |
Definition at line 1383 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse(), QPatternist::yystpcpy(), QPatternist::yystrlen(), QPatternist::yysyntax_error(), and QPatternist::yytnamerr().
#define YYSKELETON_NAME "yacc.c" |
Definition at line 94 of file qquerytransformparser.cpp.
#define YYSTACK_ALLOC YYMALLOC |
Definition at line 1467 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
Definition at line 1470 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
#define YYSTACK_FREE YYFREE |
Definition at line 1468 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
#define YYTABLE_NINF -463 |
Definition at line 2350 of file qquerytransformparser.cpp.
Referenced by QPatternist::yyparse().
#define YYTERROR 1 |
Definition at line 2895 of file qquerytransformparser.cpp.
Referenced by QPatternist::yysyntax_error().
#define YYTOKEN_TABLE 0 |
Definition at line 1137 of file qquerytransformparser.cpp.
#define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
Definition at line 1574 of file qquerytransformparser.cpp.
Referenced by QPatternist::Tokenizer::tokenToString(), QPatternist::yyparse(), and QPatternist::yysyntax_error().
#define YYUNDEFTOK 2 |
Definition at line 1571 of file qquerytransformparser.cpp.
#define YYUSE | ( | e | ) | ((void) (e)) |
Definition at line 1405 of file qquerytransformparser.cpp.
Referenced by QPatternist::yydestruct().