Class BaseElementWithQualifiedName
java.lang.Object
io.github.mmm.code.base.item.BaseItem
io.github.mmm.code.base.item.BaseMutableItem
io.github.mmm.code.base.node.BaseNodeItem
io.github.mmm.code.base.element.BaseElement
io.github.mmm.code.base.element.BaseElementWithQualifiedName
- All Implemented Interfaces:
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:
BasePathElement
public abstract class BaseElementWithQualifiedName
extends BaseElement
implements io.github.mmm.code.api.item.CodeMutableItemWithQualifiedName
Base implementation of
CodeMutableItemWithQualifiedName as BaseElement.- 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
ConstructorsConstructorDescriptionBaseElementWithQualifiedName(BasePackage parentPackage, String simpleName) The constructor.BaseElementWithQualifiedName(BaseElementWithQualifiedName template, io.github.mmm.code.api.copy.CodeCopyMapper mapper) The copy-constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoSetParentPackage(BasePackage parentPkg) Internal variant ofsetParentPackage(CodePackage).voidsetParentPackage(io.github.mmm.code.api.CodePackage parentPackage) voidsetSimpleName(String simpleName) Methods inherited from class BaseElement
doInitialize, doMerge, doSetImmutable, doWrite, doWriteAnnotations, doWriteComment, doWriteDoc, getAnnotations, getComment, getDoc, getSourceCodeObject, removeFromParent, 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
copyMethods 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.object.CodeMutable
isImmutable, isMutableMethods inherited from interface io.github.mmm.code.api.item.CodeMutableItem
getReflectiveObject, setImmutableMethods inherited from interface io.github.mmm.code.api.node.CodeNode
getParentMethods inherited from interface io.github.mmm.code.api.node.CodeNodeItem
copyMethods inherited from interface io.github.mmm.code.api.CodeWithContext
getContext, getSource
-
Constructor Details
-
BaseElementWithQualifiedName
The constructor.- Parameters:
parentPackage- theparent package.simpleName- thesimple name.
-
BaseElementWithQualifiedName
public BaseElementWithQualifiedName(BaseElementWithQualifiedName template, io.github.mmm.code.api.copy.CodeCopyMapper mapper) The copy-constructor.- Parameters:
template- theBaseElementWithQualifiedNameto copy.mapper- theCodeCopyMapper.
-
-
Method Details
-
getSimpleName
- Specified by:
getSimpleNamein interfaceio.github.mmm.code.api.item.CodeItemWithQualifiedName
-
setSimpleName
- Specified by:
setSimpleNamein interfaceio.github.mmm.code.api.item.CodeMutableItemWithQualifiedName
-
getParentPackage
- Specified by:
getParentPackagein interfaceio.github.mmm.code.api.item.CodeItemWithQualifiedNameAndParentPackage
-
setParentPackage
public void setParentPackage(io.github.mmm.code.api.CodePackage parentPackage) - Specified by:
setParentPackagein interfaceio.github.mmm.code.api.item.CodeMutableItemWithQualifiedName
-
doSetParentPackage
Internal variant ofsetParentPackage(CodePackage).- Parameters:
parentPkg- the newparent package.
-
getQualifiedName
- Specified by:
getQualifiedNamein interfaceio.github.mmm.code.api.item.CodeItemWithQualifiedName- Specified by:
getQualifiedNamein interfaceio.github.mmm.code.api.item.CodeItemWithQualifiedNameAndParentPackage
-