SaxonC  11.6
Saxon Processor library for C/C++, PHP and Python
SaxonCXPath.h
1 #ifndef SAXONCXPATH_H
2 #define SAXONCXPATH_H
3 
5 // Copyright (c) 2022 Saxonica Limited.
6 // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
7 // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
10 
11 #include "SaxonCProcessor.h"
12 
13 
14 //===============================================================================================//
15 
19 typedef struct {
20  jobject xdmvalue;
21  } sxnc_value;
22 
23 EXTERN_SAXONC
29 jobject booleanValue(sxnc_environment* environi, bool);
30 
31 
37 jobject integerValue(sxnc_environment *environi, int i);
38 
39 
45 jobject doubleValue(sxnc_environment* environi, double d);
46 
47 
53 jobject floatValue(sxnc_environment *environi, float f);
54 
55 
61 jobject longValue(sxnc_environment *environi, long l);
62 
63 
69 jobject getJavaStringValue(sxnc_environment *environi, const char *str);
70 
77 jobject xdmValueAsObj(sxnc_environment *environi, const char* type, const char* str);
78 
85 sxnc_value * xdmValue(sxnc_environment *environi, const char* type, const char* str);
86 
87 
97 sxnc_value * evaluate(sxnc_environment *environi, sxnc_processor ** proc, char * cwd, char * xpathStr, sxnc_parameter *parameters, sxnc_property * properties, int parLen, int propLen);
98 
99 
111 bool effectiveBooleanValue(sxnc_environment* environi, sxnc_processor ** proc, char * cwd, char * xpathStr, sxnc_parameter *parameters, sxnc_property * properties, int parLen, int propLen);
112 
113 
120 bool isAtomicValue(sxnc_environment *environi, sxnc_value value);
121 
122 
130 int size(sxnc_environment *environi, sxnc_value val);
131 
132 
140 sxnc_value * itemAt(sxnc_environment *environi, sxnc_value, int i);
141 
142 
143 
144 jobject getvalue(sxnc_environment *environi, sxnc_value);
145 
146 
154 const char * getStringValue(sxnc_environment *environi, sxnc_value value);
155 
156 
164 int getIntegerValue(sxnc_environment *environi, sxnc_value value, int failure_value);
165 
166 
167 
168 bool getBooleanValue(sxnc_environment *environi, sxnc_value value);
169 
170 
171 
172 long getLongValue(sxnc_environment *environi, sxnc_value value, long failureVal);
173 
174 
175 
176 float getFloatValue(sxnc_environment *environi, sxnc_value value, float failureVal);
177 
178 
179 
180 double getDoubleValue(sxnc_environment *environi, sxnc_value value, double failureVal);
181 
182 
183 EXTERN_SAXONC_END
184 
185 
186 
187 #endif
Definition: SaxonCGlue.h:80
Definition: SaxonCGlue.h:92
Definition: SaxonCProcessor.h:22
Definition: SaxonCGlue.h:103
Definition: SaxonCXPath.h:19
jobject xdmvalue
Definition: SaxonCXPath.h:20