1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
#ifndef __gnu_xml_stream_XMLParser__
#define __gnu_xml_stream_XMLParser__
#pragma interface
#include <java/lang/Object.h>
#include <gcj/array.h>
extern "Java"
{
namespace gnu
{
namespace java
{
namespace lang
{
class CPStringBuilder;
}
}
namespace xml
{
namespace stream
{
class XMLParser;
class XMLParser$Attribute;
class XMLParser$ContentModel;
class XMLParser$ContentParticle;
class XMLParser$Doctype;
class XMLParser$ElementContentModel;
class XMLParser$ExternalIds;
class XMLParser$Input;
}
}
}
namespace javax
{
namespace xml
{
namespace namespace$
{
class NamespaceContext;
class QName;
}
namespace stream
{
class Location;
class XMLReporter;
class XMLResolver;
}
}
}
}
class gnu::xml::stream::XMLParser : public ::java::lang::Object
{
public:
XMLParser(::java::io::InputStream *, ::java::lang::String *, jboolean, jboolean, jboolean, jboolean, jboolean, jboolean, jboolean, jboolean, jboolean, ::javax::xml::stream::XMLReporter *, ::javax::xml::stream::XMLResolver *);
XMLParser(::java::io::Reader *, ::java::lang::String *, jboolean, jboolean, jboolean, jboolean, jboolean, jboolean, jboolean, jboolean, jboolean, ::javax::xml::stream::XMLReporter *, ::javax::xml::stream::XMLResolver *);
virtual ::java::lang::String * getNamespaceURI(::java::lang::String *);
virtual ::java::lang::String * getPrefix(::java::lang::String *);
virtual ::java::util::Iterator * getPrefixes(::java::lang::String *);
virtual void close();
virtual ::javax::xml::namespace$::NamespaceContext * getNamespaceContext();
virtual jint getAttributeCount();
virtual ::java::lang::String * getAttributeLocalName(jint);
virtual ::java::lang::String * getAttributeNamespace(jint);
virtual ::java::lang::String * getAttributePrefix(jint);
virtual ::javax::xml::namespace$::QName * getAttributeName(jint);
virtual ::java::lang::String * getAttributeType(jint);
private:
::java::lang::String * getAttributeType(::java::lang::String *, ::java::lang::String *);
public:
virtual ::java::lang::String * getAttributeValue(jint);
virtual ::java::lang::String * getAttributeValue(::java::lang::String *, ::java::lang::String *);
public: // actually package-private
virtual jboolean isAttributeDeclared(jint);
public:
virtual ::java::lang::String * getCharacterEncodingScheme();
virtual ::java::lang::String * getElementText();
virtual ::java::lang::String * getEncoding();
virtual jint getEventType();
virtual ::java::lang::String * getLocalName();
virtual ::javax::xml::stream::Location * getLocation();
virtual ::javax::xml::namespace$::QName * getName();
virtual jint getNamespaceCount();
virtual ::java::lang::String * getNamespacePrefix(jint);
virtual ::java::lang::String * getNamespaceURI();
virtual ::java::lang::String * getNamespaceURI(jint);
virtual ::java::lang::String * getPIData();
virtual ::java::lang::String * getPITarget();
virtual ::java::lang::String * getPrefix();
virtual ::java::lang::Object * getProperty(::java::lang::String *);
virtual ::java::lang::String * getText();
virtual JArray< jchar > * getTextCharacters();
virtual jint getTextCharacters(jint, JArray< jchar > *, jint, jint);
virtual jint getTextLength();
virtual jint getTextStart();
virtual ::java::lang::String * getVersion();
virtual jboolean hasName();
virtual jboolean hasText();
virtual jboolean isAttributeSpecified(jint);
virtual jboolean isCharacters();
virtual jboolean isEndElement();
virtual jboolean isStandalone();
virtual jboolean isStartElement();
virtual jboolean isWhiteSpace();
virtual jint nextTag();
virtual void require(jint, ::java::lang::String *, ::java::lang::String *);
virtual jboolean standaloneSet();
virtual jboolean hasNext();
virtual jint next();
public: // actually package-private
virtual ::java::lang::String * getCurrentElement();
private:
void mark(jint);
void reset();
jint read();
jint read(JArray< jint > *, jint, jint);
jint readCh();
void require(jchar);
void require(::java::lang::String *);
jboolean tryRead(jchar);
jboolean tryRead(::java::lang::String *);
void readUntil(::java::lang::String *);
jboolean tryWhitespace();
void skipWhitespace();
void requireWhitespace();
public: // actually package-private
virtual ::java::lang::String * getXMLBase();
private:
void pushInput(::java::lang::String *, ::java::lang::String *, jboolean, jboolean);
void pushInput(::java::lang::String *, ::gnu::xml::stream::XMLParser$ExternalIds *, jboolean, jboolean);
void pushInput(::gnu::xml::stream::XMLParser$Input *);
public: // actually package-private
static ::java::lang::String * canonicalize(::java::lang::String *);
public:
static ::java::lang::String * absolutize(::java::lang::String *, ::java::lang::String *);
private:
static jboolean isURLScheme(::java::lang::String *);
public: // actually package-private
static ::java::io::InputStream * resolve(::java::lang::String *);
private:
void popInput();
void readTextDecl();
void readXMLDecl();
void readDoctypeDecl();
void checkDoctype();
void readMarkupdecl(jboolean);
void readElementDecl();
void readContentspec(::java::lang::String *);
::gnu::xml::stream::XMLParser$ElementContentModel * readElements(::gnu::java::lang::CPStringBuilder *);
::gnu::xml::stream::XMLParser$ContentParticle * readContentParticle(::gnu::java::lang::CPStringBuilder *);
void readAttlistDecl();
void readAttDef(::java::lang::String *);
::java::lang::String * readAttType(::gnu::java::lang::CPStringBuilder *, ::java::util::HashSet *);
void readEnumeration(jboolean, ::gnu::java::lang::CPStringBuilder *, ::java::util::HashSet *);
void readNotationType(::gnu::java::lang::CPStringBuilder *, ::java::util::HashSet *);
void readDefault(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::util::HashSet *);
void readEntityDecl(jboolean);
void readNotationDecl(jboolean);
::gnu::xml::stream::XMLParser$ExternalIds * readExternalIds(jboolean, jboolean);
jint readStartElement();
jboolean attributeSpecified(::java::lang::String *);
void readAttribute(::java::lang::String *);
jboolean addNamespace(::gnu::xml::stream::XMLParser$Attribute *);
void readEndElement();
void endElementValidationHook();
void readComment(jboolean);
void readPI(jboolean);
void readReference();
void readCDSect();
jint readCharData(::java::lang::String *);
void expandEntity(::java::lang::String *, jboolean, jboolean);
jboolean isUnparsedEntity(::java::lang::String *);
void readEq();
jint literalReadCh(jboolean);
::java::lang::String * readLiteral(jint, jboolean);
::java::lang::StringBuffer * normalize(::java::lang::StringBuffer *);
void normalizeCRLF(::java::lang::StringBuffer *);
void expandPEReference();
JArray< jchar > * readCharacterRef(jint);
::java::lang::String * readNmtoken(jboolean);
::java::lang::String * readNmtoken(jboolean, ::java::lang::StringBuffer *);
public:
static jboolean isXML11Char(jint);
static jboolean isXML11RestrictedChar(jint);
private:
jboolean isNmtoken(::java::lang::String *, jboolean);
public:
static jboolean isNameStartCharacter(jint, jboolean);
static jboolean isNameCharacter(jint, jboolean);
static jboolean isLetter(jint);
static jboolean isDigit(jint);
static jboolean isCombiningChar(jint);
static jboolean isExtender(jint);
static jboolean isChar(jint);
private:
::java::lang::String * intern(::java::lang::String *);
void error(::java::lang::String *);
void error(::java::lang::String *, ::java::lang::Object *);
void validateStartElement(::java::lang::String *);
void validateEndElement();
void validatePCData(::java::lang::String *);
void validateElementContent(::gnu::xml::stream::XMLParser$ElementContentModel *, ::java::util::LinkedList *);
::java::lang::String * createRegularExpression(::gnu::xml::stream::XMLParser$ElementContentModel *);
public: // actually package-private
virtual void validateDoctype();
public:
static void main(JArray< ::java::lang::String * > *);
private:
static ::java::lang::String * encodeText(::java::lang::String *);
public: // actually package-private
static ::java::lang::String * access$0(::gnu::xml::stream::XMLParser *, ::java::lang::String *);
static jboolean access$1(::gnu::xml::stream::XMLParser *);
static ::gnu::xml::stream::XMLParser$Input * access$2(::gnu::xml::stream::XMLParser *);
static ::java::util::LinkedList * access$3(::gnu::xml::stream::XMLParser *);
private:
static const jint INIT = 0;
static const jint PROLOG = 1;
static const jint CONTENT = 2;
static const jint EMPTY_ELEMENT = 3;
static const jint MISC = 4;
static const jint LIT_ENTITY_REF = 2;
static const jint LIT_NORMALIZE = 4;
static const jint LIT_ATTRIBUTE = 8;
static const jint LIT_DISABLE_PE = 16;
static const jint LIT_DISABLE_CREF = 32;
static const jint LIT_DISABLE_EREF = 64;
static const jint LIT_PUBID = 256;
public: // actually package-private
static const jint ATTRIBUTE_DEFAULT_UNDECLARED = 30;
static const jint ATTRIBUTE_DEFAULT_SPECIFIED = 31;
static const jint ATTRIBUTE_DEFAULT_IMPLIED = 32;
static const jint ATTRIBUTE_DEFAULT_REQUIRED = 33;
static const jint ATTRIBUTE_DEFAULT_FIXED = 34;
static const jint START_ENTITY = 50;
static const jint END_ENTITY = 51;
private:
::gnu::xml::stream::XMLParser$Input * __attribute__((aligned(__alignof__( ::java::lang::Object)))) input;
::java::util::LinkedList * inputStack;
::java::util::LinkedList * startEntityStack;
::java::util::LinkedList * endEntityStack;
jint state;
jint event;
::java::util::LinkedList * stack;
::java::util::LinkedList * namespaces;
::java::util::LinkedList * bases;
::java::util::ArrayList * attrs;
::java::lang::StringBuffer * buf;
::java::lang::StringBuffer * nmtokenBuf;
::java::lang::StringBuffer * literalBuf;
JArray< jint > * tmpBuf;
::gnu::xml::stream::XMLParser$ContentModel * currentContentModel;
::java::util::LinkedList * validationStack;
::java::util::HashSet * ids;
::java::util::HashSet * idrefs;
::java::lang::String * piTarget;
::java::lang::String * piData;
::java::lang::String * xmlVersion;
::java::lang::String * xmlEncoding;
::java::lang::Boolean * xmlStandalone;
public: // actually package-private
::gnu::xml::stream::XMLParser$Doctype * doctype;
private:
jboolean expandPE;
jboolean peIsError;
jboolean validating;
jboolean stringInterning;
jboolean coalescing;
jboolean replaceERefs;
jboolean externalEntities;
jboolean supportDTD;
jboolean namespaceAware;
jboolean baseAware;
jboolean extendedEventTypes;
public: // actually package-private
::javax::xml::stream::XMLReporter * reporter;
::javax::xml::stream::XMLResolver * resolver;
private:
static ::java::lang::String * TEST_START_ELEMENT;
static ::java::lang::String * TEST_END_ELEMENT;
static ::java::lang::String * TEST_COMMENT;
static ::java::lang::String * TEST_PI;
static ::java::lang::String * TEST_CDATA;
static ::java::lang::String * TEST_XML_DECL;
static ::java::lang::String * TEST_DOCTYPE_DECL;
static ::java::lang::String * TEST_ELEMENT_DECL;
static ::java::lang::String * TEST_ATTLIST_DECL;
static ::java::lang::String * TEST_ENTITY_DECL;
static ::java::lang::String * TEST_NOTATION_DECL;
static ::java::lang::String * TEST_KET;
static ::java::lang::String * TEST_END_COMMENT;
static ::java::lang::String * TEST_END_PI;
static ::java::lang::String * TEST_END_CDATA;
static ::java::util::LinkedHashMap * PREDEFINED_ENTITIES;
public:
static ::java::lang::Class class$;
};
#endif // __gnu_xml_stream_XMLParser__
|