Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
blob: 3ab997d6397c84784343672ae489651a7fe871b2 (plain) (blame)
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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
/*******************************************************************************
 * Copyright (c) 2001, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jem.internal.proxy.remote;
/*
 *  $RCSfile: REMStandardBeanProxyConstants.java,v $
 *  $Revision: 1.9 $  $Date: 2005/08/24 20:39:06 $ 
 */


import org.eclipse.jem.internal.proxy.core.IMethodProxy;
import org.eclipse.jem.internal.proxy.core.ProxyFactoryRegistry;
/**
 * REM Standard Proxy constants.
 *
 * Use the static accessor method (getConstants()) to get the appropriate 
 * constants instance for the registry. This is done so that until the
 * the constants are needed, they aren't registered.
 *
 * There are some standard utility functions too.
 *
 * This is final because this can't be extended. This specific one
 * will be registered with the factory for this key. Any extensions
 * must be done in their own constants and registry key.
 *
 * Creation date: (4/7/00 4:47:48 PM)
 * @author: Administrator
 */
public final class REMStandardBeanProxyConstants {
	public static final Object REGISTRY_KEY = new Object();
		
	private final ProxyFactoryRegistry fRegistry;
	
	private IMethodProxy fClassNewInstance;
	private IMethodProxy fClassGetField;
	private IMethodProxy fClassGetDeclaredField;
	private IMethodProxy fClassGetDeclaredFields;	
	private IMethodProxy fClassGetFields;	
	private IMethodProxy fClassGetConstructor;
	private IMethodProxy fClassGetConstructors;
	private IMethodProxy fClassGetDeclaredConstructor;
	private IMethodProxy fClassGetDeclaredConstructors;
	private IMethodProxy fClassGetMethods;
	private IMethodProxy fClassGetDeclaredMethods;
	private IMethodProxy fClassGetDeclaredMethod;
	
	private IMethodProxy fMethodHelperFindCompatibleConstructor;
	private IMethodProxy fMethodHelperFindCompatibleMethod;
	
	private IMethodProxy fClassIsAssignableFrom;
	
	private IMethodProxy fObjectToString;
	private IMethodProxy fObjectEquals;
	
	private IMethodProxy fThrowableLocalizedMessage;
	private IMethodProxy fThrowableMessage;
	
	private IMethodProxy fMethodDeclaringClassMessage;
	private IMethodProxy fMethodMethodNameMessage;
	private IMethodProxy fMethodParameterTypesMessage;
	private IMethodProxy fMethodReturnTypeMessage;
	
	private IMethodProxy fAccessibleIsAccessible;
	private IMethodProxy fAccessibleSetAccessible;
	
	private IMethodProxy fFieldGet;
	private IMethodProxy fFieldGetType;
	private IMethodProxy fFieldGetByte;
	private IMethodProxy fFieldGetBoolean;
	private IMethodProxy fFieldGetChar;
	private IMethodProxy fFieldGetDouble;
	private IMethodProxy fFieldGetFloat;
	private IMethodProxy fFieldGetInt;
	private IMethodProxy fFieldGetShort;
	private IMethodProxy fFieldGetLong;	
	private IMethodProxy fFieldSet;
	
	private IMethodProxy fConstructorNewInstance;	
	private IMethodProxy fConstructorParameterTypesMessage;
	
	private IMethodProxy fArrayNewInstanceOneDimension;
	private IMethodProxy fArrayNewInstanceMultiDimensions;
	private IMethodProxy fArrayGetLength;
	private IMethodProxy fArrayGet;
	private IMethodProxy fArrayGetByte;
	private IMethodProxy fArrayGetBoolean;
	private IMethodProxy fArrayGetChar;
	private IMethodProxy fArrayGetDouble;
	private IMethodProxy fArrayGetFloat;
	private IMethodProxy fArrayGetInt;
	private IMethodProxy fArrayGetShort;
	private IMethodProxy fArrayGetLong;	
	private IMethodProxy fArraySet;	
	
