···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JNFDateCoercion : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JNFDefaultCoercions : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+extern const char* kOutOfMemoryError;
2323+extern const char* kClassNotFoundException;
2424+extern const char* kNullPointerException;
2525+extern const char* kIllegalAccessException;
2626+extern const char* kIllegalArgumentException;
2727+extern const char* kNoSuchFieldException;
2828+extern const char* kNoSuchMethodException;
2929+extern const char* kRuntimeException;
3030+3131+@interface JNFException : NSObject
3232+3333+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JNFInternalJavaClassToCoersionHolder : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JNFJObjectWrapper : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JNFListCoercion : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JNFMapCoercion : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JNFNumberCoercion : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+extern NSString* JNFRunLoopDidStartNotification;
2323+2424+@interface JNFRunLoop : NSObject
2525+2626+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JNFRunnable : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JNFRunnableWrapper : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JNFSetCoercion : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JNFStringCoercion : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JNFTypeCoercer : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@protocol JNFTypeCoercion
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JNFWeakJObjectWrapper : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaNativeFoundation/JNFDateCoercion.h>
2121+2222+@implementation JNFDateCoercion
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaNativeFoundation/JNFDefaultCoercions.h>
2121+2222+@implementation JNFDefaultCoercions
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaNativeFoundation/JNFException.h>
2121+2222+// guessed values
2323+const char* kOutOfMemoryError = "kOutOfMemoryError";
2424+const char* kClassNotFoundException = "kClassNotFoundException";
2525+const char* kNullPointerException = "kNullPointerException";
2626+const char* kIllegalAccessException = "kIllegalAccessException";
2727+const char* kIllegalArgumentException = "kIllegalArgumentException";
2828+const char* kNoSuchFieldException = "kNoSuchFieldException";
2929+const char* kNoSuchMethodException = "kNoSuchMethodException";
3030+const char* kRuntimeException = "kRuntimeException";
3131+3232+@implementation JNFException
3333+3434+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
3535+{
3636+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
3737+}
3838+3939+- (void)forwardInvocation:(NSInvocation *)anInvocation
4040+{
4141+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
4242+}
4343+4444+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaNativeFoundation/JNFInternalJavaClassToCoersionHolder.h>
2121+2222+@implementation JNFInternalJavaClassToCoersionHolder
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaNativeFoundation/JNFJObjectWrapper.h>
2121+2222+@implementation JNFJObjectWrapper
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaNativeFoundation/JNFListCoercion.h>
2121+2222+@implementation JNFListCoercion
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaNativeFoundation/JNFMapCoercion.h>
2121+2222+@implementation JNFMapCoercion
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaNativeFoundation/JNFNumberCoercion.h>
2121+2222+@implementation JNFNumberCoercion
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaNativeFoundation/JNFRunLoop.h>
2121+2222+// guessed value
2323+NSString* JNFRunLoopDidStartNotification = @"JNFRunLoopDidStartNotification";
2424+2525+@implementation JNFRunLoop
2626+2727+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2828+{
2929+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
3030+}
3131+3232+- (void)forwardInvocation:(NSInvocation *)anInvocation
3333+{
3434+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3535+}
3636+3737+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaNativeFoundation/JNFRunnable.h>
2121+2222+@implementation JNFRunnable
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaNativeFoundation/JNFRunnableWrapper.h>
2121+2222+@implementation JNFRunnableWrapper
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaNativeFoundation/JNFSetCoercion.h>
2121+2222+@implementation JNFSetCoercion
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaNativeFoundation/JNFStringCoercion.h>
2121+2222+@implementation JNFStringCoercion
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaNativeFoundation/JNFTypeCoercer.h>
2121+2222+@implementation JNFTypeCoercer
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaNativeFoundation/JNFWeakJObjectWrapper.h>
2121+2222+@implementation JNFWeakJObjectWrapper
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JRSAppKitAWT : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JRSDrag : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JRSInputMethodController : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JRSMenu : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JRSRenderServer : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JRSSecurity : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JRSSymbolicator : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface JRSSymbolicatorImpl : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#ifndef _JavaRuntimeSupport_H_
2222+#define _JavaRuntimeSupport_H_
2323+2424+#import <Foundation/Foundation.h>
2525+2626+#import <JavaRuntimeSupport/JRSDrag.h>
2727+#import <JavaRuntimeSupport/JRSAppKitAWT.h>
2828+#import <JavaRuntimeSupport/JRSMenu.h>
2929+#import <JavaRuntimeSupport/_JRSUIRenderer.h>
3030+#import <JavaRuntimeSupport/JRSInputMethodController.h>
3131+#import <JavaRuntimeSupport/MIGThread.h>
3232+#import <JavaRuntimeSupport/JRSRenderServer.h>
3333+#import <JavaRuntimeSupport/JRSSymbolicator.h>
3434+#import <JavaRuntimeSupport/JRSSymbolicatorImpl.h>
3535+#import <JavaRuntimeSupport/JRSSecurity.h>
3636+3737+void* CopyCFStringToFilesystemRepresentation(void);
3838+void* CopyCFStringToUTF8(void);
3939+void* GetHitPart(void);
4040+void* GetScrollBarHitPart(void);
4141+void* JRSAccessibilityUnregisterUniqueIdForUIElement(void);
4242+void* JRSCopyCanonicalLanguageForPrimaryLanguage(void);
4343+void* JRSCopyOSJavaSupportVersion(void);
4444+void* JRSCopyOSName(void);
4545+void* JRSCopyOSVersion(void);
4646+void* JRSCopyPrimaryLanguage(void);
4747+void* JRSFontAlignStyleForFractionalMeasurement(void);
4848+void* JRSFontAlignStyleForIntegerMeasurement(void);
4949+void* JRSFontCreateFallbackFontForCharacters(void);
5050+void* JRSFontGetAdvancesForGlyphsAndStyle(void);
5151+void* JRSFontGetBoundingBoxesForGlyphsAndStyle(void);
5252+void* JRSFontGetRenderingStyleForContext(void);
5353+void* JRSFontGetRenderingStyleForHints(void);
5454+void* JRSFontSetRenderingStyleOnContext(void);
5555+void* JRSFontStyleIsAntialiased(void);
5656+void* JRSFontStyleUsesFractionalMetrics(void);
5757+void* JRSSetDefaultLocalization(void);
5858+void* JRSUIControlCreate(void);
5959+void* JRSUIControlDraw(void);
6060+void* JRSUIControlGetHitPart(void);
6161+void* JRSUIControlGetScrollBarOffsetFor(void);
6262+void* JRSUIControlGetScrollBarPartBounds(void);
6363+void* JRSUIControlRelease(void);
6464+void* JRSUIControlSetAlignmentHorizontal(void);
6565+void* JRSUIControlSetAlignmentVertical(void);
6666+void* JRSUIControlSetAnimating(void);
6767+void* JRSUIControlSetDirection(void);
6868+void* JRSUIControlSetOrientation(void);
6969+void* JRSUIControlSetPresentationState(void);
7070+void* JRSUIControlSetScrollBarPart(void);
7171+void* JRSUIControlSetSegmentPosition(void);
7272+void* JRSUIControlSetShowArrows(void);
7373+void* JRSUIControlSetSize(void);
7474+void* JRSUIControlSetState(void);
7575+void* JRSUIControlSetUserInterfaceLayoutDirection(void);
7676+void* JRSUIControlSetValueByKey(void);
7777+void* JRSUIControlSetVariant(void);
7878+void* JRSUIControlSetWidget(void);
7979+void* JRSUIControlSetWindowType(void);
8080+void* JRSUIControlShouldScrollToClick(void);
8181+void* JRSUIGetKey(void);
8282+void* JRSUIRendererCreate(void);
8383+void* JRSUIRendererRelease(void);
8484+void* do_transfer_port_send_right(void);
8585+void* port_send_right_transfer_server(void);
8686+void* port_send_right_transfer_server_routine(void);
8787+void* transfer_port_send_right(void);
8888+8989+#endif
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface MIGThread : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <Foundation/Foundation.h>
2121+2222+@interface _JRSUIRenderer : NSObject
2323+2424+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaRuntimeSupport/JRSAppKitAWT.h>
2121+2222+@implementation JRSAppKitAWT
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
+34
src/frameworks/JavaRuntimeSupport/src/JRSDrag.m
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaRuntimeSupport/JRSDrag.h>
2121+2222+@implementation JRSDrag
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaRuntimeSupport/JRSInputMethodController.h>
2121+2222+@implementation JRSInputMethodController
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
+34
src/frameworks/JavaRuntimeSupport/src/JRSMenu.m
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaRuntimeSupport/JRSMenu.h>
2121+2222+@implementation JRSMenu
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaRuntimeSupport/JRSRenderServer.h>
2121+2222+@implementation JRSRenderServer
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaRuntimeSupport/JRSSecurity.h>
2121+2222+@implementation JRSSecurity
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaRuntimeSupport/JRSSymbolicator.h>
2121+2222+@implementation JRSSymbolicator
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaRuntimeSupport/JRSSymbolicatorImpl.h>
2121+2222+@implementation JRSSymbolicatorImpl
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+2121+#include <JavaRuntimeSupport/JavaRuntimeSupport.h>
2222+#include <stdlib.h>
2323+#include <stdio.h>
2424+2525+static int verbose = 0;
2626+2727+__attribute__((constructor))
2828+static void initme(void) {
2929+ verbose = getenv("STUB_VERBOSE") != NULL;
3030+}
3131+3232+void* CopyCFStringToFilesystemRepresentation(void)
3333+{
3434+ if (verbose) puts("STUB: CopyCFStringToFilesystemRepresentation called");
3535+ return NULL;
3636+}
3737+3838+void* CopyCFStringToUTF8(void)
3939+{
4040+ if (verbose) puts("STUB: CopyCFStringToUTF8 called");
4141+ return NULL;
4242+}
4343+4444+void* GetHitPart(void)
4545+{
4646+ if (verbose) puts("STUB: GetHitPart called");
4747+ return NULL;
4848+}
4949+5050+void* GetScrollBarHitPart(void)
5151+{
5252+ if (verbose) puts("STUB: GetScrollBarHitPart called");
5353+ return NULL;
5454+}
5555+5656+void* JRSAccessibilityUnregisterUniqueIdForUIElement(void)
5757+{
5858+ if (verbose) puts("STUB: JRSAccessibilityUnregisterUniqueIdForUIElement called");
5959+ return NULL;
6060+}
6161+6262+void* JRSCopyCanonicalLanguageForPrimaryLanguage(void)
6363+{
6464+ if (verbose) puts("STUB: JRSCopyCanonicalLanguageForPrimaryLanguage called");
6565+ return NULL;
6666+}
6767+6868+void* JRSCopyOSJavaSupportVersion(void)
6969+{
7070+ if (verbose) puts("STUB: JRSCopyOSJavaSupportVersion called");
7171+ return NULL;
7272+}
7373+7474+void* JRSCopyOSName(void)
7575+{
7676+ if (verbose) puts("STUB: JRSCopyOSName called");
7777+ return NULL;
7878+}
7979+8080+void* JRSCopyOSVersion(void)
8181+{
8282+ if (verbose) puts("STUB: JRSCopyOSVersion called");
8383+ return NULL;
8484+}
8585+8686+void* JRSCopyPrimaryLanguage(void)
8787+{
8888+ if (verbose) puts("STUB: JRSCopyPrimaryLanguage called");
8989+ return NULL;
9090+}
9191+9292+void* JRSFontAlignStyleForFractionalMeasurement(void)
9393+{
9494+ if (verbose) puts("STUB: JRSFontAlignStyleForFractionalMeasurement called");
9595+ return NULL;
9696+}
9797+9898+void* JRSFontAlignStyleForIntegerMeasurement(void)
9999+{
100100+ if (verbose) puts("STUB: JRSFontAlignStyleForIntegerMeasurement called");
101101+ return NULL;
102102+}
103103+104104+void* JRSFontCreateFallbackFontForCharacters(void)
105105+{
106106+ if (verbose) puts("STUB: JRSFontCreateFallbackFontForCharacters called");
107107+ return NULL;
108108+}
109109+110110+void* JRSFontGetAdvancesForGlyphsAndStyle(void)
111111+{
112112+ if (verbose) puts("STUB: JRSFontGetAdvancesForGlyphsAndStyle called");
113113+ return NULL;
114114+}
115115+116116+void* JRSFontGetBoundingBoxesForGlyphsAndStyle(void)
117117+{
118118+ if (verbose) puts("STUB: JRSFontGetBoundingBoxesForGlyphsAndStyle called");
119119+ return NULL;
120120+}
121121+122122+void* JRSFontGetRenderingStyleForContext(void)
123123+{
124124+ if (verbose) puts("STUB: JRSFontGetRenderingStyleForContext called");
125125+ return NULL;
126126+}
127127+128128+void* JRSFontGetRenderingStyleForHints(void)
129129+{
130130+ if (verbose) puts("STUB: JRSFontGetRenderingStyleForHints called");
131131+ return NULL;
132132+}
133133+134134+void* JRSFontSetRenderingStyleOnContext(void)
135135+{
136136+ if (verbose) puts("STUB: JRSFontSetRenderingStyleOnContext called");
137137+ return NULL;
138138+}
139139+140140+void* JRSFontStyleIsAntialiased(void)
141141+{
142142+ if (verbose) puts("STUB: JRSFontStyleIsAntialiased called");
143143+ return NULL;
144144+}
145145+146146+void* JRSFontStyleUsesFractionalMetrics(void)
147147+{
148148+ if (verbose) puts("STUB: JRSFontStyleUsesFractionalMetrics called");
149149+ return NULL;
150150+}
151151+152152+void* JRSSetDefaultLocalization(void)
153153+{
154154+ if (verbose) puts("STUB: JRSSetDefaultLocalization called");
155155+ return NULL;
156156+}
157157+158158+void* JRSUIControlCreate(void)
159159+{
160160+ if (verbose) puts("STUB: JRSUIControlCreate called");
161161+ return NULL;
162162+}
163163+164164+void* JRSUIControlDraw(void)
165165+{
166166+ if (verbose) puts("STUB: JRSUIControlDraw called");
167167+ return NULL;
168168+}
169169+170170+void* JRSUIControlGetHitPart(void)
171171+{
172172+ if (verbose) puts("STUB: JRSUIControlGetHitPart called");
173173+ return NULL;
174174+}
175175+176176+void* JRSUIControlGetScrollBarOffsetFor(void)
177177+{
178178+ if (verbose) puts("STUB: JRSUIControlGetScrollBarOffsetFor called");
179179+ return NULL;
180180+}
181181+182182+void* JRSUIControlGetScrollBarPartBounds(void)
183183+{
184184+ if (verbose) puts("STUB: JRSUIControlGetScrollBarPartBounds called");
185185+ return NULL;
186186+}
187187+188188+void* JRSUIControlRelease(void)
189189+{
190190+ if (verbose) puts("STUB: JRSUIControlRelease called");
191191+ return NULL;
192192+}
193193+194194+void* JRSUIControlSetAlignmentHorizontal(void)
195195+{
196196+ if (verbose) puts("STUB: JRSUIControlSetAlignmentHorizontal called");
197197+ return NULL;
198198+}
199199+200200+void* JRSUIControlSetAlignmentVertical(void)
201201+{
202202+ if (verbose) puts("STUB: JRSUIControlSetAlignmentVertical called");
203203+ return NULL;
204204+}
205205+206206+void* JRSUIControlSetAnimating(void)
207207+{
208208+ if (verbose) puts("STUB: JRSUIControlSetAnimating called");
209209+ return NULL;
210210+}
211211+212212+void* JRSUIControlSetDirection(void)
213213+{
214214+ if (verbose) puts("STUB: JRSUIControlSetDirection called");
215215+ return NULL;
216216+}
217217+218218+void* JRSUIControlSetOrientation(void)
219219+{
220220+ if (verbose) puts("STUB: JRSUIControlSetOrientation called");
221221+ return NULL;
222222+}
223223+224224+void* JRSUIControlSetPresentationState(void)
225225+{
226226+ if (verbose) puts("STUB: JRSUIControlSetPresentationState called");
227227+ return NULL;
228228+}
229229+230230+void* JRSUIControlSetScrollBarPart(void)
231231+{
232232+ if (verbose) puts("STUB: JRSUIControlSetScrollBarPart called");
233233+ return NULL;
234234+}
235235+236236+void* JRSUIControlSetSegmentPosition(void)
237237+{
238238+ if (verbose) puts("STUB: JRSUIControlSetSegmentPosition called");
239239+ return NULL;
240240+}
241241+242242+void* JRSUIControlSetShowArrows(void)
243243+{
244244+ if (verbose) puts("STUB: JRSUIControlSetShowArrows called");
245245+ return NULL;
246246+}
247247+248248+void* JRSUIControlSetSize(void)
249249+{
250250+ if (verbose) puts("STUB: JRSUIControlSetSize called");
251251+ return NULL;
252252+}
253253+254254+void* JRSUIControlSetState(void)
255255+{
256256+ if (verbose) puts("STUB: JRSUIControlSetState called");
257257+ return NULL;
258258+}
259259+260260+void* JRSUIControlSetUserInterfaceLayoutDirection(void)
261261+{
262262+ if (verbose) puts("STUB: JRSUIControlSetUserInterfaceLayoutDirection called");
263263+ return NULL;
264264+}
265265+266266+void* JRSUIControlSetValueByKey(void)
267267+{
268268+ if (verbose) puts("STUB: JRSUIControlSetValueByKey called");
269269+ return NULL;
270270+}
271271+272272+void* JRSUIControlSetVariant(void)
273273+{
274274+ if (verbose) puts("STUB: JRSUIControlSetVariant called");
275275+ return NULL;
276276+}
277277+278278+void* JRSUIControlSetWidget(void)
279279+{
280280+ if (verbose) puts("STUB: JRSUIControlSetWidget called");
281281+ return NULL;
282282+}
283283+284284+void* JRSUIControlSetWindowType(void)
285285+{
286286+ if (verbose) puts("STUB: JRSUIControlSetWindowType called");
287287+ return NULL;
288288+}
289289+290290+void* JRSUIControlShouldScrollToClick(void)
291291+{
292292+ if (verbose) puts("STUB: JRSUIControlShouldScrollToClick called");
293293+ return NULL;
294294+}
295295+296296+void* JRSUIGetKey(void)
297297+{
298298+ if (verbose) puts("STUB: JRSUIGetKey called");
299299+ return NULL;
300300+}
301301+302302+void* JRSUIRendererCreate(void)
303303+{
304304+ if (verbose) puts("STUB: JRSUIRendererCreate called");
305305+ return NULL;
306306+}
307307+308308+void* JRSUIRendererRelease(void)
309309+{
310310+ if (verbose) puts("STUB: JRSUIRendererRelease called");
311311+ return NULL;
312312+}
313313+314314+void* do_transfer_port_send_right(void)
315315+{
316316+ if (verbose) puts("STUB: do_transfer_port_send_right called");
317317+ return NULL;
318318+}
319319+320320+void* port_send_right_transfer_server(void)
321321+{
322322+ if (verbose) puts("STUB: port_send_right_transfer_server called");
323323+ return NULL;
324324+}
325325+326326+void* port_send_right_transfer_server_routine(void)
327327+{
328328+ if (verbose) puts("STUB: port_send_right_transfer_server_routine called");
329329+ return NULL;
330330+}
331331+332332+void* transfer_port_send_right(void)
333333+{
334334+ if (verbose) puts("STUB: transfer_port_send_right called");
335335+ return NULL;
336336+}
+34
src/frameworks/JavaRuntimeSupport/src/MIGThread.m
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaRuntimeSupport/MIGThread.h>
2121+2222+@implementation MIGThread
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2021 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <JavaRuntimeSupport/_JRSUIRenderer.h>
2121+2222+@implementation _JRSUIRenderer
2323+2424+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
2525+{
2626+ return [NSMethodSignature signatureWithObjCTypes: "v@:"];
2727+}
2828+2929+- (void)forwardInvocation:(NSInvocation *)anInvocation
3030+{
3131+ NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]);
3232+}
3333+3434+@end