public interface MetadataGeneratorContext extends ServiceRepository
Represents context with compile-time information, that is useful for MetadataGenerator.
This context is provided by the compiler infrastructure.
| Modifier and Type | Method and Description |
|---|---|
StaticFieldResource |
createFieldResource(FieldReference field)
Creates a new resource that represents static field.
|
<T extends Resource> |
createResource(Class<T> resourceType)
Creates a new resource of the given type.
|
<T extends Resource> |
createResourceArray()
Creates a new resource array.
|
<T extends Resource> |
createResourceMap()
Creates a new resource map.
|
ClassLoader |
getClassLoader()
Gets the class loader that is used by the compiler.
|
ClassReaderSource |
getClassSource()
Gets the collection of all classes that were reached by the dependency analyzer.
|
Properties |
getProperties()
Gets properties that were specified to
TeaVM. |
ResourceTypeDescriptor |
getTypeDescriptor(Class<? extends Resource> type) |
getServiceClassReaderSource getClassSource()
ClassLoader getClassLoader()
Properties getProperties()
TeaVM.<T extends Resource> T createResource(Class<T> resourceType)
Resource.resourceType - type of resource to create.StaticFieldResource createFieldResource(FieldReference field)
Platform.objectFromResource(StaticFieldResource) to get actual field value.field - field for which to create resource.<T extends Resource> ResourceArray<T> createResourceArray()
<T extends Resource> ResourceMap<T> createResourceMap()
ResourceTypeDescriptor getTypeDescriptor(Class<? extends Resource> type)
Copyright © 2019. All rights reserved.