Class JavaTypeVariablesFromSource

All Implemented Interfaces:
io.github.mmm.code.api.CodeWithContext, io.github.mmm.code.api.copy.CodeNodeItemCopyable<io.github.mmm.code.api.element.CodeElementWithTypeVariables,io.github.mmm.code.api.type.CodeTypeVariables>, io.github.mmm.code.api.element.CodeElement, io.github.mmm.code.api.element.CodeElementWithTypeVariables, 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.CodeMutableItem, io.github.mmm.code.api.item.CodeMutableItemWithComment, io.github.mmm.code.api.merge.CodeMergeableItem<io.github.mmm.code.api.type.CodeTypeVariables>, io.github.mmm.code.api.merge.CodeSimpleMergeableItem<io.github.mmm.code.api.type.CodeTypeVariables>, io.github.mmm.code.api.node.CodeNode, io.github.mmm.code.api.node.CodeNodeContainer<io.github.mmm.code.api.type.CodeTypeVariable>, io.github.mmm.code.api.node.CodeNodeItem, io.github.mmm.code.api.node.CodeNodeItemContainer<io.github.mmm.code.api.type.CodeTypeVariable>, io.github.mmm.code.api.node.CodeNodeItemContainerFlat<io.github.mmm.code.api.type.CodeTypeVariable>, io.github.mmm.code.api.node.CodeNodeItemContainerFlatWithName<io.github.mmm.code.api.type.CodeTypeVariable>, io.github.mmm.code.api.node.CodeNodeItemContainerWithName<io.github.mmm.code.api.type.CodeTypeVariable>, io.github.mmm.code.api.node.CodeNodeItemWithDeclaringOperation, io.github.mmm.code.api.object.CodeMutable, io.github.mmm.code.api.type.CodeGenericTypeParameters<io.github.mmm.code.api.type.CodeTypeVariable>, io.github.mmm.code.api.type.CodeTypeVariables, Iterable<io.github.mmm.code.api.type.CodeTypeVariable>

public class JavaTypeVariablesFromSource extends BaseTypeVariables implements io.github.mmm.code.api.element.CodeElementWithTypeVariables
BaseTypeVariables for operations that have to be created before the operation is parsed.
Since:
1.0.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)
  • Constructor Details

    • JavaTypeVariablesFromSource

      public JavaTypeVariablesFromSource()
      The constructor.
    • JavaTypeVariablesFromSource

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

    • setParent

      public void setParent(BaseOperation declaringOperation)
      Overrides:
      setParent in class BaseTypeVariables
    • setParent

      public void setParent(BaseType declaringType)
      Overrides:
      setParent in class BaseTypeVariables
    • getTypeParameters

      public BaseTypeVariables getTypeParameters()
      Specified by:
      getTypeParameters in interface io.github.mmm.code.api.element.CodeElementWithTypeVariables
    • copy

      Specified by:
      copy in interface io.github.mmm.code.api.element.CodeElement
      Specified by:
      copy in interface io.github.mmm.code.api.element.CodeElementWithTypeVariables
      Specified by:
      copy in interface io.github.mmm.code.api.type.CodeGenericTypeParameters<io.github.mmm.code.api.type.CodeTypeVariable>
      Specified by:
      copy in interface io.github.mmm.code.api.item.CodeMutableItem
      Specified by:
      copy in interface io.github.mmm.code.api.node.CodeNodeItem
      Specified by:
      copy in interface io.github.mmm.code.api.node.CodeNodeItemContainer<io.github.mmm.code.api.type.CodeTypeVariable>
      Specified by:
      copy in interface io.github.mmm.code.api.node.CodeNodeItemContainerFlat<io.github.mmm.code.api.type.CodeTypeVariable>
      Specified by:
      copy in interface io.github.mmm.code.api.node.CodeNodeItemContainerFlatWithName<io.github.mmm.code.api.type.CodeTypeVariable>
      Specified by:
      copy in interface io.github.mmm.code.api.node.CodeNodeItemContainerWithName<io.github.mmm.code.api.type.CodeTypeVariable>
      Specified by:
      copy in interface io.github.mmm.code.api.copy.CodeNodeItemCopyable<io.github.mmm.code.api.element.CodeElementWithTypeVariables,io.github.mmm.code.api.type.CodeTypeVariables>
      Specified by:
      copy in interface io.github.mmm.code.api.type.CodeTypeVariables
      Overrides:
      copy in class BaseTypeVariables
    • copy

      public JavaTypeVariablesFromSource copy(io.github.mmm.code.api.copy.CodeCopyMapper mapper)
      Specified by:
      copy in interface io.github.mmm.code.api.item.CodeMutableItem
      Specified by:
      copy in interface io.github.mmm.code.api.node.CodeNodeItem
      Specified by:
      copy in interface io.github.mmm.code.api.node.CodeNodeItemContainer<io.github.mmm.code.api.type.CodeTypeVariable>
      Specified by:
      copy in interface io.github.mmm.code.api.copy.CodeNodeItemCopyable<io.github.mmm.code.api.element.CodeElementWithTypeVariables,io.github.mmm.code.api.type.CodeTypeVariables>
      Overrides:
      copy in class BaseTypeVariables
    • getAnnotations

      public io.github.mmm.code.api.annotation.CodeAnnotations getAnnotations()
      Specified by:
      getAnnotations in interface io.github.mmm.code.api.element.CodeElement
    • getComment

      public io.github.mmm.code.api.comment.CodeComment getComment()
      Specified by:
      getComment in interface io.github.mmm.code.api.item.CodeItemWithComment
    • setComment

      public void setComment(io.github.mmm.code.api.comment.CodeComment comment)
      Specified by:
      setComment in interface io.github.mmm.code.api.item.CodeMutableItemWithComment
    • getReflectiveObject

      public GenericDeclaration getReflectiveObject()
      Specified by:
      getReflectiveObject in interface io.github.mmm.code.api.element.CodeElementWithTypeVariables
      Specified by:
      getReflectiveObject in interface io.github.mmm.code.api.item.CodeMutableItem
      Overrides:
      getReflectiveObject in class BaseMutableItem
    • getDoc

      public io.github.mmm.code.api.doc.CodeDoc getDoc()
      Specified by:
      getDoc in interface io.github.mmm.code.api.element.CodeElement
    • removeFromParent

      public void removeFromParent()
      Specified by:
      removeFromParent in interface io.github.mmm.code.api.element.CodeElement