Interface CodeOperations<O extends CodeOperation>
- Type Parameters:
O- type of the containedCodeOperations.
- All Superinterfaces:
CodeItem, CodeItemWithDeclaringType, CodeMembers<O>, CodeMutable, CodeMutableItem, CodeNode, CodeNodeContainer<O>, CodeNodeItem, CodeNodeItemContainer<O>, CodeWithContext, Iterable<O>
- All Known Subinterfaces:
CodeConstructors, CodeMethods
CodeMembers as a container for the CodeOperations.- 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 CodeItemWithDeclaringType
getDeclaringTypeMethods inherited from interface CodeMembers
add, getParentMethods inherited from interface CodeMutable
isImmutable, isMutableMethods inherited from interface CodeMutableItem
getReflectiveObject, setImmutableMethods inherited from interface CodeNodeContainer
getDeclared, isEmpty, iteratorMethods inherited from interface CodeNodeItemContainer
copy, removeMethods inherited from interface CodeWithContext
getContext, getSourceMethods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
get
- Parameters:
operation- theCodeOperationcopy to look for.- Returns:
- the
CodeOperationfromCodeNodeContainer.getDeclared()thatmatchesthe given operation.
-
copy
CodeOperations<O> copy()- Specified by:
copyin interfaceCodeMembers<O extends CodeOperation>- Specified by:
copyin interfaceCodeMutableItem- Specified by:
copyin interfaceCodeNodeItem- Specified by:
copyin interfaceCodeNodeItemContainer<O extends CodeOperation>- Returns:
- a new
mutablecopy of thisCodeMutableItem. Will be a deep-copy with copies of all childCodeMutableItems.
-