Interface CodeBlockStatement
- All Superinterfaces:
CodeBlock, CodeItem, CodeItemWithVariables, CodeMutable, CodeMutableItem, CodeNode, CodeNodeItem, CodeStatement, CodeWithContext
- All Known Subinterfaces:
CodeBlockDoWhile, CodeBlockFor, CodeBlockIf, CodeBlockWhileDo, CodeBlockWithCondition
CodeBlock that is a regular CodeStatement.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Field Summary
Fields inherited from interface CodeItem
DEFAULT_INDENT, DEFAULT_NEWLINE -
Method Summary
Methods inherited from interface CodeBlock
add, addText, getStatements, getVariable, getVariable, isEmptyMethods inherited from interface CodeItem
getLanguage, getSourceCode, write, write, write, write, write, writeMethods inherited from interface CodeMutable
isImmutable, isMutableMethods inherited from interface CodeMutableItem
getReflectiveObject, setImmutableMethods inherited from interface CodeNodeItem
copyMethods inherited from interface CodeWithContext
getContext, getSource
-
Method Details
-
getParent
CodeBlock getParent()- Specified by:
getParentin interfaceCodeNode- Returns:
- the parent of this
CodeNode. May only benullfor instances ofCodeContext.
-
copy
CodeBlockStatement copy()- Specified by:
copyin interfaceCodeBlock- Specified by:
copyin interfaceCodeMutableItem- Specified by:
copyin interfaceCodeNodeItem- Returns:
- a new
mutablecopy of thisCodeMutableItem. Will be a deep-copy with copies of all childCodeMutableItems.
-