Interface Continuable

All Known Implementing Classes:
SecLoop, SecWhile

public interface Continuable
Sections implementing this interface are able to be 'continued' using the EffContinue effect. Most of the time, these sections are iterating over multiple values, and this interface serves as an indicator to be able to continue to the next iteration instead of executing the rest of the statements.
One can easily compare this with Java's continue keyword.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<? extends Statement>
    This function is called on the section where the EffContinue effect will continue to, taking all Continuable sections into account.
  • Method Details

    • getContinued

      Optional<? extends Statement> getContinued(TriggerContext ctx)
      This function is called on the section where the EffContinue effect will continue to, taking all Continuable sections into account. Most of the time, this will just return the section it is referring to, but in rare cases, one might want to change this behaviour, hence this method.
      Parameters:
      ctx - the context
      Returns:
      the next statement
      See Also: