Class BasePathElement
- All Implemented Interfaces:
io.github.mmm.code.api.CodePathElement, io.github.mmm.code.api.CodeWithContext, io.github.mmm.code.api.element.CodeElement, io.github.mmm.code.api.item.CodeItem, io.github.mmm.code.api.item.CodeItemWithComment, io.github.mmm.code.api.item.CodeItemWithQualifiedName, io.github.mmm.code.api.item.CodeItemWithQualifiedNameAndParentPackage, io.github.mmm.code.api.item.CodeMutableItem, io.github.mmm.code.api.item.CodeMutableItemWithComment, io.github.mmm.code.api.item.CodeMutableItemWithQualifiedName, io.github.mmm.code.api.node.CodeNode, io.github.mmm.code.api.node.CodeNodeItem, io.github.mmm.code.api.object.CodeMutable
- Direct Known Subclasses:
BaseFile, BasePackage
public abstract class BasePathElement
extends BaseElementWithQualifiedName
implements io.github.mmm.code.api.CodePathElement
Base implementation of
CodePathElement.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Field Summary
Fields inherited from interface io.github.mmm.code.api.item.CodeItem
DEFAULT_INDENT, DEFAULT_NEWLINE -
Constructor Summary
ConstructorsConstructorDescriptionBasePathElement(BasePackage parentPackage, String simpleName) The constructor.BasePathElement(BasePathElement template, io.github.mmm.code.api.copy.CodeCopyMapper mapper) The copy-constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoSetParentPackage(BasePackage newParentPkg) Internal variant ofBaseElementWithQualifiedName.setParentPackage(CodePackage).voidMethods inherited from class BaseElementWithQualifiedName
getParentPackage, getQualifiedName, getSimpleName, setParentPackage, setSimpleNameMethods inherited from class BaseElement
doInitialize, doMerge, doSetImmutable, doWrite, doWriteAnnotations, doWriteComment, doWriteDoc, getAnnotations, getComment, getDoc, getSourceCodeObject, setCommentMethods inherited from class BaseNodeItem
getContainerItem, getContainerItemDeclared, getContext, getLanguage, getSource, toPathStringMethods inherited from class BaseMutableItem
doCopyNode, doCopyNodeUnsafe, doMapList, doneInitialize, getDefaultCopyMapper, getDefaultEncoding, getReflectiveObject, initialize, initialize, isImmutable, isInitialized, isInitializing, isSystemImmutable, isSystemImmutable, makeImmutable, makeImmutable, setImmutable, setImmutableIfNotSystemImmutable, verifyMutalbe, writeItemMethods inherited from class BaseItem
getOwningType, getSourceCode, getSpaces, toString, writeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.mmm.code.api.element.CodeElement
copy, getAnnotations, getDocMethods inherited from interface io.github.mmm.code.api.item.CodeItem
getLanguage, getSourceCode, write, write, write, write, write, writeMethods inherited from interface io.github.mmm.code.api.item.CodeItemWithComment
getCommentMethods inherited from interface io.github.mmm.code.api.item.CodeItemWithQualifiedName
getSimpleNameMethods inherited from interface io.github.mmm.code.api.item.CodeItemWithQualifiedNameAndParentPackage
getParentPackage, getQualifiedNameMethods inherited from interface io.github.mmm.code.api.object.CodeMutable
isImmutable, isMutableMethods inherited from interface io.github.mmm.code.api.item.CodeMutableItem
getReflectiveObject, setImmutableMethods inherited from interface io.github.mmm.code.api.item.CodeMutableItemWithComment
setCommentMethods inherited from interface io.github.mmm.code.api.node.CodeNodeItem
copyMethods inherited from interface io.github.mmm.code.api.CodePathElement
getParent, isFileMethods inherited from interface io.github.mmm.code.api.CodeWithContext
getContext, getSource
-
Constructor Details
-
BasePathElement
The constructor.- Parameters:
parentPackage- theparent package.simpleName- thesimple name.
-
BasePathElement
The copy-constructor.- Parameters:
template- theBasePathElementto copy.mapper- theCodeCopyMapper.
-
-
Method Details
-
doSetParentPackage
Description copied from class:BaseElementWithQualifiedNameInternal variant ofBaseElementWithQualifiedName.setParentPackage(CodePackage).- Overrides:
doSetParentPackagein classBaseElementWithQualifiedName- Parameters:
newParentPkg- the newparent package.
-
removeFromParent
public void removeFromParent()- Specified by:
removeFromParentin interfaceio.github.mmm.code.api.element.CodeElement- Overrides:
removeFromParentin classBaseElement
-