Interface CodeNodeItemContainerWithName<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:
CodeFields, CodeNestedTypes, CodeNodeItemContainerFlatWithName<I>, CodeNodeItemContainerHierarchicalWithName<I>, CodeParameters, CodeProperties, CodeTypeVariables
- 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
Modifier and TypeMethodDescriptioncopy()getDeclared(String name) default IgetDeclaredOrCreate(String name) default IgetOrCreate(String name) default IgetRequired(String name) 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
-
get
-
getRequired
-
getOrCreate
-
getDeclared
-
getDeclaredOrCreate
-
add
-
copy
CodeNodeItemContainerWithName<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.
-