Interface CodeConstructors
- All Superinterfaces:
CodeAdvancedMergeableItem<CodeConstructors>, CodeItem, CodeItemWithDeclaringType, CodeMembers<CodeConstructor>, CodeMergeableItem<CodeConstructors>, CodeMutable, CodeMutableItem, CodeNode, CodeNodeContainer<CodeConstructor>, CodeNodeItem, CodeNodeItemContainer<CodeConstructor>, CodeNodeItemContainerFlat<CodeConstructor>, CodeNodeItemCopyable<CodeType, CodeConstructors>, CodeOperations<CodeConstructor>, CodeWithContext, Iterable<CodeConstructor>
public interface CodeConstructors
extends CodeOperations<CodeConstructor>, CodeNodeItemContainerFlat<CodeConstructor>, CodeAdvancedMergeableItem<CodeConstructors>, CodeNodeItemCopyable<CodeType, CodeConstructors>
CodeMembers as a container for the CodeConstructors.- 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 CodeAdvancedMergeableItem
merge, merge, mergeMethods 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 CodeNodeItemCopyable
copy, getParentMethods inherited from interface CodeOperations
getMethods inherited from interface CodeWithContext
getContext, getSourceMethods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
get
- Parameters:
parameterTypes- theCodeGenericTypes of theparameters.- Returns:
- the requested
CodeOperationornullif not found.
-
add
CodeConstructor add()- Returns:
- a new
CodeConstructorthat has been added toCodeNodeContainer.getDeclared(). It will not have anyparametersorexceptions. Simply add those afterwards as needed. - Throws:
io.github.mmm.base.exception.ReadOnlyException- ifimmutable.
-
copy
CodeConstructors copy()- Specified by:
copyin interfaceCodeMembers<CodeConstructor>- Specified by:
copyin interfaceCodeMutableItem- Specified by:
copyin interfaceCodeNodeItem- Specified by:
copyin interfaceCodeNodeItemContainer<CodeConstructor>- Specified by:
copyin interfaceCodeNodeItemContainerFlat<CodeConstructor>- Specified by:
copyin interfaceCodeNodeItemCopyable<CodeType, CodeConstructors>- Specified by:
copyin interfaceCodeOperations<CodeConstructor>- Returns:
- a new
mutablecopy of thisCodeMutableItem. Will be a deep-copy with copies of all childCodeMutableItems.
-