Class BaseElementWithModifiers
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.BaseElementWithDeclaringType
io.github.mmm.code.base.element.BaseElementWithModifiers
- All Implemented Interfaces:
io.github.mmm.code.api.CodeWithContext, io.github.mmm.code.api.element.CodeElement, io.github.mmm.code.api.element.CodeElementWithDeclaringType, io.github.mmm.code.api.element.CodeElementWithModifiers, io.github.mmm.code.api.item.CodeItem, io.github.mmm.code.api.item.CodeItemWithComment, io.github.mmm.code.api.item.CodeItemWithDeclaringType, io.github.mmm.code.api.item.CodeItemWithModifiers, io.github.mmm.code.api.item.CodeMutableItem, io.github.mmm.code.api.item.CodeMutableItemWithComment, io.github.mmm.code.api.node.CodeNode, io.github.mmm.code.api.node.CodeNodeItem, io.github.mmm.code.api.object.CodeMutable
- Direct Known Subclasses:
BaseMember
public abstract class BaseElementWithModifiers
extends BaseElementWithDeclaringType
implements io.github.mmm.code.api.element.CodeElementWithModifiers
Implementation of
CodeElementWithModifiers for Java.- 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
ConstructorsConstructorDescriptionBaseElementWithModifiers(io.github.mmm.code.api.modifier.CodeModifiers modifiers) The constructor.BaseElementWithModifiers(BaseElementWithModifiers template, io.github.mmm.code.api.copy.CodeCopyMapper mapper) The copy-constructor. -
Method Summary
Modifier and TypeMethodDescriptionabstract BaseElementWithModifierscopy()io.github.mmm.code.api.modifier.CodeModifiersvoidsetModifiers(io.github.mmm.code.api.modifier.CodeModifiers modifiers) 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
getAnnotations, getDoc, removeFromParentMethods 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.CodeItemWithDeclaringType
getDeclaringTypeMethods 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.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
-
BaseElementWithModifiers
public BaseElementWithModifiers(io.github.mmm.code.api.modifier.CodeModifiers modifiers) The constructor.- Parameters:
modifiers- themodifiers.
-
BaseElementWithModifiers
public BaseElementWithModifiers(BaseElementWithModifiers template, io.github.mmm.code.api.copy.CodeCopyMapper mapper) The copy-constructor.- Parameters:
template- theBaseElementWithModifiersto copy.mapper- theCodeCopyMapper.
-
-
Method Details
-
getModifiers
public io.github.mmm.code.api.modifier.CodeModifiers getModifiers()- Specified by:
getModifiersin interfaceio.github.mmm.code.api.item.CodeItemWithModifiers
-
setModifiers
public void setModifiers(io.github.mmm.code.api.modifier.CodeModifiers modifiers) - Specified by:
setModifiersin interfaceio.github.mmm.code.api.element.CodeElementWithModifiers
-
copy
- Specified by:
copyin interfaceio.github.mmm.code.api.element.CodeElement- Specified by:
copyin interfaceio.github.mmm.code.api.element.CodeElementWithDeclaringType- Specified by:
copyin interfaceio.github.mmm.code.api.element.CodeElementWithModifiers- Specified by:
copyin interfaceio.github.mmm.code.api.item.CodeMutableItem- Specified by:
copyin interfaceio.github.mmm.code.api.node.CodeNodeItem
-