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, Set<MethodReference> asyncMethods, SourceWriter writer, VariableNameGenerator variableNameGenerator) -
Method Summary
Modifier and TypeMethodDescriptiongetParameterName(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) voidrenderParameters(MethodReference reference, Set<ElementModifier> modifiers) voidrenderParameters(MethodReference reference, Set<ElementModifier> modifiers, boolean forceParentheses) voidsetCurrentMethod(MethodNode node) voidtypeToClassString(SourceWriter writer, ValueType type) voidvisit(AsyncMethodNode methodNode) voidvisit(RegularMethodNode method)
-
Constructor Details
-
MethodBodyRenderer
public MethodBodyRenderer(RenderingContext context, Diagnostics diagnostics, boolean minifying, Set<MethodReference> asyncMethods, SourceWriter writer, VariableNameGenerator variableNameGenerator)
-
-
Method Details
-
setCurrentMethod
-
isThreadLibraryUsed
public boolean isThreadLibraryUsed() -
getDependency
- Specified by:
getDependencyin interfaceGeneratorContext
-
renderNative
-
render
-
renderParameters
-
renderParameters
public void renderParameters(MethodReference reference, Set<ElementModifier> modifiers, boolean forceParentheses) -
visit
- Specified by:
visitin interfaceMethodNodeVisitor
-
visit
- Specified by:
visitin interfaceMethodNodeVisitor
-
getParameterName
- Specified by:
getParameterNamein interfaceGeneratorContext
-
getClassSource
- Specified by:
getClassSourcein interfaceGeneratorContext
-
getResourceProvider
- Specified by:
getResourceProviderin 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
-