Package me.topchetoeu.j2s.compilation
Class LabelContext
java.lang.Object
me.topchetoeu.j2s.compilation.LabelContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final me.topchetoeu.j2s.common.Key<LabelContext>
static final me.topchetoeu.j2s.common.Key<LabelContext>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
flushAdders
(String name) get()
static LabelContext
getBreak
(me.topchetoeu.j2s.common.Environment env) static LabelContext
getCont
(me.topchetoeu.j2s.common.Environment env) boolean
jump
(CompileResult target) boolean
jump
(CompileResult target, String name) void
pop()
void
void
static void
void
push
(IntSupplier jumpTarget) void
push
(me.topchetoeu.j2s.common.Location loc, String name, IntSupplier jumpTarget) static void
pushLoop
(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.common.Location loc, String name, IntSupplier breakTarget, int contTarget) static void
pushLoop
(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.common.Location loc, String name, IntSupplier breakTarget, IntSupplier contTarget) void
pushLoop
(me.topchetoeu.j2s.common.Location loc, String name, IntSupplier jumpTarget)
-
Field Details
-
BREAK_CTX
-
CONTINUE_CTX
-
-
Constructor Details
-
LabelContext
public LabelContext()
-
-
Method Details
-
get
-
get
-
flushAdders
-
jump
-
jump
-
push
-
push
-
pushLoop
-
pop
public void pop() -
pop
-
popLoop
-
getBreak
-
getCont
-
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
-