Class ASTTypeParameterBuilder
- java.lang.Object
-
- de.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
- de.monticore.types.typeparameters._ast.ASTTypeParameterBuilder
-
public class ASTTypeParameterBuilder extends de.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<ASTMCType>mCTypesprotected java.lang.Stringnameprotected ASTTypeParameterBuilderrealBuilder
-
Constructor Summary
Constructors Constructor Description ASTTypeParameterBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ASTTypeParameterBuilderadd_PostComment(int index, de.monticore.ast.Comment postcomment)ASTTypeParameterBuilderadd_PostComment(de.monticore.ast.Comment postcomment)ASTTypeParameterBuilderadd_PreComment(int index, de.monticore.ast.Comment precomment)ASTTypeParameterBuilderadd_PreComment(de.monticore.ast.Comment precomment)ASTTypeParameterBuilderaddAll_PostComments(int index, java.util.Collection<de.monticore.ast.Comment> postcomments)ASTTypeParameterBuilderaddAll_PostComments(java.util.Collection<de.monticore.ast.Comment> postcomments)ASTTypeParameterBuilderaddAll_PreComments(int index, java.util.Collection<de.monticore.ast.Comment> precomments)ASTTypeParameterBuilderaddAll_PreComments(java.util.Collection<de.monticore.ast.Comment> precomments)ASTTypeParameterBuilderaddAllMCTypes(int index, java.util.Collection<? extends ASTMCType> collection)ASTTypeParameterBuilderaddAllMCTypes(java.util.Collection<? extends ASTMCType> collection)ASTTypeParameterBuilderaddMCType(int index, ASTMCType element)ASTTypeParameterBuilderaddMCType(ASTMCType element)ASTTypeParameterbuild()ASTTypeParameterBuilderclear_PostComments()ASTTypeParameterBuilderclear_PreComments()ASTTypeParameterBuilderclearMCTypes()booleancontainsAllMCTypes(java.util.Collection<?> collection)booleancontainsMCType(java.lang.Object element)booleanequalsMCTypes(java.lang.Object o)ASTTypeParameterBuilderforEach_PostComments(java.util.function.Consumer<? super de.monticore.ast.Comment> action)ASTTypeParameterBuilderforEach_PreComments(java.util.function.Consumer<? super de.monticore.ast.Comment> action)ASTTypeParameterBuilderforEachMCTypes(java.util.function.Consumer<? super ASTMCType> action)ASTMCTypegetMCType(int index)java.util.List<ASTMCType>getMCTypeList()java.lang.StringgetName()inthashCodeMCTypes()intindexOfMCType(java.lang.Object element)booleanisEmptyMCTypes()booleanisValid()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()ASTTypeParameterBuilderremove_PostComment(int index)ASTTypeParameterBuilderremove_PostComment(java.lang.Object element)ASTTypeParameterBuilderremove_PreComment(int index)ASTTypeParameterBuilderremove_PreComment(java.lang.Object element)ASTTypeParameterBuilderremoveAll_PostComments(java.util.Collection<?> element)ASTTypeParameterBuilderremoveAll_PreComments(java.util.Collection<?> element)ASTTypeParameterBuilderremoveAllMCTypes(java.util.Collection<?> collection)ASTTypeParameterBuilderremoveIf_PostComment(java.util.function.Predicate<? super de.monticore.ast.Comment> filter)ASTTypeParameterBuilderremoveIf_PreComment(java.util.function.Predicate<? super de.monticore.ast.Comment> filter)ASTTypeParameterBuilderremoveIfMCType(java.util.function.Predicate<? super ASTMCType> filter)ASTTypeParameterBuilderremoveMCType(int index)ASTTypeParameterBuilderremoveMCType(java.lang.Object element)ASTTypeParameterBuilderreplaceAll_PostComments(java.util.function.UnaryOperator<de.monticore.ast.Comment> operator)ASTTypeParameterBuilderreplaceAll_PreComments(java.util.function.UnaryOperator<de.monticore.ast.Comment> operator)ASTTypeParameterBuilderreplaceAllMCTypes(java.util.function.UnaryOperator<ASTMCType> operator)ASTTypeParameterBuilderretainAll_PostComments(java.util.Collection<?> element)ASTTypeParameterBuilderretainAll_PreComments(java.util.Collection<?> element)ASTTypeParameterBuilderretainAllMCTypes(java.util.Collection<?> collection)ASTTypeParameterBuilderset_PostComment(int index, de.monticore.ast.Comment postcomment)ASTTypeParameterBuilderset_PostCommentList(java.util.List<de.monticore.ast.Comment> postComments)ASTTypeParameterBuilderset_PreComment(int index, de.monticore.ast.Comment precomment)ASTTypeParameterBuilderset_PreCommentList(java.util.List<de.monticore.ast.Comment> preComments)ASTTypeParameterBuilderset_SourcePositionEnd(de.se_rwth.commons.SourcePosition end)ASTTypeParameterBuilderset_SourcePositionEndAbsent()ASTTypeParameterBuilderset_SourcePositionStart(de.se_rwth.commons.SourcePosition start)ASTTypeParameterBuilderset_SourcePositionStartAbsent()ASTTypeParameterBuildersetMCType(int index, ASTMCType element)ASTTypeParameterBuildersetMCTypesList(java.util.List<ASTMCType> mCTypes)ASTTypeParameterBuildersetName(java.lang.String name)intsizeMCTypes()ASTTypeParameterBuildersort_PostComments(java.util.Comparator<? super de.monticore.ast.Comment> comparator)ASTTypeParameterBuildersort_PreComments(java.util.Comparator<? super de.monticore.ast.Comment> comparator)ASTTypeParameterBuildersortMCTypes(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)ASTTypeParameteruncheckedBuild()-
Methods inherited from class de.monticore.ast.ASTNodeBuilder
contains_PostComment, contains_PreComment, containsAll_PostComments, containsAll_PreComments, equals_PostComments, equals_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, size_PostComments, size_PreComments, spliterator_PostComments, spliterator_PreComments, stream_PostComments, stream_PreComments, subList_PostComments, subList_PreComments, toArray_PostComments, toArray_PostComments, toArray_PreComments, toArray_PreComments
-
-
-
-
Field Detail
-
realBuilder
protected ASTTypeParameterBuilder realBuilder
-
name
protected java.lang.String name
-
mCTypes
protected java.util.List<ASTMCType> mCTypes
-
-
Method Detail
-
build
public ASTTypeParameter build()
-
isValid
public boolean isValid()
-
getName
public java.lang.String getName()
-
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 ASTTypeParameterBuilder setName(java.lang.String name)
-
clearMCTypes
public ASTTypeParameterBuilder clearMCTypes()
-
addMCType
public ASTTypeParameterBuilder addMCType(ASTMCType element)
-
addAllMCTypes
public ASTTypeParameterBuilder addAllMCTypes(java.util.Collection<? extends ASTMCType> collection)
-
removeMCType
public ASTTypeParameterBuilder removeMCType(java.lang.Object element)
-
removeAllMCTypes
public ASTTypeParameterBuilder removeAllMCTypes(java.util.Collection<?> collection)
-
retainAllMCTypes
public ASTTypeParameterBuilder retainAllMCTypes(java.util.Collection<?> collection)
-
removeIfMCType
public ASTTypeParameterBuilder removeIfMCType(java.util.function.Predicate<? super ASTMCType> filter)
-
forEachMCTypes
public ASTTypeParameterBuilder forEachMCTypes(java.util.function.Consumer<? super ASTMCType> action)
-
addMCType
public ASTTypeParameterBuilder addMCType(int index, ASTMCType element)
-
addAllMCTypes
public ASTTypeParameterBuilder addAllMCTypes(int index, java.util.Collection<? extends ASTMCType> collection)
-
removeMCType
public ASTTypeParameterBuilder removeMCType(int index)
-
setMCType
public ASTTypeParameterBuilder setMCType(int index, ASTMCType element)
-
replaceAllMCTypes
public ASTTypeParameterBuilder replaceAllMCTypes(java.util.function.UnaryOperator<ASTMCType> operator)
-
sortMCTypes
public ASTTypeParameterBuilder sortMCTypes(java.util.Comparator<? super ASTMCType> comparator)
-
setMCTypesList
public ASTTypeParameterBuilder setMCTypesList(java.util.List<ASTMCType> mCTypes)
-
set_SourcePositionEnd
public ASTTypeParameterBuilder set_SourcePositionEnd(de.se_rwth.commons.SourcePosition end)
- Overrides:
set_SourcePositionEndin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
set_SourcePositionEndAbsent
public ASTTypeParameterBuilder set_SourcePositionEndAbsent()
- Overrides:
set_SourcePositionEndAbsentin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
set_SourcePositionStart
public ASTTypeParameterBuilder set_SourcePositionStart(de.se_rwth.commons.SourcePosition start)
- Overrides:
set_SourcePositionStartin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
set_SourcePositionStartAbsent
public ASTTypeParameterBuilder set_SourcePositionStartAbsent()
- Overrides:
set_SourcePositionStartAbsentin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
clear_PreComments
public ASTTypeParameterBuilder clear_PreComments()
- Overrides:
clear_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
add_PreComment
public ASTTypeParameterBuilder add_PreComment(de.monticore.ast.Comment precomment)
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
add_PreComment
public ASTTypeParameterBuilder add_PreComment(int index, de.monticore.ast.Comment precomment)
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
addAll_PreComments
public ASTTypeParameterBuilder addAll_PreComments(java.util.Collection<de.monticore.ast.Comment> precomments)
- Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
addAll_PreComments
public ASTTypeParameterBuilder addAll_PreComments(int index, java.util.Collection<de.monticore.ast.Comment> precomments)
- Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
remove_PreComment
public ASTTypeParameterBuilder remove_PreComment(java.lang.Object element)
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
remove_PreComment
public ASTTypeParameterBuilder remove_PreComment(int index)
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
removeAll_PreComments
public ASTTypeParameterBuilder removeAll_PreComments(java.util.Collection<?> element)
- Overrides:
removeAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
retainAll_PreComments
public ASTTypeParameterBuilder retainAll_PreComments(java.util.Collection<?> element)
- Overrides:
retainAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
removeIf_PreComment
public ASTTypeParameterBuilder removeIf_PreComment(java.util.function.Predicate<? super de.monticore.ast.Comment> filter)
- Overrides:
removeIf_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
forEach_PreComments
public ASTTypeParameterBuilder forEach_PreComments(java.util.function.Consumer<? super de.monticore.ast.Comment> action)
- Overrides:
forEach_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
replaceAll_PreComments
public ASTTypeParameterBuilder replaceAll_PreComments(java.util.function.UnaryOperator<de.monticore.ast.Comment> operator)
- Overrides:
replaceAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
sort_PreComments
public ASTTypeParameterBuilder sort_PreComments(java.util.Comparator<? super de.monticore.ast.Comment> comparator)
- Overrides:
sort_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
set_PreCommentList
public ASTTypeParameterBuilder set_PreCommentList(java.util.List<de.monticore.ast.Comment> preComments)
- Overrides:
set_PreCommentListin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
set_PreComment
public ASTTypeParameterBuilder set_PreComment(int index, de.monticore.ast.Comment precomment)
- Overrides:
set_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
clear_PostComments
public ASTTypeParameterBuilder clear_PostComments()
- Overrides:
clear_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
add_PostComment
public ASTTypeParameterBuilder add_PostComment(de.monticore.ast.Comment postcomment)
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
add_PostComment
public ASTTypeParameterBuilder add_PostComment(int index, de.monticore.ast.Comment postcomment)
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
addAll_PostComments
public ASTTypeParameterBuilder addAll_PostComments(java.util.Collection<de.monticore.ast.Comment> postcomments)
- Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
addAll_PostComments
public ASTTypeParameterBuilder addAll_PostComments(int index, java.util.Collection<de.monticore.ast.Comment> postcomments)
- Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
remove_PostComment
public ASTTypeParameterBuilder remove_PostComment(java.lang.Object element)
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
remove_PostComment
public ASTTypeParameterBuilder remove_PostComment(int index)
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
removeAll_PostComments
public ASTTypeParameterBuilder removeAll_PostComments(java.util.Collection<?> element)
- Overrides:
removeAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
retainAll_PostComments
public ASTTypeParameterBuilder retainAll_PostComments(java.util.Collection<?> element)
- Overrides:
retainAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
removeIf_PostComment
public ASTTypeParameterBuilder removeIf_PostComment(java.util.function.Predicate<? super de.monticore.ast.Comment> filter)
- Overrides:
removeIf_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
forEach_PostComments
public ASTTypeParameterBuilder forEach_PostComments(java.util.function.Consumer<? super de.monticore.ast.Comment> action)
- Overrides:
forEach_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
replaceAll_PostComments
public ASTTypeParameterBuilder replaceAll_PostComments(java.util.function.UnaryOperator<de.monticore.ast.Comment> operator)
- Overrides:
replaceAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
sort_PostComments
public ASTTypeParameterBuilder sort_PostComments(java.util.Comparator<? super de.monticore.ast.Comment> comparator)
- Overrides:
sort_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
set_PostCommentList
public ASTTypeParameterBuilder set_PostCommentList(java.util.List<de.monticore.ast.Comment> postComments)
- Overrides:
set_PostCommentListin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
set_PostComment
public ASTTypeParameterBuilder set_PostComment(int index, de.monticore.ast.Comment postcomment)
- Overrides:
set_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTypeParameterBuilder>
-
uncheckedBuild
public ASTTypeParameter uncheckedBuild()
-
-