equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
22 * or visit www.oracle.com if you need additional information or have any |
22 * or visit www.oracle.com if you need additional information or have any |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 package com.apple.jobjc; |
25 package com.apple.jobjc; |
26 |
26 |
27 import javax.tools.annotation.GenerateNativeHeader; |
|
28 |
27 |
29 /* No native methods here, but the constants are needed in the supporting JNI code */ |
|
30 @GenerateNativeHeader |
|
31 public class SEL { |
28 public class SEL { |
32 static native long getSelectorPtr(String selectorName); |
29 static native long getSelectorPtr(String selectorName); |
33 static native String getSelectorName(long ptr); |
30 static native String getSelectorName(long ptr); |
34 |
31 |
35 final long selPtr; |
32 final long selPtr; |