Package org.robovm.compiler.plugin.objc
Class ObjCMemberPlugin
java.lang.Object
org.robovm.compiler.plugin.Plugin
org.robovm.compiler.plugin.CompilerPlugin
org.robovm.compiler.plugin.AbstractCompilerPlugin
org.robovm.compiler.plugin.objc.ObjCMemberPlugin
public class ObjCMemberPlugin extends AbstractCompilerPlugin
CompilerPlugin which transforms Objective-C methods and properties to @Bridge
methods. Also adds corresponding @Callback methods for each method and
property.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classObjCMemberPlugin.MethodCompiler -
Field Summary
Fields Modifier and Type Field Description static String$Mstatic StringBIND_SELECTORstatic StringCUSTOM_CLASSstatic StringIBACTIONstatic StringIBINSPECTABLEstatic StringIBOUTLETstatic StringIBOUTLETCOLLECTIONstatic StringMETHODstatic StringNATIVE_CLASSstatic StringNATIVE_OBJECTstatic StringNATIVE_PROTOCOL_PROXYstatic StringNOT_IMPLEMENTEDstatic StringNS_ARRAYstatic StringNS_OBJECTstatic StringNS_OBJECT$MARSHALERstatic StringNS_STRING$AS_STRING_MARSHALERstatic StringOBJC_ANNOTATIONS_PACKAGEstatic StringOBJC_CLASSstatic StringOBJC_EXTENSIONSstatic StringOBJC_OBJECTstatic StringOBJC_RUNTIMEstatic StringOBJC_SUPERstatic StringPROPERTYstatic StringSELECTORstatic StringTYPE_ENCODINGstatic StringUI_APPLICATION_DELEGATEstatic StringUI_EVENT -
Constructor Summary
Constructors Constructor Description ObjCMemberPlugin() -
Method Summary
Modifier and Type Method Description voidbeforeClass(Config config, Clazz clazz, ModuleBuilder moduleBuilder)Called just before a class is about to be compiled.voidbeforeLinker(Config config, Linker linker, Set<Clazz> classes)Called just beforeLinkeris invoked.Methods inherited from class org.robovm.compiler.plugin.AbstractCompilerPlugin
afterClass, afterClassDependenciesResolved, afterLinker, afterMethod, afterObjectFile, beforeConfig, beforeMethod, getArguments, helloClassMethods inherited from class org.robovm.compiler.plugin.Plugin
argumentValue, argumentValue, argumentValue, parseArguments
-
Field Details
-
OBJC_ANNOTATIONS_PACKAGE
- See Also:
- Constant Field Values
-
METHOD
- See Also:
- Constant Field Values
-
PROPERTY
- See Also:
- Constant Field Values
-
BIND_SELECTOR
- See Also:
- Constant Field Values
-
NOT_IMPLEMENTED
- See Also:
- Constant Field Values
-
IBACTION
- See Also:
- Constant Field Values
-
IBOUTLET
- See Also:
- Constant Field Values
-
IBINSPECTABLE
- See Also:
- Constant Field Values
-
IBOUTLETCOLLECTION
- See Also:
- Constant Field Values
-
NATIVE_CLASS
- See Also:
- Constant Field Values
-
CUSTOM_CLASS
- See Also:
- Constant Field Values
-
NATIVE_PROTOCOL_PROXY
- See Also:
- Constant Field Values
-
TYPE_ENCODING
- See Also:
- Constant Field Values
-
SELECTOR
- See Also:
- Constant Field Values
-
NATIVE_OBJECT
- See Also:
- Constant Field Values
-
OBJC_SUPER
- See Also:
- Constant Field Values
-
OBJC_CLASS
- See Also:
- Constant Field Values
-
OBJC_OBJECT
- See Also:
- Constant Field Values
-
OBJC_RUNTIME
- See Also:
- Constant Field Values
-
OBJC_EXTENSIONS
- See Also:
- Constant Field Values
-
NS_OBJECT
- See Also:
- Constant Field Values
-
NS_OBJECT$MARSHALER
- See Also:
- Constant Field Values
-
NS_STRING$AS_STRING_MARSHALER
- See Also:
- Constant Field Values
-
$M
- See Also:
- Constant Field Values
-
UI_EVENT
- See Also:
- Constant Field Values
-
UI_APPLICATION_DELEGATE
- See Also:
- Constant Field Values
-
NS_ARRAY
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ObjCMemberPlugin
public ObjCMemberPlugin()
-
-
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.
-
beforeLinker
Description copied from class:CompilerPluginCalled just beforeLinkeris invoked.- Overrides:
beforeLinkerin classAbstractCompilerPlugin- Parameters:
config- the currentConfiglinker- theLinkerinstance.classes- the classes that will be linked.
-