Interface CodeNodeItemContainerHierarchical<I extends CodeItem>
- Type Parameters:
I- the type of the containedCodeItems.
- All Superinterfaces:
CodeItem, CodeMutable, CodeMutableItem, CodeNode, CodeNodeContainer<I>, CodeNodeItem, CodeNodeItemContainer<I>, CodeWithContext, Iterable<I>
- All Known Subinterfaces:
CodeAnnotations, CodeFields, CodeMethods, CodeNestedTypes, CodeNodeItemContainerHierarchicalWithName<I>, CodeProperties, CodeSuperTypes
public interface CodeNodeItemContainerHierarchical<I extends CodeItem>
extends CodeNodeItemContainer<I>
CodeItem containing CodeItems of a particular type. It groups these items and all the
methods to operate on them.- 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 CodeItem
getLanguage, getSourceCode, write, write, write, write, write, writeMethods inherited from interface CodeMutable
isImmutable, isMutableMethods inherited from interface CodeMutableItem
getReflectiveObject, setImmutableMethods inherited from interface CodeNodeContainer
getDeclared, isEmpty, iteratorMethods inherited from interface CodeNodeItemContainer
copy, getParent, removeMethods inherited from interface CodeWithContext
getContext, getSourceMethods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
getAll
-
copy
CodeNodeItemContainerHierarchical<I> copy()- Specified by:
copyin interfaceCodeMutableItem- Specified by:
copyin interfaceCodeNodeItem- Specified by:
copyin interfaceCodeNodeItemContainer<I extends CodeItem>- Returns:
- a new
mutablecopy of thisCodeMutableItem. Will be a deep-copy with copies of all childCodeMutableItems.
-