public class StmtsDoc extends BlockParams
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. However, having both a list and a blocks section in the same document can create confusion. The compromise was to allow for either, but specifically disallow them together.
| Constructor and Description |
|---|
StmtsDoc() |
| Modifier and Type | Method and Description |
|---|---|
List<StmtsBlock> |
getBlocks()
Return the list of statement blocks in this StmtsDoc.
|
List<String> |
getStatements() |
void |
setBlocks(List<StmtsBlock> blocks) |
void |
setStatements(List<String> statements) |
applyBlockParams, getBindings, getName, getParams, getTags, setBindings, setName, setParams, setTagspublic List<StmtsBlock> getBlocks()
public void setBlocks(List<StmtsBlock> blocks)
Copyright © 2017. All rights reserved.