Interface CodeMembers<M extends CodeMember>
- Type Parameters:
M- type of the containedCodeMembers.
- All Superinterfaces:
CodeItem, CodeItemWithDeclaringType, CodeMutable, CodeMutableItem, CodeNode, CodeNodeContainer<M>, CodeNodeItem, CodeNodeItemContainer<M>, CodeWithContext, Iterable<M>
- All Known Subinterfaces:
CodeConstructors, CodeFields, CodeMethods, CodeOperations<O>, CodeProperties
public interface CodeMembers<M extends CodeMember>
extends CodeNodeItemContainer<M>, CodeItemWithDeclaringType
CodeItem that groups all CodeMembers of a type.- 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 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
-
getParent
CodeType getParent()- Specified by:
getParentin interfaceCodeNode- Specified by:
getParentin interfaceCodeNodeItemContainer<M extends CodeMember>- Returns:
- the parent of this
CodeNode. May only benullfor instances ofCodeContext.
-
copy
CodeMembers<M> copy()- Specified by:
copyin interfaceCodeMutableItem- Specified by:
copyin interfaceCodeNodeItem- Specified by:
copyin interfaceCodeNodeItemContainer<M extends CodeMember>- Returns:
- a new
mutablecopy of thisCodeMutableItem. Will be a deep-copy with copies of all childCodeMutableItems.
-
add
- Parameters:
member- the member to add. If itsparentdoes not point to thisCodeMembers, it will becopied.
-