2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / libjava / gnu / xml / xpath / Selector.h
blob9dcd37a4e3f155cf70071e4adaa0878242ccc501
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __gnu_xml_xpath_Selector__
5 #define __gnu_xml_xpath_Selector__
7 #pragma interface
9 #include <gnu/xml/xpath/Path.h>
10 #include <gcj/array.h>
12 extern "Java"
14 namespace gnu
16 namespace xml
18 namespace xpath
20 class Expr;
21 class Selector;
22 class Test;
26 namespace javax
28 namespace xml
30 namespace namespace$
32 class QName;
36 namespace org
38 namespace w3c
40 namespace dom
42 class Node;
48 class gnu::xml::xpath::Selector : public ::gnu::xml::xpath::Path
51 public:
52 Selector(jint, ::java::util::List *);
53 JArray< ::gnu::xml::xpath::Test * > * getTests();
54 jboolean matches(::org::w3c::dom::Node *);
55 public: // actually package-private
56 jboolean matches(::org::w3c::dom::Node *, jint, jint);
57 private:
58 jint getContextPosition(::org::w3c::dom::Node *);
59 jint getContextSize(::org::w3c::dom::Node *);
60 public:
61 ::java::lang::Object * evaluate(::org::w3c::dom::Node *, jint, jint);
62 public: // actually package-private
63 ::java::util::Collection * evaluate(::org::w3c::dom::Node *, ::java::util::Collection *);
64 ::java::util::List * filterCandidates(::java::util::List *, jboolean);
65 void addCandidates(::org::w3c::dom::Node *, ::java::util::Collection *);
66 void addChildNodes(::org::w3c::dom::Node *, ::java::util::Collection *, jboolean);
67 void addParentNode(::org::w3c::dom::Node *, ::java::util::Collection *, jboolean);
68 void addFollowingNodes(::org::w3c::dom::Node *, ::java::util::Collection *, jboolean);
69 void addPrecedingNodes(::org::w3c::dom::Node *, ::java::util::Collection *, jboolean);
70 void addAttributes(::org::w3c::dom::Node *, ::java::util::Collection *);
71 void addNamespaceAttributes(::org::w3c::dom::Node *, ::java::util::Collection *);
72 jboolean isNamespaceAttribute(::org::w3c::dom::Node *);
73 public:
74 ::gnu::xml::xpath::Expr * clone(::java::lang::Object *);
75 jboolean references(::javax::xml::namespace$::QName *);
76 ::java::lang::String * toString();
77 static const jint ANCESTOR = 0;
78 static const jint ANCESTOR_OR_SELF = 1;
79 static const jint ATTRIBUTE = 2;
80 static const jint CHILD = 3;
81 static const jint DESCENDANT = 4;
82 static const jint DESCENDANT_OR_SELF = 5;
83 static const jint FOLLOWING = 6;
84 static const jint FOLLOWING_SIBLING = 7;
85 static const jint NAMESPACE = 8;
86 static const jint PARENT = 9;
87 static const jint PRECEDING = 10;
88 static const jint PRECEDING_SIBLING = 11;
89 static const jint SELF = 12;
90 public: // actually package-private
91 jint __attribute__((aligned(__alignof__( ::gnu::xml::xpath::Path)))) axis;
92 JArray< ::gnu::xml::xpath::Test * > * tests;
93 public:
94 static ::java::lang::Class class$;
97 #endif // __gnu_xml_xpath_Selector__