Class RawStmtsDoc

  • All Implemented Interfaces:
    Tagged

    public class RawStmtsDoc
    extends StatementsOwner
    A statements doc can have both a list of statement blocks and/or a list of statements. It can also have all the block parameters assignable to BlockParams.

    The reason for having support both statements or statement blocks is merely convenience. If you do not need or want to deal with the full blocks format, the extra structure gets in the way.

    • Constructor Detail

      • RawStmtsDoc

        public RawStmtsDoc()
    • Method Detail

      • getBlocks

        public java.util.List<RawStmtsBlock> getBlocks()
        Return the list of statement blocks in this RawStmtsDoc. If raw statements are defined on this RawStmtsDoc, then a single StmtBlock containing those statements is prepended to the block list. Otherwise, the list of StmtBlocks is returned as-is.
        Returns:
        all logical statement blocks containing statements
      • setBlocks

        public void setBlocks​(java.util.List<RawStmtsBlock> blocks)