1 /*******************************************************************************
2 * Copyright (c) 2010, 2012 IBM Corporation and others.
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
9 * SPDX-License-Identifier: EPL-2.0
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
14 package org.eclipse.swt.internal.webkit;
17 /** @jniclass flags=cpp */
18 public class JSClassDefinition {
20 /** @field cast=(JSClassAttributes) */
21 public int attributes;
22 /** @field cast=(const char*) */
23 public long className;
24 /** @field cast=(JSClassRef) */
25 public long parentClass;
26 /** @field cast=(const JSStaticValue*) */
27 public long staticValues;
28 /** @field cast=(const JSStaticFunction*) */
29 public long staticFunctions;
30 /** @field cast=(JSObjectInitializeCallback) */
31 public long initialize;
32 /** @field cast=(JSObjectFinalizeCallback) */
34 /** @field cast=(JSObjectHasPropertyCallback) */
35 public long hasProperty;
36 /** @field cast=(JSObjectGetPropertyCallback) */
37 public long getProperty;
38 /** @field cast=(JSObjectSetPropertyCallback) */
39 public long setProperty;
40 /** @field cast=(JSObjectDeletePropertyCallback) */
41 public long deleteProperty;
42 /** @field cast=(JSObjectGetPropertyNamesCallback) */
43 public long getPropertyNames;
44 /** @field cast=(JSObjectCallAsFunctionCallback) */
45 public long callAsFunction;
46 /** @field cast=(JSObjectCallAsConstructorCallback) */
47 public long callAsConstructor;
48 /** @field cast=(JSObjectHasInstanceCallback) */
49 public long hasInstance;
50 /** @field cast=(JSObjectConvertToTypeCallback) */
51 public long convertToType;
53 public static final int sizeof = WebKit_win32.JSClassDefinition_sizeof();