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<I>
io.github.mmm.code.base.node.BaseNodeItemContainerFlat<P>
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 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
EMPTYFields inherited from interface io.github.mmm.code.api.item.CodeItem
DEFAULT_INDENT, DEFAULT_NEWLINE -
Constructor Summary
ConstructorsConstructorDescriptionThe constructor.JavaTypeVariablesFromSource(JavaTypeVariablesFromSource template, io.github.mmm.code.api.copy.CodeCopyMapper mapper) The copy-constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopy()copy(io.github.mmm.code.api.copy.CodeCopyMapper mapper) io.github.mmm.code.api.annotation.CodeAnnotationsio.github.mmm.code.api.comment.CodeCommentio.github.mmm.code.api.doc.CodeDocgetDoc()voidvoidsetComment(io.github.mmm.code.api.comment.CodeComment comment) voidsetParent(BaseOperation declaringOperation) voidMethods inherited from class io.github.mmm.code.base.type.BaseTypeVariables
add, doInitialize, doWrite, ensureParent, get, getDeclared, getDeclaringOperation, getDeclaringType, getKey, getParent, getSourceCodeObject, merge, renameMethods inherited from class io.github.mmm.code.base.type.BaseGenericTypeParameters
addMethods inherited from class io.github.mmm.code.base.node.BaseNodeItemContainer
addInternal, clear, doSetImmutable, getByName, getDeclared, getItemCopyType, getList, getMap, isKeepListView, isNamed, isSystemImmutable, removeMethods inherited from class io.github.mmm.code.base.node.BaseNodeItem
getContainerItem, getContainerItemDeclared, getContext, getLanguage, getSource, toPathStringMethods 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, writeItemMethods inherited from class io.github.mmm.code.base.item.BaseItem
getOwningType, getSourceCode, getSpaces, toString, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.mmm.code.api.type.CodeGenericTypeParameters
addMethods inherited from interface io.github.mmm.code.api.item.CodeItem
getLanguage, getSourceCode, 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
setImmutableMethods inherited from interface io.github.mmm.code.api.node.CodeNodeContainer
getDeclared, isEmpty, iteratorMethods inherited from interface io.github.mmm.code.api.node.CodeNodeItemContainer
removeMethods inherited from interface io.github.mmm.code.api.node.CodeNodeItemContainerFlatWithName
getMethods inherited from interface io.github.mmm.code.api.node.CodeNodeItemContainerWithName
getDeclaredOrCreate, getOrCreate, getRequiredMethods inherited from interface io.github.mmm.code.api.merge.CodeSimpleMergeableItem
mergeMethods inherited from interface io.github.mmm.code.api.CodeWithContext
getContext, getSourceMethods inherited from interface java.lang.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- theBaseTypeVariablesto copy.mapper- theCodeCopyMapper.
-
-
Method Details
-
setParent
- Overrides:
setParentin classBaseTypeVariables
-
setParent
- Overrides:
setParentin classBaseTypeVariables
-
getTypeParameters
- Specified by:
getTypeParametersin interfaceio.github.mmm.code.api.element.CodeElementWithTypeVariables
-
copy
- Specified by:
copyin interfaceio.github.mmm.code.api.element.CodeElement- Specified by:
copyin interfaceio.github.mmm.code.api.element.CodeElementWithTypeVariables- Specified by:
copyin interfaceio.github.mmm.code.api.type.CodeGenericTypeParameters<io.github.mmm.code.api.type.CodeTypeVariable>- Specified by:
copyin interfaceio.github.mmm.code.api.item.CodeMutableItem- Specified by:
copyin interfaceio.github.mmm.code.api.node.CodeNodeItem- Specified by:
copyin interfaceio.github.mmm.code.api.node.CodeNodeItemContainer<io.github.mmm.code.api.type.CodeTypeVariable>- Specified by:
copyin interfaceio.github.mmm.code.api.node.CodeNodeItemContainerFlat<io.github.mmm.code.api.type.CodeTypeVariable>- Specified by:
copyin interfaceio.github.mmm.code.api.node.CodeNodeItemContainerFlatWithName<io.github.mmm.code.api.type.CodeTypeVariable>- Specified by:
copyin interfaceio.github.mmm.code.api.node.CodeNodeItemContainerWithName<io.github.mmm.code.api.type.CodeTypeVariable>- Specified by:
copyin interfaceio.github.mmm.code.api.copy.CodeNodeItemCopyable<io.github.mmm.code.api.element.CodeElementWithTypeVariables,io.github.mmm.code.api.type.CodeTypeVariables> - Specified by:
copyin interfaceio.github.mmm.code.api.type.CodeTypeVariables- Overrides:
copyin classBaseTypeVariables
-
copy
- Specified by:
copyin interfaceio.github.mmm.code.api.item.CodeMutableItem- Specified by:
copyin interfaceio.github.mmm.code.api.node.CodeNodeItem- Specified by:
copyin interfaceio.github.mmm.code.api.node.CodeNodeItemContainer<io.github.mmm.code.api.type.CodeTypeVariable>- Specified by:
copyin interfaceio.github.mmm.code.api.copy.CodeNodeItemCopyable<io.github.mmm.code.api.element.CodeElementWithTypeVariables,io.github.mmm.code.api.type.CodeTypeVariables> - Overrides:
copyin classBaseTypeVariables
-
getAnnotations
public io.github.mmm.code.api.annotation.CodeAnnotations getAnnotations()- Specified by:
getAnnotationsin interfaceio.github.mmm.code.api.element.CodeElement
-
getComment
public io.github.mmm.code.api.comment.CodeComment getComment()- Specified by:
getCommentin interfaceio.github.mmm.code.api.item.CodeItemWithComment
-
setComment
public void setComment(io.github.mmm.code.api.comment.CodeComment comment) - Specified by:
setCommentin interfaceio.github.mmm.code.api.item.CodeMutableItemWithComment
-
getReflectiveObject
- Specified by:
getReflectiveObjectin interfaceio.github.mmm.code.api.element.CodeElementWithTypeVariables- Specified by:
getReflectiveObjectin interfaceio.github.mmm.code.api.item.CodeMutableItem- Overrides:
getReflectiveObjectin classBaseMutableItem
-
getDoc
public io.github.mmm.code.api.doc.CodeDoc getDoc()- Specified by:
getDocin interfaceio.github.mmm.code.api.element.CodeElement
-
removeFromParent
public void removeFromParent()- Specified by:
removeFromParentin interfaceio.github.mmm.code.api.element.CodeElement
-