• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KHTML

  • khtml
  • xpath
parsedstatement.h
Go to the documentation of this file.
1/*
2 * parsedstatement.h - Copyright 2005 Frerich Raabe <raabe@kde.org>
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25#ifndef PARSEDSTATEMENT_H
26#define PARSEDSTATEMENT_H
27
28#include "util.h"
29
30namespace DOM {
31 class NodeImpl;
32 class DOMString;
33}
34
35namespace khtml {
36
37class XPathNSResolverImpl;
38
39namespace XPath {
40
41class Expression;
42class Value;
43
44class ParsedStatement
45{
46 public:
47 ParsedStatement( const DOM::DOMString &statement, khtml::XPathNSResolverImpl* res );
48 ~ParsedStatement();
49 void optimize();
50
51 QString dump() const;
52
53 Value evaluate( DOM::NodeImpl *context,
54 int& ec) const;
55
56 // Any exception issued during parsing, or 0
57 int exceptionCode() { return m_ec; }
58
59 private:
60 void parse( const DOM::DOMString &statement );
61
62 SharedPtr<khtml::XPathNSResolverImpl> m_res;
63 Expression *m_expr;
64 int m_ec;
65};
66
67} // namespace XPath
68
69} // namespace khtml
70
71
72#endif // PARSEDSTATEMENT_H
73// kate: indent-width 4; replace-tabs off; tab-width 4; space-indent off;
74
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:44
khtml::XPath::Expression
Definition: expression.h:115
khtml::XPath::ParsedStatement
Definition: parsedstatement.h:45
khtml::XPath::ParsedStatement::exceptionCode
int exceptionCode()
Definition: parsedstatement.h:57
khtml::XPath::ParsedStatement::dump
QString dump() const
Definition: parsedstatement.cpp:83
khtml::XPath::ParsedStatement::evaluate
Value evaluate(DOM::NodeImpl *context, int &ec) const
Definition: parsedstatement.cpp:70
khtml::XPath::ParsedStatement::optimize
void optimize()
Definition: parsedstatement.cpp:62
khtml::XPath::ParsedStatement::~ParsedStatement
~ParsedStatement()
Definition: parsedstatement.cpp:45
khtml::XPath::Value
Definition: expression.h:76
DOM
This library provides a full-featured HTML parser and widget.
Definition: design.h:55
khtml
util.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal