Class JSBodyAstEmitter

java.lang.Object
org.teavm.jso.impl.JSBodyAstEmitter
All Implemented Interfaces:
JSBodyEmitter

public class JSBodyAstEmitter extends Object implements JSBodyEmitter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final org.mozilla.javascript.ast.AstNode
     
    final org.mozilla.javascript.ast.AstNode
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    emit(org.teavm.backend.javascript.spi.GeneratorContext context, org.teavm.backend.javascript.codegen.SourceWriter writer, org.teavm.model.MethodReference methodRef)
     
    void
    emit(org.teavm.backend.javascript.spi.InjectorContext context)
     
     
    boolean
     
    org.teavm.model.MethodReference
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ast

      public final org.mozilla.javascript.ast.AstNode ast
    • rootAst

      public final org.mozilla.javascript.ast.AstNode rootAst
  • Method Details

    • method

      public org.teavm.model.MethodReference method()
      Specified by:
      method in interface JSBodyEmitter
    • isStatic

      public boolean isStatic()
      Specified by:
      isStatic in interface JSBodyEmitter
    • parameterNames

      public String[] parameterNames()
      Specified by:
      parameterNames in interface JSBodyEmitter
    • imports

      public JsBodyImportInfo[] imports()
      Specified by:
      imports in interface JSBodyEmitter
    • emit

      public void emit(org.teavm.backend.javascript.spi.InjectorContext context)
      Specified by:
      emit in interface JSBodyEmitter
    • emit

      public void emit(org.teavm.backend.javascript.spi.GeneratorContext context, org.teavm.backend.javascript.codegen.SourceWriter writer, org.teavm.model.MethodReference methodRef)
      Specified by:
      emit in interface JSBodyEmitter