Package org.teavm.platform.plugin
Class DefaultMetadataGeneratorContext
java.lang.Object
org.teavm.platform.plugin.DefaultMetadataGeneratorContext
- All Implemented Interfaces:
org.teavm.common.ServiceRepository,MetadataGeneratorContext
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultMetadataGeneratorContext(org.teavm.model.ClassReaderSource classSource, ClassLoader classLoader, Properties properties, org.teavm.common.ServiceRepository services) -
Method Summary
Modifier and TypeMethodDescriptioncreateFieldResource(org.teavm.model.FieldReference field) Creates a new resource that represents static field.<T extends Resource>
TcreateResource(Class<T> resourceType) <T extends Resource>
ResourceArray<T> <T extends Resource>
ResourceMap<T> Gets the class loader that is used by the compiler.org.teavm.model.ClassReaderSourceGets the collection of all classes that were reached by the dependency analyzer.Gets properties that were specified toTeaVM.<T> TgetService(Class<T> type) getTypeDescriptor(Class<? extends Resource> type)
-
Constructor Details
-
DefaultMetadataGeneratorContext
public DefaultMetadataGeneratorContext(org.teavm.model.ClassReaderSource classSource, ClassLoader classLoader, Properties properties, org.teavm.common.ServiceRepository services)
-
-
Method Details
-
getClassSource
public org.teavm.model.ClassReaderSource getClassSource()Description copied from interface:MetadataGeneratorContextGets the collection of all classes that were reached by the dependency analyzer.- Specified by:
getClassSourcein interfaceMetadataGeneratorContext- Returns:
- class source.
-
getClassLoader
Description copied from interface:MetadataGeneratorContextGets the class loader that is used by the compiler.- Specified by:
getClassLoaderin interfaceMetadataGeneratorContext- Returns:
- class loader.
-
getProperties
Description copied from interface:MetadataGeneratorContextGets properties that were specified toTeaVM.- Specified by:
getPropertiesin interfaceMetadataGeneratorContext- Returns:
- properties.
-
createResource
- Specified by:
createResourcein interfaceMetadataGeneratorContext
-
getTypeDescriptor
- Specified by:
getTypeDescriptorin interfaceMetadataGeneratorContext
-
createResourceArray
- Specified by:
createResourceArrayin interfaceMetadataGeneratorContext
-
createFieldResource
Description copied from interface:MetadataGeneratorContextCreates a new resource that represents static field. Client code then may usePlatform.objectFromResource(StaticFieldResource)to get actual field value.- Specified by:
createFieldResourcein interfaceMetadataGeneratorContext- Parameters:
field- field for which to create resource.- Returns:
- a new resource.
-
createResourceMap
- Specified by:
createResourceMapin interfaceMetadataGeneratorContext
-
getService
- Specified by:
getServicein interfaceorg.teavm.common.ServiceRepository
-