Class CompilationFunctionMap

java.lang.Object
me.topchetoeu.j2s.compilation.CompilationFunctionMap
All Implemented Interfaces:
me.topchetoeu.j2s.common.FunctionMap

public final class CompilationFunctionMap extends Object implements me.topchetoeu.j2s.common.FunctionMap
  • Field Details

    • EMPTY

      public static final CompilationFunctionMap EMPTY
    • localNames

      public final String[] localNames
    • capturableNames

      public final String[] capturableNames
    • captureNames

      public final String[] captureNames
    • first

      public final me.topchetoeu.j2s.common.Location first
    • last

      public final me.topchetoeu.j2s.common.Location last
  • Constructor Details

    • CompilationFunctionMap

      public CompilationFunctionMap(Map<Integer,me.topchetoeu.j2s.common.Location> map, Map<me.topchetoeu.j2s.common.Location,me.topchetoeu.j2s.common.Instruction.BreakpointType> breakpoints, me.topchetoeu.j2s.common.Location first, me.topchetoeu.j2s.common.Location last, String[] localNames, String[] capturableNames, String[] captureNames)
  • Method Details

    • toLocation

      public me.topchetoeu.j2s.common.Location toLocation(int pc, boolean approximate)
      Specified by:
      toLocation in interface me.topchetoeu.j2s.common.FunctionMap
    • toLocation

      public me.topchetoeu.j2s.common.Location toLocation(int pc)
      Specified by:
      toLocation in interface me.topchetoeu.j2s.common.FunctionMap
    • getBreakpoint

      public me.topchetoeu.j2s.common.Instruction.BreakpointType getBreakpoint(int pc)
      Specified by:
      getBreakpoint in interface me.topchetoeu.j2s.common.FunctionMap
    • correctBreakpoint

      public me.topchetoeu.j2s.common.Location correctBreakpoint(me.topchetoeu.j2s.common.Location loc)
      Specified by:
      correctBreakpoint in interface me.topchetoeu.j2s.common.FunctionMap
    • correctBreakpoint

      public List<me.topchetoeu.j2s.common.Location> correctBreakpoint(Pattern filename, int line, int column)
      Specified by:
      correctBreakpoint in interface me.topchetoeu.j2s.common.FunctionMap
    • breakpoints

      public List<me.topchetoeu.j2s.common.Location> breakpoints(me.topchetoeu.j2s.common.Location start, me.topchetoeu.j2s.common.Location end)
      Specified by:
      breakpoints in interface me.topchetoeu.j2s.common.FunctionMap
    • start

      public me.topchetoeu.j2s.common.Location start()
    • end

      public me.topchetoeu.j2s.common.Location end()
    • first

      public me.topchetoeu.j2s.common.Location first()
      Specified by:
      first in interface me.topchetoeu.j2s.common.FunctionMap
    • last

      public me.topchetoeu.j2s.common.Location last()
      Specified by:
      last in interface me.topchetoeu.j2s.common.FunctionMap
    • capturableNames

      public String[] capturableNames()
      Specified by:
      capturableNames in interface me.topchetoeu.j2s.common.FunctionMap
    • captureNames

      public String[] captureNames()
      Specified by:
      captureNames in interface me.topchetoeu.j2s.common.FunctionMap
    • localNames

      public String[] localNames()
      Specified by:
      localNames in interface me.topchetoeu.j2s.common.FunctionMap
    • clone

      public CompilationFunctionMap clone()
      Overrides:
      clone in class Object
    • builder