Class LibraryInfoBuilder

java.lang.Object
com.google.j2cl.transpiler.backend.libraryinfo.LibraryInfoBuilder

public final class LibraryInfoBuilder extends Object
Traverse types and gather execution flow information for building call graph.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addType(com.google.j2cl.transpiler.ast.Type type, String headerFilePath, String implFilePath, Map<com.google.j2cl.transpiler.ast.MemberDescriptor,com.google.j2cl.common.SourcePosition> outputSourceInfoByMember)
     
    byte[]
     
    toJson(com.google.j2cl.common.Problems problems)
    Serialize a LibraryInfo object into a JSON string.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • LibraryInfoBuilder

      public LibraryInfoBuilder()
  • Method Details

    • addType

      public void addType(com.google.j2cl.transpiler.ast.Type type, String headerFilePath, String implFilePath, Map<com.google.j2cl.transpiler.ast.MemberDescriptor,com.google.j2cl.common.SourcePosition> outputSourceInfoByMember)
    • toJson

      @Nullable public String toJson(com.google.j2cl.common.Problems problems)
      Serialize a LibraryInfo object into a JSON string.
    • toByteArray

      public byte[] toByteArray()