Class ASTTypeParameter
- java.lang.Object
-
- de.monticore.ast.ASTCNode
-
- de.monticore.types.typeparameters._ast.ASTTypeParameter
-
- All Implemented Interfaces:
de.monticore.ast.ASTNode,ASTBasicSymbolsNode,ASTType,ASTTypeVar,ASTTypeParametersNode,java.lang.Cloneable
public class ASTTypeParameter extends de.monticore.ast.ASTCNode implements ASTTypeVar, ASTTypeParametersNode
-
-
Field Summary
Fields Modifier and Type Field Description protected ITypeParametersScopeenclosingScopeprotected java.util.List<ASTMCType>mCTypesprotected java.lang.Stringnameprotected ITypeParametersScopespannedScopeprotected java.util.Optional<TypeVarSymbol>symbol
-
Constructor Summary
Constructors Modifier Constructor Description protectedASTTypeParameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ASTTypeParameter_construct()voidaccept(MCBasicsTraverser visitor)Entry point for the Visitor pattern.voidaccept(BasicSymbolsTraverser visitor)Entry point for the Visitor pattern.voidaccept(MCBasicTypesTraverser visitor)Entry point for the Visitor pattern.voidaccept(TypeParametersTraverser visitor)Entry point for the Visitor pattern.voidaccept(de.monticore.visitor.ITraverser visitor)Entry point for the Visitor pattern.booleanaddAllMCTypes(int index, java.util.Collection<? extends ASTMCType> collection)booleanaddAllMCTypes(java.util.Collection<? extends ASTMCType> collection)voidaddMCType(int index, ASTMCType element)booleanaddMCType(ASTMCType element)voidclearMCTypes()booleancontainsAllMCTypes(java.util.Collection<?> collection)booleancontainsMCType(java.lang.Object element)ASTTypeParameterdeepClone()ASTTypeParameterdeepClone(ASTTypeParameter result)booleandeepEquals(java.lang.Object o)booleandeepEquals(java.lang.Object o, boolean forceSameOrder)booleandeepEqualsWithComments(java.lang.Object o)booleandeepEqualsWithComments(java.lang.Object o, boolean forceSameOrder)booleanequalAttributes(java.lang.Object o)booleanequalsMCTypes(java.lang.Object o)booleanequalsWithComments(java.lang.Object o)de.monticore.interpreter.Valueevaluate(de.monticore.interpreter.ModelInterpreter interpreter)de.monticore.interpreter.Valueevaluate(ITypeParametersInterpreter interpreter)voidforEachMCTypes(java.util.function.Consumer<? super ASTMCType> action)ITypeParametersScopegetEnclosingScope()ASTMCTypegetMCType(int index)java.util.List<ASTMCType>getMCTypeList()java.lang.StringgetName()ITypeParametersScopegetSpannedScope()TypeVarSymbolgetSymbol()inthashCodeMCTypes()intindexOfMCType(java.lang.Object element)booleanisEmptyMCTypes()booleanisPresentSymbol()java.util.Iterator<ASTMCType>iteratorMCTypes()intlastIndexOfMCType(java.lang.Object element)java.util.ListIterator<ASTMCType>listIteratorMCTypes()java.util.ListIterator<ASTMCType>listIteratorMCTypes(int index)java.util.stream.Stream<ASTMCType>parallelStreamMCTypes()booleanremoveAllMCTypes(java.util.Collection<?> collection)booleanremoveIfMCType(java.util.function.Predicate<? super ASTMCType> filter)ASTMCTyperemoveMCType(int index)booleanremoveMCType(java.lang.Object element)voidreplaceAllMCTypes(java.util.function.UnaryOperator<ASTMCType> operator)booleanretainAllMCTypes(java.util.Collection<?> collection)voidsetEnclosingScope(IMCBasicsScope enclosingScope)voidsetEnclosingScope(IBasicSymbolsScope enclosingScope)voidsetEnclosingScope(IMCBasicTypesScope enclosingScope)voidsetEnclosingScope(ITypeParametersScope enclosingScope)ASTMCTypesetMCType(int index, ASTMCType element)voidsetMCTypeList(java.util.List<ASTMCType> mCTypes)voidsetName(java.lang.String name)voidsetSpannedScope(IMCBasicsScope spannedScope)voidsetSpannedScope(IBasicSymbolsScope spannedScope)voidsetSpannedScope(IMCBasicTypesScope spannedScope)voidsetSpannedScope(ITypeParametersScope spannedScope)voidsetSymbol(TypeVarSymbol symbol)voidsetSymbolAbsent()intsizeMCTypes()voidsortMCTypes(java.util.Comparator<? super ASTMCType> comparator)java.util.Spliterator<ASTMCType>spliteratorMCTypes()java.util.stream.Stream<ASTMCType>streamMCTypes()java.util.List<ASTMCType>subListMCTypes(int start, int end)java.lang.Object[]toArrayMCTypes()ASTMCType[]toArrayMCTypes(ASTMCType[] array)-
Methods inherited from class de.monticore.ast.ASTCNode
add_PostComment, add_PostComment, add_PreComment, add_PreComment, addAll_PostComments, addAll_PostComments, addAll_PreComments, addAll_PreComments, clear_PostComments, clear_PreComments, contains_PostComment, contains_PreComment, containsAll_PostComments, containsAll_PreComments, equals_PostComments, equals_PreComments, forEach_PostComments, forEach_PreComments, get_PostComment, get_PostCommentList, get_PreComment, get_PreCommentList, get_SourcePositionEnd, get_SourcePositionStart, hashCode_PostComments, hashCode_PreComments, indexOf_PostComment, indexOf_PreComment, isEmpty_PostComments, isEmpty_PreComments, isPresent_SourcePositionEnd, isPresent_SourcePositionStart, iterator_PostComments, iterator_PreComments, lastIndexOf_PostComment, lastIndexOf_PreComment, listIterator_PostComments, listIterator_PostComments, listIterator_PreComments, listIterator_PreComments, parallelStream_PostComments, parallelStream_PreComments, remove_PostComment, remove_PostComment, remove_PreComment, remove_PreComment, removeAll_PostComments, removeAll_PreComments, removeIf_PostComment, removeIf_PreComment, replaceAll_PostComments, replaceAll_PreComments, retainAll_PostComments, retainAll_PreComments, set_PostComment, set_PostCommentList, set_PreComment, set_PreCommentList, set_SourcePositionEnd, set_SourcePositionEndAbsent, set_SourcePositionStart, set_SourcePositionStartAbsent, size_PostComments, size_PreComments, sort_PostComments, sort_PreComments, spliterator_PostComments, spliterator_PreComments, stream_PostComments, stream_PreComments, subList_PostComments, subList_PreComments, toArray_PostComments, toArray_PostComments, toArray_PreComments, toArray_PreComments
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.monticore.ast.ASTNode
add_PostComment, add_PostComment, add_PreComment, add_PreComment, addAll_PostComments, addAll_PostComments, addAll_PreComments, addAll_PreComments, clear_PostComments, clear_PreComments, contains_PostComment, contains_PreComment, containsAll_PostComments, containsAll_PreComments, equals_PostComments, equals_PreComments, forEach_PostComments, forEach_PreComments, get_PostComment, get_PostCommentList, get_PreComment, get_PreCommentList, get_SourcePositionEnd, get_SourcePositionStart, hashCode_PostComments, hashCode_PreComments, indexOf_PostComment, indexOf_PreComment, isEmpty_PostComments, isEmpty_PreComments, isPresent_SourcePositionEnd, isPresent_SourcePositionStart, iterator_PostComments, iterator_PreComments, lastIndexOf_PostComment, lastIndexOf_PreComment, listIterator_PostComments, listIterator_PostComments, listIterator_PreComments, listIterator_PreComments, parallelStream_PostComments, parallelStream_PreComments, remove_PostComment, remove_PostComment, remove_PreComment, remove_PreComment, removeAll_PostComments, removeAll_PreComments, removeIf_PostComment, removeIf_PreComment, replaceAll_PostComments, replaceAll_PreComments, retainAll_PostComments, retainAll_PreComments, set_PostComment, set_PostCommentList, set_PreComment, set_PreCommentList, set_SourcePositionEnd, set_SourcePositionEndAbsent, set_SourcePositionStart, set_SourcePositionStartAbsent, size_PostComments, size_PreComments, sort_PostComments, sort_PreComments, spliterator_PostComments, spliterator_PreComments, stream_PostComments, stream_PreComments, subList_PostComments, subList_PreComments, toArray_PostComments, toArray_PostComments, toArray_PreComments, toArray_PreComments
-
-
-
-
Field Detail
-
name
protected java.lang.String name
-
mCTypes
protected java.util.List<ASTMCType> mCTypes
-
symbol
protected java.util.Optional<TypeVarSymbol> symbol
-
spannedScope
protected ITypeParametersScope spannedScope
-
enclosingScope
protected ITypeParametersScope enclosingScope
-
-
Method Detail
-
deepEquals
public boolean deepEquals(java.lang.Object o)
- Specified by:
deepEqualsin interfacede.monticore.ast.ASTNode- Specified by:
deepEqualsin interfaceASTType- Specified by:
deepEqualsin interfaceASTTypeVar
-
deepEquals
public boolean deepEquals(java.lang.Object o, boolean forceSameOrder)- Specified by:
deepEqualsin interfacede.monticore.ast.ASTNode- Specified by:
deepEqualsin interfaceASTType- Specified by:
deepEqualsin interfaceASTTypeVar
-
deepEqualsWithComments
public boolean deepEqualsWithComments(java.lang.Object o)
- Specified by:
deepEqualsWithCommentsin interfacede.monticore.ast.ASTNode- Specified by:
deepEqualsWithCommentsin interfaceASTType- Specified by:
deepEqualsWithCommentsin interfaceASTTypeVar
-
deepEqualsWithComments
public boolean deepEqualsWithComments(java.lang.Object o, boolean forceSameOrder)- Specified by:
deepEqualsWithCommentsin interfacede.monticore.ast.ASTNode- Specified by:
deepEqualsWithCommentsin interfaceASTType- Specified by:
deepEqualsWithCommentsin interfaceASTTypeVar
-
equalAttributes
public boolean equalAttributes(java.lang.Object o)
- Specified by:
equalAttributesin interfacede.monticore.ast.ASTNode- Specified by:
equalAttributesin interfaceASTType- Specified by:
equalAttributesin interfaceASTTypeVar
-
equalsWithComments
public boolean equalsWithComments(java.lang.Object o)
- Specified by:
equalsWithCommentsin interfacede.monticore.ast.ASTNode- Specified by:
equalsWithCommentsin interfaceASTType- Specified by:
equalsWithCommentsin interfaceASTTypeVar
-
deepClone
public ASTTypeParameter deepClone()
- Specified by:
deepClonein interfacede.monticore.ast.ASTNode- Specified by:
deepClonein interfaceASTType- Specified by:
deepClonein interfaceASTTypeVar- Specified by:
deepClonein classde.monticore.ast.ASTCNode
-
deepClone
public ASTTypeParameter deepClone(ASTTypeParameter result)
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceASTType- Specified by:
getNamein interfaceASTTypeVar
-
containsMCType
public boolean containsMCType(java.lang.Object element)
-
containsAllMCTypes
public boolean containsAllMCTypes(java.util.Collection<?> collection)
-
isEmptyMCTypes
public boolean isEmptyMCTypes()
-
iteratorMCTypes
public java.util.Iterator<ASTMCType> iteratorMCTypes()
-
sizeMCTypes
public int sizeMCTypes()
-
toArrayMCTypes
public java.lang.Object[] toArrayMCTypes()
-
spliteratorMCTypes
public java.util.Spliterator<ASTMCType> spliteratorMCTypes()
-
streamMCTypes
public java.util.stream.Stream<ASTMCType> streamMCTypes()
-
parallelStreamMCTypes
public java.util.stream.Stream<ASTMCType> parallelStreamMCTypes()
-
getMCType
public ASTMCType getMCType(int index)
-
indexOfMCType
public int indexOfMCType(java.lang.Object element)
-
lastIndexOfMCType
public int lastIndexOfMCType(java.lang.Object element)
-
equalsMCTypes
public boolean equalsMCTypes(java.lang.Object o)
-
hashCodeMCTypes
public int hashCodeMCTypes()
-
listIteratorMCTypes
public java.util.ListIterator<ASTMCType> listIteratorMCTypes()
-
listIteratorMCTypes
public java.util.ListIterator<ASTMCType> listIteratorMCTypes(int index)
-
subListMCTypes
public java.util.List<ASTMCType> subListMCTypes(int start, int end)
-
getMCTypeList
public java.util.List<ASTMCType> getMCTypeList()
-
setName
public void setName(java.lang.String name)
- Specified by:
setNamein interfaceASTType- Specified by:
setNamein interfaceASTTypeVar
-
clearMCTypes
public void clearMCTypes()
-
addMCType
public boolean addMCType(ASTMCType element)
-
addAllMCTypes
public boolean addAllMCTypes(java.util.Collection<? extends ASTMCType> collection)
-
removeMCType
public boolean removeMCType(java.lang.Object element)
-
removeAllMCTypes
public boolean removeAllMCTypes(java.util.Collection<?> collection)
-
retainAllMCTypes
public boolean retainAllMCTypes(java.util.Collection<?> collection)
-
removeIfMCType
public boolean removeIfMCType(java.util.function.Predicate<? super ASTMCType> filter)
-
forEachMCTypes
public void forEachMCTypes(java.util.function.Consumer<? super ASTMCType> action)
-
addMCType
public void addMCType(int index, ASTMCType element)
-
addAllMCTypes
public boolean addAllMCTypes(int index, java.util.Collection<? extends ASTMCType> collection)
-
removeMCType
public ASTMCType removeMCType(int index)
-
replaceAllMCTypes
public void replaceAllMCTypes(java.util.function.UnaryOperator<ASTMCType> operator)
-
sortMCTypes
public void sortMCTypes(java.util.Comparator<? super ASTMCType> comparator)
-
setMCTypeList
public void setMCTypeList(java.util.List<ASTMCType> mCTypes)
-
accept
public void accept(TypeParametersTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Specified by:
acceptin interfaceASTTypeParametersNode- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(BasicSymbolsTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Specified by:
acceptin interfaceASTBasicSymbolsNode- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(MCBasicTypesTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(MCBasicsTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(de.monticore.visitor.ITraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Specified by:
acceptin interfacede.monticore.ast.ASTNode- Parameters:
visitor- the visitor to dispatch to
-
_construct
protected ASTTypeParameter _construct()
-
getSymbol
public TypeVarSymbol getSymbol()
- Specified by:
getSymbolin interfaceASTType- Specified by:
getSymbolin interfaceASTTypeVar
-
isPresentSymbol
public boolean isPresentSymbol()
- Specified by:
isPresentSymbolin interfaceASTType- Specified by:
isPresentSymbolin interfaceASTTypeVar
-
setSymbol
public void setSymbol(TypeVarSymbol symbol)
-
setSymbolAbsent
public void setSymbolAbsent()
-
getSpannedScope
public ITypeParametersScope getSpannedScope()
- Specified by:
getSpannedScopein interfaceASTType- Specified by:
getSpannedScopein interfaceASTTypeVar
-
setSpannedScope
public void setSpannedScope(ITypeParametersScope spannedScope)
-
getEnclosingScope
public ITypeParametersScope getEnclosingScope()
- Specified by:
getEnclosingScopein interfacede.monticore.ast.ASTNode- Specified by:
getEnclosingScopein interfaceASTType- Specified by:
getEnclosingScopein interfaceASTTypeVar
-
setEnclosingScope
public void setEnclosingScope(ITypeParametersScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IBasicSymbolsScope enclosingScope)
- Specified by:
setEnclosingScopein interfaceASTType- Specified by:
setEnclosingScopein interfaceASTTypeVar
-
setSpannedScope
public void setSpannedScope(IBasicSymbolsScope spannedScope)
- Specified by:
setSpannedScopein interfaceASTType- Specified by:
setSpannedScopein interfaceASTTypeVar
-
setEnclosingScope
public void setEnclosingScope(IMCBasicTypesScope enclosingScope)
-
setSpannedScope
public void setSpannedScope(IMCBasicTypesScope spannedScope)
-
setEnclosingScope
public void setEnclosingScope(IMCBasicsScope enclosingScope)
- Specified by:
setEnclosingScopein interfaceASTType- Specified by:
setEnclosingScopein interfaceASTTypeVar
-
setSpannedScope
public void setSpannedScope(IMCBasicsScope spannedScope)
- Specified by:
setSpannedScopein interfaceASTTypeVar
-
evaluate
public de.monticore.interpreter.Value evaluate(ITypeParametersInterpreter interpreter)
-
evaluate
public de.monticore.interpreter.Value evaluate(de.monticore.interpreter.ModelInterpreter interpreter)
- Specified by:
evaluatein interfacede.monticore.ast.ASTNode
-
-