Package org.robovm.compiler.plugin
Class BuildGarbageCollectorPlugin
java.lang.Object
org.robovm.compiler.plugin.Plugin
org.robovm.compiler.plugin.CompilerPlugin
org.robovm.compiler.plugin.AbstractCompilerPlugin
org.robovm.compiler.plugin.BuildGarbageCollectorPlugin
public class BuildGarbageCollectorPlugin extends AbstractCompilerPlugin
Plugins that release resources/caches once these are not needed
-
Constructor Summary
Constructors Constructor Description BuildGarbageCollectorPlugin() -
Method Summary
Modifier and Type Method Description voidafterClassDependenciesResolved(Config config, Clazz clazz)Called after dependencies resolved and added to the list.voidafterLinker(Config config, File executable)Called just beforeLinkeris invoked.voidafterObjectFile(Config config, Clazz clazz, File objectFile, ObjectFile objectFileData)Called after the object file of a class has been compiled to an object file.voidbeforeLinker(Config config, Linker linker, Set<Clazz> classes)Called just beforeLinkeris invoked.PluginArgumentsgetArguments()Returns the plugin's prefix arguments to be parsed from XML or the command lineMethods inherited from class org.robovm.compiler.plugin.AbstractCompilerPlugin
afterClass, afterMethod, beforeClass, beforeConfig, beforeMethod, helloClassMethods inherited from class org.robovm.compiler.plugin.Plugin
argumentValue, argumentValue, argumentValue, parseArguments
-
Constructor Details
-
BuildGarbageCollectorPlugin
public BuildGarbageCollectorPlugin()
-
-
Method Details
-
getArguments
Description copied from class:PluginReturns the plugin's prefix arguments to be parsed from XML or the command line- Overrides:
getArgumentsin classAbstractCompilerPlugin
-
afterClassDependenciesResolved
Description copied from class:CompilerPluginCalled after dependencies resolved and added to the list. It is the moment when all work with clazz is finished (machine code generation pending) and all associated resources might be released- Overrides:
afterClassDependenciesResolvedin classAbstractCompilerPlugin- Parameters:
config- the currentConfigclazz- theClazzbeing compiled
-
afterObjectFile
public void afterObjectFile(Config config, Clazz clazz, File objectFile, ObjectFile objectFileData) throws IOExceptionDescription copied from class:CompilerPluginCalled after the object file of a class has been compiled to an object file.- Overrides:
afterObjectFilein classAbstractCompilerPlugin- Parameters:
config- the currentConfigclazz- theClazzbeing compiledobjectFile- the object fileobjectFileData- LLVM read object file data- Throws:
IOException
-
beforeLinker
Description copied from class:CompilerPluginCalled just beforeLinkeris invoked.- Overrides:
beforeLinkerin classAbstractCompilerPlugin- Parameters:
config- the currentConfiglinker- theLinkerinstance.classes- the classes that will be linked.
-
afterLinker
Description copied from class:CompilerPluginCalled just beforeLinkeris invoked.- Overrides:
afterLinkerin classAbstractCompilerPlugin- Parameters:
config- the currentConfigexecutable- the binary- Throws:
IOException
-