Interface SelfReferencing

All Known Implementing Classes:
SecFilter, SecFlatMap, SecLoop, SecMap, SecWhile

public interface SelfReferencing
Statements implementing this interface are by convention returning themselves as the next statement in Statement.getNext().
When creating syntax, one may need to take this into account. This is mostly done by sections that iterate over their respective contents multiple times.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    This statement returns itself as the next statement to run in getNext().
  • Method Details

    • getActualNext

      Optional<Statement> getActualNext()
      This statement returns itself as the next statement to run in getNext().
      This method will return the actual statement that follows this statement. This means, by convention, the next element that is not nested more than this statement.
      Returns:
      the element that is actually after this section