Class 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)
  • Constructor Details

    • BaseElementWithModifiers

      public BaseElementWithModifiers(io.github.mmm.code.api.modifier.CodeModifiers modifiers)
      The constructor.
      Parameters:
      modifiers - the modifiers.
    • BaseElementWithModifiers

      public BaseElementWithModifiers(BaseElementWithModifiers template, io.github.mmm.code.api.copy.CodeCopyMapper mapper)
      The copy-constructor.
      Parameters:
      template - the BaseElementWithModifiers to copy.
      mapper - the CodeCopyMapper.
  • Method Details

    • getModifiers

      public io.github.mmm.code.api.modifier.CodeModifiers getModifiers()
      Specified by:
      getModifiers in interface io.github.mmm.code.api.item.CodeItemWithModifiers
    • setModifiers

      public void setModifiers(io.github.mmm.code.api.modifier.CodeModifiers modifiers)
      Specified by:
      setModifiers in interface io.github.mmm.code.api.element.CodeElementWithModifiers
    • copy

      public abstract BaseElementWithModifiers copy()
      Specified by:
      copy in interface io.github.mmm.code.api.element.CodeElement
      Specified by:
      copy in interface io.github.mmm.code.api.element.CodeElementWithDeclaringType
      Specified by:
      copy in interface io.github.mmm.code.api.element.CodeElementWithModifiers
      Specified by:
      copy in interface io.github.mmm.code.api.item.CodeMutableItem
      Specified by:
      copy in interface io.github.mmm.code.api.node.CodeNodeItem