OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2005 Maksim Orlovich <maksim@kde.org> | 2 * Copyright 2005 Maksim Orlovich <maksim@kde.org> |
3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 13 matching lines...) Expand all Loading... |
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #ifndef XPathParser_h | 27 #ifndef XPathParser_h |
28 #define XPathParser_h | 28 #define XPathParser_h |
29 | 29 |
30 #include "core/xml/XPathPredicate.h" | 30 #include "core/xml/XPathPredicate.h" |
31 #include "core/xml/XPathStep.h" | 31 #include "core/xml/XPathStep.h" |
32 | 32 |
33 namespace WebCore { | 33 namespace WebCore { |
34 namespace XPath { | |
35 class Parser; | |
36 } | |
37 } | |
38 int xpathyyparse(WebCore::XPath::Parser*); | |
39 | |
40 namespace WebCore { | |
41 | 34 |
42 class ExceptionState; | 35 class ExceptionState; |
43 class XPathNSResolver; | 36 class XPathNSResolver; |
44 | 37 |
45 namespace XPath { | 38 namespace XPath { |
46 | 39 |
47 class Expression; | 40 class Expression; |
| 41 class LocationPath; |
48 class ParseNode; | 42 class ParseNode; |
| 43 class Parser; |
49 class Predicate; | 44 class Predicate; |
50 | 45 |
51 struct Token { | 46 struct Token { |
52 int type; | 47 int type; |
53 String str; | 48 String str; |
54 Step::Axis axis; | 49 Step::Axis axis; |
55 NumericOp::Opcode numop; | 50 NumericOp::Opcode numop; |
56 EqTestOp::Opcode eqop; | 51 EqTestOp::Opcode eqop; |
57 | 52 |
58 Token(int t) : type(t) { } | 53 Token(int t) : type(t) { } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 120 |
126 #if !ENABLE(OILPAN) | 121 #if !ENABLE(OILPAN) |
127 HashSet<ParseNode*> m_parseNodes; | 122 HashSet<ParseNode*> m_parseNodes; |
128 HashSet<Vector<OwnPtr<Predicate> >*> m_predicateVectors; | 123 HashSet<Vector<OwnPtr<Predicate> >*> m_predicateVectors; |
129 HashSet<Vector<OwnPtr<Expression> >*> m_expressionVectors; | 124 HashSet<Vector<OwnPtr<Expression> >*> m_expressionVectors; |
130 HashSet<OwnPtr<Step::NodeTest> > m_nodeTests; | 125 HashSet<OwnPtr<Step::NodeTest> > m_nodeTests; |
131 #endif | 126 #endif |
132 HashSet<OwnPtr<String> > m_strings; | 127 HashSet<OwnPtr<String> > m_strings; |
133 }; | 128 }; |
134 | 129 |
135 } // XPath | 130 } // namespace XPath |
136 | 131 |
137 } // WebCore | 132 } // namespace WebCore |
138 | 133 |
| 134 int xpathyyparse(WebCore::XPath::Parser*); |
139 #endif | 135 #endif |
OLD | NEW |