Class Renderer
java.lang.Object
org.teavm.backend.javascript.rendering.Renderer
- All Implemented Interfaces:
RenderingManager,ServiceRepository
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRenderer(SourceWriter writer, Set<MethodReference> asyncMethods, RenderingContext context, Diagnostics diagnostics, Map<MethodReference, Generator> generators, MethodNodeCache astCache, CacheStatus cacheStatus, JavaScriptTemplateFactory templateFactory) -
Method Summary
Modifier and TypeMethodDescription<T> TgetService(Class<T> type) booleanbooleanrender(ListableClassHolderSource classes, boolean isFriendlyToDebugger) voidvoidvoidvoidsetProgressConsumer(IntFunction<TeaVMProgressFeedback> progressConsumer) voidsetProperties(Properties properties)
-
Field Details
-
SECTION_STRING_POOL
public static final int SECTION_STRING_POOL- See Also:
-
SECTION_METADATA
public static final int SECTION_METADATA- See Also:
-
CLINIT_METHOD
-
-
Constructor Details
-
Renderer
public Renderer(SourceWriter writer, Set<MethodReference> asyncMethods, RenderingContext context, Diagnostics diagnostics, Map<MethodReference, Generator> generators, MethodNodeCache astCache, CacheStatus cacheStatus, JavaScriptTemplateFactory templateFactory)
-
-
Method Details
-
getWriter
- Specified by:
getWriterin interfaceRenderingManager
-
isThreadLibraryUsed
public boolean isThreadLibraryUsed() -
getClassSource
- Specified by:
getClassSourcein interfaceRenderingManager
-
getClassLoader
- Specified by:
getClassLoaderin interfaceRenderingManager
-
getProperties
- Specified by:
getPropertiesin interfaceRenderingManager
-
setProgressConsumer
-
setProperties
-
renderStringPool
- Throws:
RenderingException
-
renderStringConstants
- Throws:
RenderingException
-
renderCompatibilityStubs
- Throws:
RenderingException
-
render
-
getService
- Specified by:
getServicein interfaceServiceRepository
-