annotate agent/src/share/classes/sun/jvm/hotspot/utilities/soql/SOQLEngine.java @ 2042:0a8e0d4345b3 hs20-b05 jdk7-b124

7010068: Update all 2010 Oracle-changed OpenJDK files to have the proper copyright dates - first pass Summary: Update the copyright to be 2010 on all changed files in OpenJDK Reviewed-by: jcoomes
author trims
date Mon, 03 Jan 2011 15:30:05 -0800
parents c18cbe5936b8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
2 * Copyright (c) 2003, 2007, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 *
a61af66fc99e Initial load
duke
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 * published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 *
a61af66fc99e Initial load
duke
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 * accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 *
a61af66fc99e Initial load
duke
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 *
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
21 * questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
22 *
a61af66fc99e Initial load
duke
parents:
diff changeset
23 */
a61af66fc99e Initial load
duke
parents:
diff changeset
24
a61af66fc99e Initial load
duke
parents:
diff changeset
25 package sun.jvm.hotspot.utilities.soql;
a61af66fc99e Initial load
duke
parents:
diff changeset
26
a61af66fc99e Initial load
duke
parents:
diff changeset
27 import java.util.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
28 import sun.jvm.hotspot.oops.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
29 import sun.jvm.hotspot.memory.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
30 import sun.jvm.hotspot.runtime.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
31 import sun.jvm.hotspot.utilities.*;
a61af66fc99e Initial load
duke
parents:
diff changeset
32
a61af66fc99e Initial load
duke
parents:
diff changeset
33 /**
a61af66fc99e Initial load
duke
parents:
diff changeset
34 * This is SOQL (Simple Object Query Language) engine. This
a61af66fc99e Initial load
duke
parents:
diff changeset
35 * uses JavaScript engine for the "select" and "where" expression
a61af66fc99e Initial load
duke
parents:
diff changeset
36 * parts.
a61af66fc99e Initial load
duke
parents:
diff changeset
37 */
a61af66fc99e Initial load
duke
parents:
diff changeset
38 public class SOQLEngine extends JSJavaScriptEngine {
a61af66fc99e Initial load
duke
parents:
diff changeset
39 public static synchronized SOQLEngine getEngine() {
a61af66fc99e Initial load
duke
parents:
diff changeset
40 if (soleInstance == null) {
a61af66fc99e Initial load
duke
parents:
diff changeset
41 soleInstance = new SOQLEngine();
a61af66fc99e Initial load
duke
parents:
diff changeset
42 }
a61af66fc99e Initial load
duke
parents:
diff changeset
43 return soleInstance;
a61af66fc99e Initial load
duke
parents:
diff changeset
44 }
a61af66fc99e Initial load
duke
parents:
diff changeset
45
a61af66fc99e Initial load
duke
parents:
diff changeset
46 /**
a61af66fc99e Initial load
duke
parents:
diff changeset
47 Query is of the form
a61af66fc99e Initial load
duke
parents:
diff changeset
48
a61af66fc99e Initial load
duke
parents:
diff changeset
49 select <java script code to select>
a61af66fc99e Initial load
duke
parents:
diff changeset
50 [ from [instanceof] <class name> [<identifier>]
a61af66fc99e Initial load
duke
parents:
diff changeset
51 [ where <java script boolean expression> ]
a61af66fc99e Initial load
duke
parents:
diff changeset
52 ]
a61af66fc99e Initial load
duke
parents:
diff changeset
53 */
a61af66fc99e Initial load
duke
parents:
diff changeset
54 public synchronized void executeQuery(String query, ObjectVisitor visitor)
a61af66fc99e Initial load
duke
parents:
diff changeset
55 throws SOQLException {
a61af66fc99e Initial load
duke
parents:
diff changeset
56 debugPrint("query : " + query);
a61af66fc99e Initial load
duke
parents:
diff changeset
57 StringTokenizer st = new StringTokenizer(query);
a61af66fc99e Initial load
duke
parents:
diff changeset
58 if (st.hasMoreTokens()) {
a61af66fc99e Initial load
duke
parents:
diff changeset
59 String first = st.nextToken();
a61af66fc99e Initial load
duke
parents:
diff changeset
60 if (! first.equals("select") ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
61 throw new SOQLException("query syntax error: no 'select' clause");
a61af66fc99e Initial load
duke
parents:
diff changeset
62 }
a61af66fc99e Initial load
duke
parents:
diff changeset
63 } else {
a61af66fc99e Initial load
duke
parents:
diff changeset
64 throw new SOQLException("query syntax error: no 'select' clause");
a61af66fc99e Initial load
duke
parents:
diff changeset
65 }
a61af66fc99e Initial load
duke
parents:
diff changeset
66
a61af66fc99e Initial load
duke
parents:
diff changeset
67 int selectStart = query.indexOf("select");
a61af66fc99e Initial load
duke
parents:
diff changeset
68 int fromStart = query.indexOf("from");
a61af66fc99e Initial load
duke
parents:
diff changeset
69
a61af66fc99e Initial load
duke
parents:
diff changeset
70 String selectExpr = null;
a61af66fc99e Initial load
duke
parents:
diff changeset
71 String className = null;
a61af66fc99e Initial load
duke
parents:
diff changeset
72 boolean isInstanceOf = false;
a61af66fc99e Initial load
duke
parents:
diff changeset
73 String whereExpr = null;
a61af66fc99e Initial load
duke
parents:
diff changeset
74 String identifier = null;
a61af66fc99e Initial load
duke
parents:
diff changeset
75
a61af66fc99e Initial load
duke
parents:
diff changeset
76 if (fromStart != -1) {
a61af66fc99e Initial load
duke
parents:
diff changeset
77 selectExpr = query.substring(selectStart + "select".length(), fromStart);
a61af66fc99e Initial load
duke
parents:
diff changeset
78 st = new StringTokenizer(query.substring(fromStart + "from".length()));
a61af66fc99e Initial load
duke
parents:
diff changeset
79
a61af66fc99e Initial load
duke
parents:
diff changeset
80 if (st.hasMoreTokens()) {
a61af66fc99e Initial load
duke
parents:
diff changeset
81 String tmp = st.nextToken();
a61af66fc99e Initial load
duke
parents:
diff changeset
82 if (tmp.equals("instanceof")) {
a61af66fc99e Initial load
duke
parents:
diff changeset
83 isInstanceOf = true;
a61af66fc99e Initial load
duke
parents:
diff changeset
84 if (! st.hasMoreTokens()) {
a61af66fc99e Initial load
duke
parents:
diff changeset
85 throw new SOQLException("no class name after 'instanceof'");
a61af66fc99e Initial load
duke
parents:
diff changeset
86 }
a61af66fc99e Initial load
duke
parents:
diff changeset
87 className = st.nextToken();
a61af66fc99e Initial load
duke
parents:
diff changeset
88 } else {
a61af66fc99e Initial load
duke
parents:
diff changeset
89 className = tmp;
a61af66fc99e Initial load
duke
parents:
diff changeset
90 }
a61af66fc99e Initial load
duke
parents:
diff changeset
91 } else {
a61af66fc99e Initial load
duke
parents:
diff changeset
92 throw new SOQLException("query syntax error: class name must follow 'from'");
a61af66fc99e Initial load
duke
parents:
diff changeset
93 }
a61af66fc99e Initial load
duke
parents:
diff changeset
94
a61af66fc99e Initial load
duke
parents:
diff changeset
95 if (st.hasMoreTokens()) {
a61af66fc99e Initial load
duke
parents:
diff changeset
96 identifier = st.nextToken();
a61af66fc99e Initial load
duke
parents:
diff changeset
97 if (identifier.equals("where")) {
a61af66fc99e Initial load
duke
parents:
diff changeset
98 throw new SOQLException("query syntax error: identifier should follow class name");
a61af66fc99e Initial load
duke
parents:
diff changeset
99 }
a61af66fc99e Initial load
duke
parents:
diff changeset
100 if (st.hasMoreTokens()) {
a61af66fc99e Initial load
duke
parents:
diff changeset
101 String tmp = st.nextToken();
a61af66fc99e Initial load
duke
parents:
diff changeset
102 if (! tmp.equals("where")) {
a61af66fc99e Initial load
duke
parents:
diff changeset
103 throw new SOQLException("query syntax error: 'where' clause expected after 'from' clause");
a61af66fc99e Initial load
duke
parents:
diff changeset
104 }
a61af66fc99e Initial load
duke
parents:
diff changeset
105 int whereEnd = query.lastIndexOf("where") + 5; // "where".length
a61af66fc99e Initial load
duke
parents:
diff changeset
106 whereExpr = query.substring(whereEnd);
a61af66fc99e Initial load
duke
parents:
diff changeset
107 }
a61af66fc99e Initial load
duke
parents:
diff changeset
108 } else {
a61af66fc99e Initial load
duke
parents:
diff changeset
109 throw new SOQLException("query syntax error: identifier should follow class name");
a61af66fc99e Initial load
duke
parents:
diff changeset
110 }
a61af66fc99e Initial load
duke
parents:
diff changeset
111 } else { // no from clause
a61af66fc99e Initial load
duke
parents:
diff changeset
112 selectExpr = query.substring(selectStart + "select".length(), query.length());
a61af66fc99e Initial load
duke
parents:
diff changeset
113 }
a61af66fc99e Initial load
duke
parents:
diff changeset
114
a61af66fc99e Initial load
duke
parents:
diff changeset
115 executeQuery(new SOQLQuery(selectExpr, isInstanceOf, className, identifier, whereExpr), visitor);
a61af66fc99e Initial load
duke
parents:
diff changeset
116 }
a61af66fc99e Initial load
duke
parents:
diff changeset
117
a61af66fc99e Initial load
duke
parents:
diff changeset
118 private void executeQuery(SOQLQuery q, ObjectVisitor visitor) throws SOQLException {
a61af66fc99e Initial load
duke
parents:
diff changeset
119 InstanceKlass kls = null;
a61af66fc99e Initial load
duke
parents:
diff changeset
120 if (q.className != null) {
a61af66fc99e Initial load
duke
parents:
diff changeset
121 kls = SystemDictionaryHelper.findInstanceKlass(q.className);
a61af66fc99e Initial load
duke
parents:
diff changeset
122 if (kls == null) {
a61af66fc99e Initial load
duke
parents:
diff changeset
123 throw new SOQLException(q.className + " is not found!");
a61af66fc99e Initial load
duke
parents:
diff changeset
124 }
a61af66fc99e Initial load
duke
parents:
diff changeset
125 }
a61af66fc99e Initial load
duke
parents:
diff changeset
126
a61af66fc99e Initial load
duke
parents:
diff changeset
127
a61af66fc99e Initial load
duke
parents:
diff changeset
128 StringBuffer buf = new StringBuffer();
a61af66fc99e Initial load
duke
parents:
diff changeset
129 buf.append("function result(");
a61af66fc99e Initial load
duke
parents:
diff changeset
130 if (q.identifier != null) {
a61af66fc99e Initial load
duke
parents:
diff changeset
131 buf.append(q.identifier);
a61af66fc99e Initial load
duke
parents:
diff changeset
132 }
a61af66fc99e Initial load
duke
parents:
diff changeset
133 buf.append(") { return ");
a61af66fc99e Initial load
duke
parents:
diff changeset
134 buf.append(q.selectExpr.replace('\n', ' '));
a61af66fc99e Initial load
duke
parents:
diff changeset
135 buf.append("; }");
a61af66fc99e Initial load
duke
parents:
diff changeset
136
a61af66fc99e Initial load
duke
parents:
diff changeset
137 String selectCode = buf.toString();
a61af66fc99e Initial load
duke
parents:
diff changeset
138 debugPrint(selectCode);
a61af66fc99e Initial load
duke
parents:
diff changeset
139 String whereCode = null;
a61af66fc99e Initial load
duke
parents:
diff changeset
140 if (q.whereExpr != null) {
a61af66fc99e Initial load
duke
parents:
diff changeset
141 buf = new StringBuffer();
a61af66fc99e Initial load
duke
parents:
diff changeset
142 buf.append("function filter(");
a61af66fc99e Initial load
duke
parents:
diff changeset
143 buf.append(q.identifier);
a61af66fc99e Initial load
duke
parents:
diff changeset
144 buf.append(") { return ");
a61af66fc99e Initial load
duke
parents:
diff changeset
145 buf.append(q.whereExpr.replace('\n', ' '));
a61af66fc99e Initial load
duke
parents:
diff changeset
146 buf.append("; }");
a61af66fc99e Initial load
duke
parents:
diff changeset
147 whereCode = buf.toString();
a61af66fc99e Initial load
duke
parents:
diff changeset
148 debugPrint(whereCode);
a61af66fc99e Initial load
duke
parents:
diff changeset
149 } else {
a61af66fc99e Initial load
duke
parents:
diff changeset
150 whereCode = "filter = null;";
a61af66fc99e Initial load
duke
parents:
diff changeset
151 }
a61af66fc99e Initial load
duke
parents:
diff changeset
152
a61af66fc99e Initial load
duke
parents:
diff changeset
153 beginQuery();
a61af66fc99e Initial load
duke
parents:
diff changeset
154 // compile select expression and where condition
a61af66fc99e Initial load
duke
parents:
diff changeset
155 evalString(selectCode, "", 1);
a61af66fc99e Initial load
duke
parents:
diff changeset
156 evalString(whereCode, "", 1);
a61af66fc99e Initial load
duke
parents:
diff changeset
157
a61af66fc99e Initial load
duke
parents:
diff changeset
158 // iterate thru heap, if needed
a61af66fc99e Initial load
duke
parents:
diff changeset
159 if (q.className != null) {
a61af66fc99e Initial load
duke
parents:
diff changeset
160 try {
a61af66fc99e Initial load
duke
parents:
diff changeset
161 iterateOops(kls, visitor, q.isInstanceOf);
a61af66fc99e Initial load
duke
parents:
diff changeset
162 } finally {
a61af66fc99e Initial load
duke
parents:
diff changeset
163 endQuery();
a61af66fc99e Initial load
duke
parents:
diff changeset
164 }
a61af66fc99e Initial load
duke
parents:
diff changeset
165 } else {
a61af66fc99e Initial load
duke
parents:
diff changeset
166 // simple "select <expr>" query
a61af66fc99e Initial load
duke
parents:
diff changeset
167 try {
a61af66fc99e Initial load
duke
parents:
diff changeset
168 Object select = call("result", new Object[] {});
a61af66fc99e Initial load
duke
parents:
diff changeset
169 visitor.visit(select);
a61af66fc99e Initial load
duke
parents:
diff changeset
170 } catch (Exception e) {
a61af66fc99e Initial load
duke
parents:
diff changeset
171 e.printStackTrace();
a61af66fc99e Initial load
duke
parents:
diff changeset
172 }
a61af66fc99e Initial load
duke
parents:
diff changeset
173 }
a61af66fc99e Initial load
duke
parents:
diff changeset
174 }
a61af66fc99e Initial load
duke
parents:
diff changeset
175
a61af66fc99e Initial load
duke
parents:
diff changeset
176 private void dispatchObject(Oop oop, ObjectVisitor visitor, boolean filterExists) {
a61af66fc99e Initial load
duke
parents:
diff changeset
177 JSJavaObject jsObj = factory.newJSJavaObject(oop);
a61af66fc99e Initial load
duke
parents:
diff changeset
178 Object[] args = new Object[] { jsObj };
a61af66fc99e Initial load
duke
parents:
diff changeset
179 boolean b = true;
a61af66fc99e Initial load
duke
parents:
diff changeset
180
a61af66fc99e Initial load
duke
parents:
diff changeset
181 try {
a61af66fc99e Initial load
duke
parents:
diff changeset
182 if (filterExists) {
a61af66fc99e Initial load
duke
parents:
diff changeset
183 Object res = call("filter", args);
a61af66fc99e Initial load
duke
parents:
diff changeset
184 if (res instanceof Boolean) {
a61af66fc99e Initial load
duke
parents:
diff changeset
185 b = ((Boolean)res).booleanValue();
a61af66fc99e Initial load
duke
parents:
diff changeset
186 } else if (res instanceof Number) {
a61af66fc99e Initial load
duke
parents:
diff changeset
187 b = ((Number)res).intValue() != 0;
a61af66fc99e Initial load
duke
parents:
diff changeset
188 } else {
a61af66fc99e Initial load
duke
parents:
diff changeset
189 b = (res != null);
a61af66fc99e Initial load
duke
parents:
diff changeset
190 }
a61af66fc99e Initial load
duke
parents:
diff changeset
191 }
a61af66fc99e Initial load
duke
parents:
diff changeset
192
a61af66fc99e Initial load
duke
parents:
diff changeset
193 if (b) {
a61af66fc99e Initial load
duke
parents:
diff changeset
194 Object select = call("result", args);
a61af66fc99e Initial load
duke
parents:
diff changeset
195 visitor.visit(select);
a61af66fc99e Initial load
duke
parents:
diff changeset
196 }
a61af66fc99e Initial load
duke
parents:
diff changeset
197 } catch (Exception e) {
a61af66fc99e Initial load
duke
parents:
diff changeset
198 throw new RuntimeException(e);
a61af66fc99e Initial load
duke
parents:
diff changeset
199 }
a61af66fc99e Initial load
duke
parents:
diff changeset
200 }
a61af66fc99e Initial load
duke
parents:
diff changeset
201
a61af66fc99e Initial load
duke
parents:
diff changeset
202 private void iterateOops(final InstanceKlass ik, final ObjectVisitor visitor,
a61af66fc99e Initial load
duke
parents:
diff changeset
203 boolean includeSubtypes) {
a61af66fc99e Initial load
duke
parents:
diff changeset
204 ObjectHeap oh = VM.getVM().getObjectHeap();
a61af66fc99e Initial load
duke
parents:
diff changeset
205 oh.iterateObjectsOfKlass(new HeapVisitor() {
a61af66fc99e Initial load
duke
parents:
diff changeset
206 boolean filterExists;
a61af66fc99e Initial load
duke
parents:
diff changeset
207 public void prologue(long usedSize) {
a61af66fc99e Initial load
duke
parents:
diff changeset
208 filterExists = getScriptEngine().get("filter") != null;
a61af66fc99e Initial load
duke
parents:
diff changeset
209 }
a61af66fc99e Initial load
duke
parents:
diff changeset
210 public boolean doObj(Oop obj) {
a61af66fc99e Initial load
duke
parents:
diff changeset
211 dispatchObject(obj, visitor, filterExists);
a61af66fc99e Initial load
duke
parents:
diff changeset
212 return false;
a61af66fc99e Initial load
duke
parents:
diff changeset
213 }
a61af66fc99e Initial load
duke
parents:
diff changeset
214 public void epilogue() {}
a61af66fc99e Initial load
duke
parents:
diff changeset
215 }, ik, includeSubtypes);
a61af66fc99e Initial load
duke
parents:
diff changeset
216 }
a61af66fc99e Initial load
duke
parents:
diff changeset
217
a61af66fc99e Initial load
duke
parents:
diff changeset
218 // we create fresh ObjectReader and factory to avoid
a61af66fc99e Initial load
duke
parents:
diff changeset
219 // excessive cache across queries.
a61af66fc99e Initial load
duke
parents:
diff changeset
220 private void beginQuery() {
a61af66fc99e Initial load
duke
parents:
diff changeset
221 objReader = new ObjectReader();
a61af66fc99e Initial load
duke
parents:
diff changeset
222 factory = new JSJavaFactoryImpl();
a61af66fc99e Initial load
duke
parents:
diff changeset
223 }
a61af66fc99e Initial load
duke
parents:
diff changeset
224
a61af66fc99e Initial load
duke
parents:
diff changeset
225 // at the end of query we clear object reader cache
a61af66fc99e Initial load
duke
parents:
diff changeset
226 // and factory cache
a61af66fc99e Initial load
duke
parents:
diff changeset
227 private void endQuery() {
a61af66fc99e Initial load
duke
parents:
diff changeset
228 objReader = null;
a61af66fc99e Initial load
duke
parents:
diff changeset
229 factory = null;
a61af66fc99e Initial load
duke
parents:
diff changeset
230 }
a61af66fc99e Initial load
duke
parents:
diff changeset
231
a61af66fc99e Initial load
duke
parents:
diff changeset
232 protected ObjectReader getObjectReader() {
a61af66fc99e Initial load
duke
parents:
diff changeset
233 return objReader;
a61af66fc99e Initial load
duke
parents:
diff changeset
234 }
a61af66fc99e Initial load
duke
parents:
diff changeset
235
a61af66fc99e Initial load
duke
parents:
diff changeset
236 protected JSJavaFactory getJSJavaFactory() {
a61af66fc99e Initial load
duke
parents:
diff changeset
237 return factory;
a61af66fc99e Initial load
duke
parents:
diff changeset
238 }
a61af66fc99e Initial load
duke
parents:
diff changeset
239
a61af66fc99e Initial load
duke
parents:
diff changeset
240 protected boolean isQuitting() {
a61af66fc99e Initial load
duke
parents:
diff changeset
241 return false;
a61af66fc99e Initial load
duke
parents:
diff changeset
242 }
a61af66fc99e Initial load
duke
parents:
diff changeset
243
a61af66fc99e Initial load
duke
parents:
diff changeset
244 protected void quit() {
a61af66fc99e Initial load
duke
parents:
diff changeset
245 // do nothing
a61af66fc99e Initial load
duke
parents:
diff changeset
246 }
a61af66fc99e Initial load
duke
parents:
diff changeset
247
a61af66fc99e Initial load
duke
parents:
diff changeset
248 private static void debugPrint(String msg) {
a61af66fc99e Initial load
duke
parents:
diff changeset
249 if (debug) System.out.println(msg);
a61af66fc99e Initial load
duke
parents:
diff changeset
250 }
a61af66fc99e Initial load
duke
parents:
diff changeset
251
a61af66fc99e Initial load
duke
parents:
diff changeset
252 private static final boolean debug;
a61af66fc99e Initial load
duke
parents:
diff changeset
253 static {
a61af66fc99e Initial load
duke
parents:
diff changeset
254 debug = System.getProperty("sun.jvm.hotspot.utilities.soql.SOQLEngine.debug") != null;
a61af66fc99e Initial load
duke
parents:
diff changeset
255 }
a61af66fc99e Initial load
duke
parents:
diff changeset
256
a61af66fc99e Initial load
duke
parents:
diff changeset
257 protected SOQLEngine() {
a61af66fc99e Initial load
duke
parents:
diff changeset
258 super(debug);
a61af66fc99e Initial load
duke
parents:
diff changeset
259 start();
a61af66fc99e Initial load
duke
parents:
diff changeset
260 }
a61af66fc99e Initial load
duke
parents:
diff changeset
261
a61af66fc99e Initial load
duke
parents:
diff changeset
262 private ObjectReader objReader;
a61af66fc99e Initial load
duke
parents:
diff changeset
263 private JSJavaFactory factory;
a61af66fc99e Initial load
duke
parents:
diff changeset
264 private static SOQLEngine soleInstance;
a61af66fc99e Initial load
duke
parents:
diff changeset
265 }