Class JavaTypeVariablesFromSource

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.node.BaseNodeItemContainer<io.github.mmm.code.api.type.CodeTypeVariable>
io.github.mmm.code.base.node.BaseNodeItemContainerFlat<io.github.mmm.code.api.type.CodeTypeVariable>
io.github.mmm.code.base.type.BaseGenericTypeParameters<io.github.mmm.code.api.type.CodeTypeVariable>
io.github.mmm.code.base.type.BaseTypeVariables
io.github.mmm.code.impl.java.parser.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 io.github.mmm.code.base.type.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)
  • Field Summary

    Fields inherited from class io.github.mmm.code.base.type.BaseTypeVariables

    EMPTY

    Fields inherited from interface io.github.mmm.code.api.item.CodeItem

    DEFAULT_INDENT, DEFAULT_NEWLINE
  • Constructor Summary

    Constructors
    Constructor
    Description
    The constructor.
    JavaTypeVariablesFromSource(JavaTypeVariablesFromSource template, io.github.mmm.code.api.copy.CodeCopyMapper mapper)
    The copy-constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    copy(io.github.mmm.code.api.copy.CodeCopyMapper mapper)
     
    io.github.mmm.code.api.annotation.CodeAnnotations
     
    io.github.mmm.code.api.comment.CodeComment
     
    io.github.mmm.code.api.doc.CodeDoc
     
     
    io.github.mmm.code.base.type.BaseTypeVariables
     
    void
     
    void
    setComment(io.github.mmm.code.api.comment.CodeComment comment)
     
    void
    setParent(io.github.mmm.code.base.member.BaseOperation declaringOperation)
     
    void
    setParent(io.github.mmm.code.base.type.BaseType declaringType)
     

    Methods inherited from class io.github.mmm.code.base.type.BaseTypeVariables

    add, doInitialize, doWrite, ensureParent, get, getDeclared, getDeclaringOperation, getDeclaringType, getKey, getParent, getSourceCodeObject, merge, rename

    Methods inherited from class io.github.mmm.code.base.type.BaseGenericTypeParameters

    add

    Methods inherited from class io.github.mmm.code.base.node.BaseNodeItemContainer

    addInternal, clear, doSetImmutable, getByName, getDeclared, getItemCopyType, getList, getMap, isKeepListView, isNamed, isSystemImmutable, remove

    Methods inherited from class io.github.mmm.code.base.node.BaseNodeItem

    getContainerItem, getContainerItemDeclared, getContext, getLanguage, getSource, toPathString

    Methods inherited from class io.github.mmm.code.base.item.BaseMutableItem

    doCopyNode, doCopyNodeUnsafe, doMapList, doneInitialize, getDefaultCopyMapper, getDefaultEncoding, initialize, initialize, isImmutable, isInitialized, isInitializing, isSystemImmutable, makeImmutable, makeImmutable, setImmutable, setImmutableIfNotSystemImmutable, verifyMutalbe, writeItem

    Methods inherited from class io.github.mmm.code.base.item.BaseItem

    getOwningType, getSourceCode, getSpaces, toString, write

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.github.mmm.code.api.type.CodeGenericTypeParameters

    add

    Methods inherited from interface io.github.mmm.code.api.item.CodeItem

    getLanguage, getSourceCode, write, write, write, write, write, write

    Methods inherited from interface io.github.mmm.code.api.object.CodeMutable

    isImmutable, isMutable

    Methods inherited from interface io.github.mmm.code.api.item.CodeMutableItem

    setImmutable

    Methods inherited from interface io.github.mmm.code.api.node.CodeNodeContainer

    getDeclared, isEmpty, iterator

    Methods inherited from interface io.github.mmm.code.api.node.CodeNodeItemContainer

    remove

    Methods inherited from interface io.github.mmm.code.api.node.CodeNodeItemContainerFlatWithName

    get

    Methods inherited from interface io.github.mmm.code.api.node.CodeNodeItemContainerWithName

    getDeclaredOrCreate, getOrCreate, getRequired

    Methods inherited from interface io.github.mmm.code.api.merge.CodeSimpleMergeableItem

    merge

    Methods inherited from interface io.github.mmm.code.api.CodeWithContext

    getContext, getSource

    Methods inherited from interface Iterable

    forEach, spliterator
  • 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(io.github.mmm.code.base.member.BaseOperation declaringOperation)
      Overrides:
      setParent in class io.github.mmm.code.base.type.BaseTypeVariables
    • setParent

      public void setParent(io.github.mmm.code.base.type.BaseType declaringType)
      Overrides:
      setParent in class io.github.mmm.code.base.type.BaseTypeVariables
    • getTypeParameters

      public io.github.mmm.code.base.type.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 io.github.mmm.code.base.type.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 io.github.mmm.code.base.type.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 io.github.mmm.code.base.item.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