Class ASTTypeParameters
- java.lang.Object
-
- de.monticore.ast.ASTCNode
-
- de.monticore.types.typeparameters._ast.ASTTypeParameters
-
- All Implemented Interfaces:
de.monticore.ast.ASTNode,ASTTypeParametersNode,java.lang.Cloneable
public class ASTTypeParameters extends de.monticore.ast.ASTCNode implements ASTTypeParametersNode
-
-
Field Summary
Fields Modifier and Type Field Description protected ITypeParametersScopeenclosingScopeprotected java.util.List<ASTTypeParameter>typeParameters
-
Constructor Summary
Constructors Modifier Constructor Description protectedASTTypeParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ASTTypeParameters_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.booleanaddAllTypeParameters(int index, java.util.Collection<? extends ASTTypeParameter> collection)booleanaddAllTypeParameters(java.util.Collection<? extends ASTTypeParameter> collection)voidaddTypeParameter(int index, ASTTypeParameter element)booleanaddTypeParameter(ASTTypeParameter element)voidclearTypeParameters()booleancontainsAllTypeParameters(java.util.Collection<?> collection)booleancontainsTypeParameter(java.lang.Object element)ASTTypeParametersdeepClone()ASTTypeParametersdeepClone(ASTTypeParameters 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)booleanequalsTypeParameters(java.lang.Object o)booleanequalsWithComments(java.lang.Object o)de.monticore.interpreter.Valueevaluate(de.monticore.interpreter.ModelInterpreter interpreter)de.monticore.interpreter.Valueevaluate(ITypeParametersInterpreter interpreter)voidforEachTypeParameters(java.util.function.Consumer<? super ASTTypeParameter> action)ITypeParametersScopegetEnclosingScope()ASTTypeParametergetTypeParameter(int index)java.util.List<ASTTypeParameter>getTypeParameterList()inthashCodeTypeParameters()intindexOfTypeParameter(java.lang.Object element)booleanisEmptyTypeParameters()java.util.Iterator<ASTTypeParameter>iteratorTypeParameters()intlastIndexOfTypeParameter(java.lang.Object element)java.util.ListIterator<ASTTypeParameter>listIteratorTypeParameters()java.util.ListIterator<ASTTypeParameter>listIteratorTypeParameters(int index)java.util.stream.Stream<ASTTypeParameter>parallelStreamTypeParameters()booleanremoveAllTypeParameters(java.util.Collection<?> collection)booleanremoveIfTypeParameter(java.util.function.Predicate<? super ASTTypeParameter> filter)ASTTypeParameterremoveTypeParameter(int index)booleanremoveTypeParameter(java.lang.Object element)voidreplaceAllTypeParameters(java.util.function.UnaryOperator<ASTTypeParameter> operator)booleanretainAllTypeParameters(java.util.Collection<?> collection)voidsetEnclosingScope(IMCBasicsScope enclosingScope)voidsetEnclosingScope(IBasicSymbolsScope enclosingScope)voidsetEnclosingScope(IMCBasicTypesScope enclosingScope)voidsetEnclosingScope(ITypeParametersScope enclosingScope)ASTTypeParametersetTypeParameter(int index, ASTTypeParameter element)voidsetTypeParameterList(java.util.List<ASTTypeParameter> typeParameters)intsizeTypeParameters()voidsortTypeParameters(java.util.Comparator<? super ASTTypeParameter> comparator)java.util.Spliterator<ASTTypeParameter>spliteratorTypeParameters()java.util.stream.Stream<ASTTypeParameter>streamTypeParameters()java.util.List<ASTTypeParameter>subListTypeParameters(int start, int end)java.lang.Object[]toArrayTypeParameters()ASTTypeParameter[]toArrayTypeParameters(ASTTypeParameter[] 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
-
typeParameters
protected java.util.List<ASTTypeParameter> typeParameters
-
enclosingScope
protected ITypeParametersScope enclosingScope
-
-
Method Detail
-
deepEquals
public boolean deepEquals(java.lang.Object o)
- Specified by:
deepEqualsin interfacede.monticore.ast.ASTNode
-
deepEquals
public boolean deepEquals(java.lang.Object o, boolean forceSameOrder)- Specified by:
deepEqualsin interfacede.monticore.ast.ASTNode
-
deepEqualsWithComments
public boolean deepEqualsWithComments(java.lang.Object o)
- Specified by:
deepEqualsWithCommentsin interfacede.monticore.ast.ASTNode
-
deepEqualsWithComments
public boolean deepEqualsWithComments(java.lang.Object o, boolean forceSameOrder)- Specified by:
deepEqualsWithCommentsin interfacede.monticore.ast.ASTNode
-
equalAttributes
public boolean equalAttributes(java.lang.Object o)
- Specified by:
equalAttributesin interfacede.monticore.ast.ASTNode
-
equalsWithComments
public boolean equalsWithComments(java.lang.Object o)
- Specified by:
equalsWithCommentsin interfacede.monticore.ast.ASTNode
-
deepClone
public ASTTypeParameters deepClone()
- Specified by:
deepClonein interfacede.monticore.ast.ASTNode- Specified by:
deepClonein classde.monticore.ast.ASTCNode
-
deepClone
public ASTTypeParameters deepClone(ASTTypeParameters result)
-
containsTypeParameter
public boolean containsTypeParameter(java.lang.Object element)
-
containsAllTypeParameters
public boolean containsAllTypeParameters(java.util.Collection<?> collection)
-
isEmptyTypeParameters
public boolean isEmptyTypeParameters()
-
iteratorTypeParameters
public java.util.Iterator<ASTTypeParameter> iteratorTypeParameters()
-
sizeTypeParameters
public int sizeTypeParameters()
-
toArrayTypeParameters
public ASTTypeParameter[] toArrayTypeParameters(ASTTypeParameter[] array)
-
toArrayTypeParameters
public java.lang.Object[] toArrayTypeParameters()
-
spliteratorTypeParameters
public java.util.Spliterator<ASTTypeParameter> spliteratorTypeParameters()
-
streamTypeParameters
public java.util.stream.Stream<ASTTypeParameter> streamTypeParameters()
-
parallelStreamTypeParameters
public java.util.stream.Stream<ASTTypeParameter> parallelStreamTypeParameters()
-
getTypeParameter
public ASTTypeParameter getTypeParameter(int index)
-
indexOfTypeParameter
public int indexOfTypeParameter(java.lang.Object element)
-
lastIndexOfTypeParameter
public int lastIndexOfTypeParameter(java.lang.Object element)
-
equalsTypeParameters
public boolean equalsTypeParameters(java.lang.Object o)
-
hashCodeTypeParameters
public int hashCodeTypeParameters()
-
listIteratorTypeParameters
public java.util.ListIterator<ASTTypeParameter> listIteratorTypeParameters()
-
listIteratorTypeParameters
public java.util.ListIterator<ASTTypeParameter> listIteratorTypeParameters(int index)
-
subListTypeParameters
public java.util.List<ASTTypeParameter> subListTypeParameters(int start, int end)
-
getTypeParameterList
public java.util.List<ASTTypeParameter> getTypeParameterList()
-
clearTypeParameters
public void clearTypeParameters()
-
addTypeParameter
public boolean addTypeParameter(ASTTypeParameter element)
-
addAllTypeParameters
public boolean addAllTypeParameters(java.util.Collection<? extends ASTTypeParameter> collection)
-
removeTypeParameter
public boolean removeTypeParameter(java.lang.Object element)
-
removeAllTypeParameters
public boolean removeAllTypeParameters(java.util.Collection<?> collection)
-
retainAllTypeParameters
public boolean retainAllTypeParameters(java.util.Collection<?> collection)
-
removeIfTypeParameter
public boolean removeIfTypeParameter(java.util.function.Predicate<? super ASTTypeParameter> filter)
-
forEachTypeParameters
public void forEachTypeParameters(java.util.function.Consumer<? super ASTTypeParameter> action)
-
addTypeParameter
public void addTypeParameter(int index, ASTTypeParameter element)
-
addAllTypeParameters
public boolean addAllTypeParameters(int index, java.util.Collection<? extends ASTTypeParameter> collection)
-
removeTypeParameter
public ASTTypeParameter removeTypeParameter(int index)
-
setTypeParameter
public ASTTypeParameter setTypeParameter(int index, ASTTypeParameter element)
-
replaceAllTypeParameters
public void replaceAllTypeParameters(java.util.function.UnaryOperator<ASTTypeParameter> operator)
-
sortTypeParameters
public void sortTypeParameters(java.util.Comparator<? super ASTTypeParameter> comparator)
-
setTypeParameterList
public void setTypeParameterList(java.util.List<ASTTypeParameter> typeParameters)
-
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.- 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 ASTTypeParameters _construct()
-
getEnclosingScope
public ITypeParametersScope getEnclosingScope()
- Specified by:
getEnclosingScopein interfacede.monticore.ast.ASTNode
-
setEnclosingScope
public void setEnclosingScope(ITypeParametersScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IBasicSymbolsScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCBasicTypesScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCBasicsScope enclosingScope)
-
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
-
-