Class LabelContext

java.lang.Object
me.topchetoeu.j2s.compilation.LabelContext

public class LabelContext extends Object
  • Field Details

    • BREAK_CTX

      public static final me.topchetoeu.j2s.common.Key<LabelContext> BREAK_CTX
    • CONTINUE_CTX

      public static final me.topchetoeu.j2s.common.Key<LabelContext> CONTINUE_CTX
  • Constructor Details

    • LabelContext

      public LabelContext()
  • Method Details

    • get

      public IntSupplier get()
    • get

      public IntSupplier get(String name)
    • flushAdders

      public void flushAdders(String name)
    • jump

      public boolean jump(CompileResult target)
    • jump

      public boolean jump(CompileResult target, String name)
    • push

      public void push(IntSupplier jumpTarget)
    • push

      public void push(me.topchetoeu.j2s.common.Location loc, String name, IntSupplier jumpTarget)
    • pushLoop

      public void pushLoop(me.topchetoeu.j2s.common.Location loc, String name, IntSupplier jumpTarget)
    • pop

      public void pop()
    • pop

      public void pop(String name)
    • popLoop

      public void popLoop(String name)
    • getBreak

      public static LabelContext getBreak(me.topchetoeu.j2s.common.Environment env)
    • getCont

      public static LabelContext getCont(me.topchetoeu.j2s.common.Environment env)
    • pushLoop

      public static void pushLoop(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.common.Location loc, String name, IntSupplier breakTarget, int contTarget)
    • pushLoop

      public static void pushLoop(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.common.Location loc, String name, IntSupplier breakTarget, IntSupplier contTarget)
    • popLoop

      public static void popLoop(me.topchetoeu.j2s.common.Environment env, String name)