blob: 3e6c44406ab67450a2dd36e8c30e57d1a8bcfb05 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007 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.swt.internal.cocoa;
public class id {
public int /*long*/ id;
public id() {
}
public id(int /*long*/ id) {
this.id = id;
}
public id(id id) {
this.id = id != null ? id.id : 0;
}
public int /*long*/ objc_getClass() {
String name = getClass().getName();
int index = name.lastIndexOf('.');
if (index != -1) name = name.substring(index + 1);
return OS.objc_getClass(name);
}
}