Class MethodBodyRenderer
java.lang.Object
org.teavm.backend.javascript.rendering.MethodBodyRenderer
- All Implemented Interfaces:
MethodNodeVisitor,GeneratorContext,ServiceRepository
-
Constructor Summary
ConstructorsConstructorDescriptionMethodBodyRenderer(RenderingContext context, Diagnostics diagnostics, boolean minifying, boolean debug, Set<MethodReference> asyncMethods) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()getBody()getParameterName(int index) <T> TgetService(Class<T> type) importModule(String name) booleanisAsync()booleanisAsync(MethodReference method) booleanisDynamicInitializer(String className) booleanvoidrender(MethodNode node, boolean async) voidrenderNative(Generator generator, boolean async, MethodReference reference, Set<ElementModifier> modifiers) voidtypeToClassString(SourceWriter writer, ValueType type) voidvisit(AsyncMethodNode methodNode) voidvisit(RegularMethodNode method)
-
Constructor Details
-
MethodBodyRenderer
public MethodBodyRenderer(RenderingContext context, Diagnostics diagnostics, boolean minifying, boolean debug, Set<MethodReference> asyncMethods)
-
-
Method Details
-
isThreadLibraryUsed
public boolean isThreadLibraryUsed() -
getDependency
- Specified by:
getDependencyin interfaceGeneratorContext
-
renderNative
public void renderNative(Generator generator, boolean async, MethodReference reference, Set<ElementModifier> modifiers) -
render
-
getVariables
-
getBody
-
getParameters
-
clear
public void clear() -
visit
- Specified by:
visitin interfaceMethodNodeVisitor
-
visit
- Specified by:
visitin interfaceMethodNodeVisitor
-
getParameterName
- Specified by:
getParameterNamein interfaceGeneratorContext
-
getClassSource
- Specified by:
getClassSourcein interfaceGeneratorContext
-
getInitialClassSource
- Specified by:
getInitialClassSourcein interfaceGeneratorContext
-
getClassLoader
- Specified by:
getClassLoaderin interfaceGeneratorContext
-
getProperties
- Specified by:
getPropertiesin interfaceGeneratorContext
-
getService
- Specified by:
getServicein interfaceServiceRepository
-
isAsync
public boolean isAsync()- Specified by:
isAsyncin interfaceGeneratorContext
-
isAsync
- Specified by:
isAsyncin interfaceGeneratorContext
-
getDiagnostics
- Specified by:
getDiagnosticsin interfaceGeneratorContext
-
typeToClassString
- Specified by:
typeToClassStringin interfaceGeneratorContext
-
isDynamicInitializer
- Specified by:
isDynamicInitializerin interfaceGeneratorContext
-
importModule
- Specified by:
importModulein interfaceGeneratorContext
-