Class MoScope

java.lang.Object
org.cloudburstmc.mojava.runtime.MoScope

public class MoScope extends Object
  • Field Details

    • SHARED

      public static final MoScope SHARED
      Shared, never-mutated scope handed to scripts that declare usesScope() == 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

      public MoValue getReturnValue()
    • setReturnValue

      public void setReturnValue(MoValue value)
    • isInterrupted

      public boolean isInterrupted()
      True if any of return/break/continue is set — the single-load interrupt check used by codegen.