Package org.cloudburstmc.mojava.runtime
Class MoScope
java.lang.Object
org.cloudburstmc.mojava.runtime.MoScope
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisBreak()booleanbooleanTrue if any of return/break/continue is set — the single-load interrupt check used by codegen.voidsetBreak(boolean value) voidsetContinue(boolean value) voidsetReturnValue(MoValue value)
-
Field Details
-
SHARED
Shared, never-mutated scope handed to scripts that declareusesScope() == false. Those scripts emit no break/continue/return/loop code, so they never write it; concurrent reads of a never-written object are safe. Saves a per-eval allocation on the common control-flow-free path.
-
-
Constructor Details
-
MoScope
public MoScope()
-
-
Method Details
-
isBreak
public boolean isBreak() -
setBreak
public void setBreak(boolean value) -
isContinue
public boolean isContinue() -
setContinue
public void setContinue(boolean value) -
getReturnValue
-
setReturnValue
-
isInterrupted
public boolean isInterrupted()True if any of return/break/continue is set — the single-load interrupt check used by codegen.
-