Interface CodeBlockInitializer
- All Superinterfaces:
CodeBlock, CodeItem, CodeItemWithVariables, CodeMutable, CodeMutableItem, CodeNode, CodeNodeItem, CodeNodeItemCopyable<CodeType, CodeBlockInitializer>, CodeWithContext
public interface CodeBlockInitializer
extends CodeBlock, CodeNodeItemCopyable<CodeType, CodeBlockInitializer>
- Since:
- 1.0.0
- Author:
- hohwille
- See Also:
-
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 CodeNodeItemCopyable
copyMethods inherited from interface CodeWithContext
getContext, getSource
-
Method Details
-
getParent
CodeType getParent()- Specified by:
getParentin interfaceCodeNode- Specified by:
getParentin interfaceCodeNodeItemCopyable<CodeType, CodeBlockInitializer>- Returns:
- the parent of this
CodeNode. May only benullfor instances ofCodeContext.
-
isStatic
boolean isStatic()- Returns:
trueif thisCodeBlockInitializerisstatic,falseotherwise.
-
setStatic
void setStatic(boolean isStatic) - Parameters:
isStatic- the new value ofisStatic().- Throws:
io.github.mmm.base.exception.ReadOnlyException- ifimmutable.
-
copy
CodeBlockInitializer copy()- Specified by:
copyin interfaceCodeBlock- Specified by:
copyin interfaceCodeMutableItem- Specified by:
copyin interfaceCodeNodeItem- Specified by:
copyin interfaceCodeNodeItemCopyable<CodeType, CodeBlockInitializer>- Returns:
- a new
mutablecopy of thisCodeMutableItem. Will be a deep-copy with copies of all childCodeMutableItems.
-