Package org.teavm.vm.spi
Interface TeaVMHost
- All Superinterfaces:
ServiceRepository
- All Known Implementing Classes:
TeaVM
A host of plugins for TeaVM. Plugins are provided with this interface in order to give them ability to extend TeaVM.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(DependencyListener dependencyListener) voidadd(ClassHolderTransformer classTransformer) voidadd(MethodReference methodRef, BootstrapMethodSubstitutor substitutor) voidadd(MethodReference methodRef, DependencyPlugin dependencyPlugin) voidaddVirtualMethods(Predicate<MethodReference> predicate) Gets class loaded that is used by TeaVM.<T extends TeaVMHostExtension>
TgetExtension(Class<T> extensionType) String[]Gets configuration properties.<T> voidregisterService(Class<T> type, T instance) Methods inherited from interface org.teavm.common.ServiceRepository
getService
-
Method Details
-
add
-
add
-
add
-
add
-
addVirtualMethods
-
getExtension
-
registerService
-
getClassLoader
ClassLoader getClassLoader()Gets class loaded that is used by TeaVM. This class loader is usually specified byTeaVMBuilder.setClassLoader(ClassLoader)- Returns:
- class loader that can be used by plugins.
-
getProperties
Properties getProperties()Gets configuration properties. These properties are usually specified byTeaVM.setProperties(Properties).- Returns:
- a copy of all of the VM properties. Any further changes to returned objects will not be visible to VM.
-
getPlatformTags
String[] getPlatformTags()
-