Package org.robovm.compiler.plugin.objc
Class ObjCProtocolToObjCObjectPlugin
java.lang.Object
org.robovm.compiler.plugin.Plugin
org.robovm.compiler.plugin.CompilerPlugin
org.robovm.compiler.plugin.AbstractCompilerPlugin
org.robovm.compiler.plugin.objc.ObjCProtocolToObjCObjectPlugin
public class ObjCProtocolToObjCObjectPlugin extends AbstractCompilerPlugin
CompilerPlugin which replaces Object super class with NSObject for
local/nested/anonymous classes that implement NSObjectProtocol interfaces.
Otherwise marshalling of pure java object will fail with exception-
Field Summary
Fields Modifier and Type Field Description static StringNS_OBJECTstatic StringOBJC_OBJECTstatic StringOBJC_PROTOCOL -
Constructor Summary
Constructors Constructor Description ObjCProtocolToObjCObjectPlugin() -
Method Summary
Modifier and Type Method Description voidbeforeClass(Config config, Clazz clazz, ModuleBuilder moduleBuilder)Called just before a class is about to be compiled.Methods inherited from class org.robovm.compiler.plugin.AbstractCompilerPlugin
afterClass, afterClassDependenciesResolved, afterLinker, afterMethod, afterObjectFile, beforeConfig, beforeLinker, beforeMethod, getArguments, helloClassMethods inherited from class org.robovm.compiler.plugin.Plugin
argumentValue, argumentValue, argumentValue, parseArguments
-
Field Details
-
OBJC_PROTOCOL
- See Also:
- Constant Field Values
-
NS_OBJECT
- See Also:
- Constant Field Values
-
OBJC_OBJECT
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ObjCProtocolToObjCObjectPlugin
public ObjCProtocolToObjCObjectPlugin()
-
-
Method Details
-
beforeClass
Description copied from class:CompilerPluginCalled just before a class is about to be compiled. Modifications to the underlyingSootClass(Clazz.getSootClass()) should be done at this stage.- Overrides:
beforeClassin classAbstractCompilerPlugin- Parameters:
config- the currentConfig.clazz- theClazzbeing compiled.moduleBuilder- theModuleBuilderholding the generated bitcode.
-