Package activityconfig.rawyaml
Class RawStmtsDoc
- java.lang.Object
-
- activityconfig.rawyaml.Tags
-
- activityconfig.rawyaml.BlockParams
-
- activityconfig.rawyaml.StatementsOwner
-
- activityconfig.rawyaml.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 toBlockParams.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 Summary
Constructors Constructor Description RawStmtsDoc()
-
Method Summary
Modifier and Type Method Description java.util.List<RawStmtsBlock>getBlocks()Return the list of statement blocks in this RawStmtsDoc.voidsetBlocks(java.util.List<RawStmtsBlock> blocks)-
Methods inherited from class activityconfig.rawyaml.StatementsOwner
getRawStmtDefs, setByObject, setRawStmtDefs
-
Methods inherited from class activityconfig.rawyaml.BlockParams
applyBlockParams, getBindings, getName, getParams, setBindings, setName, setParams
-
-
-
-
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)
-
-