	private IMethodProxy fArrayHelperGet;
	private IMethodProxy fArrayHelperGetByte;
	private IMethodProxy fArrayHelperGetBoolean;
	private IMethodProxy fArrayHelperGetChar;
	private IMethodProxy fArrayHelperGetDouble;
	private IMethodProxy fArrayHelperGetFloat;
	private IMethodProxy fArrayHelperGetInt;
	private IMethodProxy fArrayHelperGetShort;
	private IMethodProxy fArrayHelperGetLong;	
	private IMethodProxy fArrayHelperSet;			
	
/**
 * Get the constants instance for the specified registry.
 */
public static REMStandardBeanProxyConstants getConstants(ProxyFactoryRegistry registry) {
	REMStandardBeanProxyConstants constants = (REMStandardBeanProxyConstants) registry.getConstants(REGISTRY_KEY);
	if (constants == null)
		registry.registerConstants(REGISTRY_KEY, constants = new REMStandardBeanProxyConstants(registry));	
	return constants;
}


private REMStandardBeanProxyConstants(ProxyFactoryRegistry registry) {
	super();
	fRegistry = registry;
}

public IMethodProxy getClassNewInstance() {
	// We actually need a special new instance because we want to be able to access outside of security. For our purposes security doesn't matter for construction.
	if (fClassNewInstance == null)
		fClassNewInstance = fRegistry.getMethodProxyFactory().getMethodProxy("org.eclipse.jem.internal.proxy.vm.remote.ClassHelper", "newInstance", new String[] {"java.lang.Class"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return fClassNewInstance;
}

public IMethodProxy getClassGetField() {
	if (fClassGetField == null)
		fClassGetField = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.Class", "getField", new String[] {"java.lang.String"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return fClassGetField;
}

public IMethodProxy getClassConstructor() {
	if (fClassGetConstructor == null)
		fClassGetConstructor = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.Class", "getConstructor", new String[] {"[Ljava.lang.Class;"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return fClassGetConstructor;
}

public IMethodProxy getClassConstructors() {
	if (fClassGetConstructors == null)
		fClassGetConstructors = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.Class", "getConstructors", null); //$NON-NLS-1$ //$NON-NLS-2$
	return fClassGetConstructors;
}

public IMethodProxy getDeclaredClassConstructor() {
	if (fClassGetDeclaredConstructor == null)
		fClassGetDeclaredConstructor = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.Class", "getDeclaredConstructor", new String[] {"[Ljava.lang.Class;"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return fClassGetDeclaredConstructor;
}

public IMethodProxy getDeclaredClassConstructors() {
	if (fClassGetDeclaredConstructors == null)
		fClassGetDeclaredConstructors = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.Class", "getDeclaredConstructors", null); //$NON-NLS-1$ //$NON-NLS-2$
	return fClassGetDeclaredConstructors;
}

public IMethodProxy getClassIsAssignableFrom() {
	if (fClassIsAssignableFrom == null)
		fClassIsAssignableFrom = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.Class", "isAssignableFrom", new String[] {"java.lang.Class"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return fClassIsAssignableFrom;
}

public IMethodProxy getObjectToString() {
	if (fObjectToString == null)
		fObjectToString = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.Object", "toString", null); //$NON-NLS-1$ //$NON-NLS-2$
	return fObjectToString;
}

public IMethodProxy getObjectEquals() {
	if (fObjectEquals == null)
		fObjectEquals = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.Object", "equals", new String[] {"java.lang.Object"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return fObjectEquals;
}
public IMethodProxy getThrowableLocalizedMessage() {
	if (fThrowableLocalizedMessage == null)
		fThrowableLocalizedMessage = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.Throwable", "getLocalizedMessage", null); //$NON-NLS-1$ //$NON-NLS-2$
	return fThrowableLocalizedMessage;
}

public IMethodProxy getThrowableMessage() {
	if (fThrowableMessage == null)
		fThrowableMessage = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.Throwable", "getMessage", null); //$NON-NLS-1$ //$NON-NLS-2$
	return fThrowableMessage;
}

public IMethodProxy getMethodDeclaringClassMessage() {
	if (fMethodDeclaringClassMessage == null)
		fMethodDeclaringClassMessage = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Method", "getDeclaringClass", null); //$NON-NLS-1$ //$NON-NLS-2$
	return fMethodDeclaringClassMessage;
}

public IMethodProxy getMethodMethodNameMessage() {
	if (fMethodMethodNameMessage == null)
		fMethodMethodNameMessage = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Method", "getName", null); //$NON-NLS-1$ //$NON-NLS-2$
	return fMethodMethodNameMessage;
}	

public IMethodProxy getMethodParameterTypesMessage() {
	if (fMethodParameterTypesMessage == null)
		fMethodParameterTypesMessage = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Method", "getParameterTypes", null); //$NON-NLS-1$ //$NON-NLS-2$
	return fMethodParameterTypesMessage;
}

public IMethodProxy getMethodReturnTypeMessage() {
	if (fMethodReturnTypeMessage == null)
		fMethodReturnTypeMessage = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Method", "getReturnType", null); //$NON-NLS-1$ //$NON-NLS-2$
	return fMethodReturnTypeMessage;
}

public IMethodProxy getAccessibleIsAccessible() {
	if (fAccessibleIsAccessible == null)
		fAccessibleIsAccessible = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.AccessibleObject", "isAccessible", null); //$NON-NLS-1$ //$NON-NLS-2$
	return fAccessibleIsAccessible;
}

public IMethodProxy getAccessibleSetAccessible() {
	if (fAccessibleSetAccessible == null)
		fAccessibleSetAccessible = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.AccessibleObject", "setAccessible", new String[] {"boolean"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return fAccessibleSetAccessible;
}

public IMethodProxy getFieldGetType() {
	if (fFieldGetType == null)
		fFieldGetType = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Field", "getType", null); //$NON-NLS-1$ //$NON-NLS-2$
	return fFieldGetType;
}

public IMethodProxy getFieldGet() {
	if (fFieldGet == null)
		fFieldGet = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Field", "get", new String[] {"java.lang.Object"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return fFieldGet;
}

public IMethodProxy getFieldGetByte() {
	if (fFieldGetByte == null)
		fFieldGetByte = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Field", "getByte", new String[] {"java.lang.Object"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return fFieldGetByte;
}

public IMethodProxy getFieldGetBoolean() {
	if (fFieldGetBoolean == null)
		fFieldGetBoolean = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Field", "getBoolean", new String[] {"java.lang.Object"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return fFieldGetBoolean;
}

public IMethodProxy getFieldGetChar() {
	if (fFieldGetChar == null)
		fFieldGetChar = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Field", "getChar", new String[] {"java.lang.Object"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return fFieldGetChar;
}

public IMethodProxy getFieldGetDouble() {
	if (fFieldGetDouble == null)
		fFieldGetDouble = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Field", "getDouble", new String[] {"java.lang.Object"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return fFieldGetDouble;
}

public IMethodProxy getFieldGetFloat() {
	if (fFieldGetFloat == null)
		fFieldGetFloat = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Field", "getFloat", new String[] {"java.lang.Object"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return fFieldGetFloat;
}

public IMethodProxy getFieldGetInt() {
	if (fFieldGetInt == null)
		fFieldGetInt = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Field", "getInt", new String[] {"java.lang.Object"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return fFieldGetInt;
}

public IMethodProxy getFieldGetLong() {
	if (fFieldGetLong == null)
		fFieldGetLong = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Field", "getLong", new String[] {"java.lang.Object"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return fFieldGetLong;
}

public IMethodProxy getFieldGetShort() {
	if (fFieldGetShort == null)
		fFieldGetShort = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Field", "getShort", new String[] {"java.lang.Object"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return fFieldGetShort;
}

public IMethodProxy getFieldSet() {
	if (fFieldSet == null)
		fFieldSet = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Field", "set", new String[] {"java.lang.Object", "java.lang.Object"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fFieldSet;
}

public IMethodProxy getConstructorNewInstance() {
	if (fConstructorNewInstance == null)
		fConstructorNewInstance = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Constructor", "newInstance", new String[] {"[Ljava.lang.Object;"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return fConstructorNewInstance;
}

public IMethodProxy getConstructorParameterTypesMessage() {
	if (fConstructorParameterTypesMessage == null)
		fConstructorParameterTypesMessage = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Constructor", "getParameterTypes", null); //$NON-NLS-1$ //$NON-NLS-2$
	return fConstructorParameterTypesMessage;
}

public IMethodProxy getArrayNewInstanceOneDimension() {
	if (fArrayNewInstanceOneDimension == null)
		fArrayNewInstanceOneDimension = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Array", "newInstance", new String[] {"java.lang.Class", "int"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayNewInstanceOneDimension;
}

public IMethodProxy getArrayNewInstanceMultiDimension() {
	if (fArrayNewInstanceMultiDimensions == null)
		fArrayNewInstanceMultiDimensions = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Array", "newInstance", new String[] {"java.lang.Class", "[I"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayNewInstanceMultiDimensions;
}

public IMethodProxy getArrayGetLength() {
	if (fArrayGetLength == null)
		fArrayGetLength = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Array", "getLength", new String[] {"java.lang.Object"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return fArrayGetLength;
}

public IMethodProxy getArrayGet() {
	if (fArrayGet == null)
		fArrayGet = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Array", "get", new String[] {"java.lang.Object", "int"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayGet;
}

public IMethodProxy getArrayGetByte() {
	if (fArrayGetByte == null)
		fArrayGetByte = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Array", "getByte", new String[] {"java.lang.Object", "int"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayGetByte;
}

public IMethodProxy getArrayGetBoolean() {
	if (fArrayGetBoolean == null)
		fArrayGetBoolean = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Array", "getBoolean", new String[] {"java.lang.Object", "int"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayGetBoolean;
}

public IMethodProxy getArrayGetChar() {
	if (fArrayGetChar == null)
		fArrayGetChar = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Array", "getChar", new String[] {"java.lang.Object", "int"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayGetChar;
}

public IMethodProxy getArrayGetDouble() {
	if (fArrayGetDouble == null)
		fArrayGetDouble = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Array", "getDouble", new String[] {"java.lang.Object", "int"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayGetDouble;
}

public IMethodProxy getArrayGetFloat() {
	if (fArrayGetFloat == null)
		fArrayGetFloat = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Array", "getFloat", new String[] {"java.lang.Object", "int"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayGetFloat;
}

public IMethodProxy getArrayGetInt() {
	if (fArrayGetInt == null)
		fArrayGetInt = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Array", "getInt", new String[] {"java.lang.Object", "int"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayGetInt;
}

public IMethodProxy getArrayGetLong() {
	if (fArrayGetLong == null)
		fArrayGetLong = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Array", "getLong", new String[] {"java.lang.Object", "int"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayGetLong;
}

public IMethodProxy getArrayGetShort() {
	if (fArrayGetShort == null)
		fArrayGetShort = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Array", "getShort", new String[] {"java.lang.Object", "int"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayGetShort;
}

public IMethodProxy getArraySet() {
	if (fArraySet == null)
		fArraySet = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.reflect.Array", "set", new String[] {"java.lang.Object", "int", "java.lang.Object"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
	return fArraySet;
}

public IMethodProxy getArrayHelperGet() {
	if (fArrayHelperGet == null)
		fArrayHelperGet = fRegistry.getMethodProxyFactory().getMethodProxy("org.eclipse.jem.internal.proxy.vm.remote.ArrayHelper", "get", new String[] {"java.lang.Object", "[I"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayHelperGet;
}

public IMethodProxy getArrayHelperGetByte() {
	if (fArrayHelperGetByte == null)
		fArrayHelperGetByte = fRegistry.getMethodProxyFactory().getMethodProxy("org.eclipse.jem.internal.proxy.vm.remote.ArrayHelper", "getByte", new String[] {"java.lang.Object", "[I"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayHelperGetByte;
}

public IMethodProxy getArrayHelperGetBoolean() {
	if (fArrayHelperGetBoolean == null)
		fArrayHelperGetBoolean = fRegistry.getMethodProxyFactory().getMethodProxy("org.eclipse.jem.internal.proxy.vm.remote.ArrayHelper", "getBoolean", new String[] {"java.lang.Object", "[I"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayHelperGetBoolean;
}

public IMethodProxy getArrayHelperGetChar() {
	if (fArrayHelperGetChar == null)
		fArrayHelperGetChar = fRegistry.getMethodProxyFactory().getMethodProxy("org.eclipse.jem.internal.proxy.vm.remote.ArrayHelper", "getChar", new String[] {"java.lang.Object", "[I"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayHelperGetChar;
}

public IMethodProxy getArrayHelperGetDouble() {
	if (fArrayHelperGetDouble == null)
		fArrayHelperGetDouble = fRegistry.getMethodProxyFactory().getMethodProxy("org.eclipse.jem.internal.proxy.vm.remote.ArrayHelper", "getDouble", new String[] {"java.lang.Object", "[I"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayHelperGetDouble;
}

public IMethodProxy getArrayHelperGetFloat() {
	if (fArrayHelperGetFloat == null)
		fArrayHelperGetFloat = fRegistry.getMethodProxyFactory().getMethodProxy("org.eclipse.jem.internal.proxy.vm.remote.ArrayHelper", "getFloat", new String[] {"java.lang.Object", "[I"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayHelperGetFloat;
}

public IMethodProxy getArrayHelperGetInt() {
	if (fArrayHelperGetInt == null)
		fArrayHelperGetInt = fRegistry.getMethodProxyFactory().getMethodProxy("org.eclipse.jem.internal.proxy.vm.remote.ArrayHelper", "getInt", new String[] {"java.lang.Object", "[I"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayHelperGetInt;
}

public IMethodProxy getArrayHelperGetLong() {
	if (fArrayHelperGetLong == null)
		fArrayHelperGetLong = fRegistry.getMethodProxyFactory().getMethodProxy("org.eclipse.jem.internal.proxy.vm.remote.ArrayHelper", "getLong", new String[] {"java.lang.Object", "[I"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayHelperGetLong;
}

public IMethodProxy getArrayHelperGetShort() {
	if (fArrayHelperGetShort == null)
		fArrayHelperGetShort = fRegistry.getMethodProxyFactory().getMethodProxy("org.eclipse.jem.internal.proxy.vm.remote.ArrayHelper", "getShort", new String[] {"java.lang.Object", "[I"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fArrayHelperGetShort;
}

public IMethodProxy getArrayHelperSet() {
	if (fArrayHelperSet == null)
		fArrayHelperSet = fRegistry.getMethodProxyFactory().getMethodProxy("org.eclipse.jem.internal.proxy.vm.remote.ArrayHelper", "set", new String[] {"java.lang.Object", "[I", "java.lang.Object"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
	return fArrayHelperSet;
}


public IMethodProxy getClassGetDeclaredField() {

	if (fClassGetDeclaredField == null)
			fClassGetDeclaredField = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.Class", "getDeclaredField", new String[] {"java.lang.String"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
	return fClassGetDeclaredField;
}

public IMethodProxy getClassGetDeclaredFields() {

	if (fClassGetDeclaredFields == null)
			fClassGetDeclaredFields = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.Class", "getDeclaredFields", null); //$NON-NLS-1$ //$NON-NLS-2$
	return fClassGetDeclaredFields;
}
public IMethodProxy getClassGetFields() {

	if (fClassGetFields == null)
			fClassGetFields = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.Class", "getFields", null); //$NON-NLS-1$ //$NON-NLS-2$
	return fClassGetFields;
}


/**
 * @return
 * 
 * @since 1.1.0
 */
public IMethodProxy getClassMethods() {
	if (fClassGetMethods == null)
		fClassGetMethods = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.Class", "getMethods", null); //$NON-NLS-1$ //$NON-NLS-2$
	return fClassGetMethods;
}

/**
 * @return
 * 
 * @since 1.1.0
 */
public IMethodProxy getClassDeclaredMethods() {
	if (fClassGetDeclaredMethods == null)
		fClassGetDeclaredMethods = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.Class", "getDeclaredMethods", null); //$NON-NLS-1$ //$NON-NLS-2$
	return fClassGetDeclaredMethods;
}

public IMethodProxy getClassDeclaredMethod() {
	if (fClassGetDeclaredMethod == null)
		fClassGetDeclaredMethod = fRegistry.getMethodProxyFactory().getMethodProxy("java.lang.Class", "getDeclaredMethod", new String[] {"java.lang.String", "[Ljava.lang.Class;"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fClassGetDeclaredMethod;
}

public IMethodProxy getFindCompatibleConstructorMethod() {
	if (fMethodHelperFindCompatibleConstructor == null)
		fMethodHelperFindCompatibleConstructor = fRegistry.getMethodProxyFactory().getMethodProxy("org.eclipse.jem.internal.proxy.common.MethodHelper", "findCompatibleConstructor", new String[] {"java.lang.Class", "[Ljava.lang.Class;"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
	return fMethodHelperFindCompatibleConstructor;
}

public IMethodProxy getFindCompatibleMethodMethod() {
	if (fMethodHelperFindCompatibleMethod == null)
		fMethodHelperFindCompatibleMethod = fRegistry.getMethodProxyFactory().getMethodProxy("org.eclipse.jem.internal.proxy.common.MethodHelper", "findCompatibleMethod", new String[] {"java.lang.Class", "java.lang.String", "[Ljava.lang.Class;"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
	return fMethodHelperFindCompatibleMethod;
}
}

Back to the top