Class ASTMCBasicGenericTypeBuilder
- java.lang.Object
-
- de.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
- de.monticore.types.mcsimplegenerictypes._ast.ASTMCBasicGenericTypeBuilder
-
public class ASTMCBasicGenericTypeBuilder extends de.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<ASTMCTypeArgument>mCTypeArgumentsprotected java.util.List<java.lang.String>namesprotected ASTMCBasicGenericTypeBuilderrealBuilder
-
Constructor Summary
Constructors Constructor Description ASTMCBasicGenericTypeBuilder()
-
Method Summary
-
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 ASTMCBasicGenericTypeBuilder realBuilder
-
names
protected java.util.List<java.lang.String> names
-
mCTypeArguments
protected java.util.List<ASTMCTypeArgument> mCTypeArguments
-
-
Method Detail
-
build
public ASTMCBasicGenericType build()
-
isValid
public boolean isValid()
-
containsName
public boolean containsName(java.lang.Object element)
-
containsAllNames
public boolean containsAllNames(java.util.Collection<?> collection)
-
isEmptyNames
public boolean isEmptyNames()
-
iteratorNames
public java.util.Iterator<java.lang.String> iteratorNames()
-
sizeNames
public int sizeNames()
-
toArrayNames
public java.lang.String[] toArrayNames(java.lang.String[] array)
-
toArrayNames
public java.lang.Object[] toArrayNames()
-
spliteratorNames
public java.util.Spliterator<java.lang.String> spliteratorNames()
-
streamNames
public java.util.stream.Stream<java.lang.String> streamNames()
-
parallelStreamNames
public java.util.stream.Stream<java.lang.String> parallelStreamNames()
-
getName
public java.lang.String getName(int index)
-
indexOfName
public int indexOfName(java.lang.Object element)
-
lastIndexOfName
public int lastIndexOfName(java.lang.Object element)
-
equalsNames
public boolean equalsNames(java.lang.Object o)
-
hashCodeNames
public int hashCodeNames()
-
listIteratorNames
public java.util.ListIterator<java.lang.String> listIteratorNames()
-
listIteratorNames
public java.util.ListIterator<java.lang.String> listIteratorNames(int index)
-
subListNames
public java.util.List<java.lang.String> subListNames(int start, int end)
-
getNameList
public java.util.List<java.lang.String> getNameList()
-
containsMCTypeArgument
public boolean containsMCTypeArgument(java.lang.Object element)
-
containsAllMCTypeArguments
public boolean containsAllMCTypeArguments(java.util.Collection<?> collection)
-
isEmptyMCTypeArguments
public boolean isEmptyMCTypeArguments()
-
iteratorMCTypeArguments
public java.util.Iterator<ASTMCTypeArgument> iteratorMCTypeArguments()
-
sizeMCTypeArguments
public int sizeMCTypeArguments()
-
toArrayMCTypeArguments
public ASTMCTypeArgument[] toArrayMCTypeArguments(ASTMCTypeArgument[] array)
-
toArrayMCTypeArguments
public java.lang.Object[] toArrayMCTypeArguments()
-
spliteratorMCTypeArguments
public java.util.Spliterator<ASTMCTypeArgument> spliteratorMCTypeArguments()
-
streamMCTypeArguments
public java.util.stream.Stream<ASTMCTypeArgument> streamMCTypeArguments()
-
parallelStreamMCTypeArguments
public java.util.stream.Stream<ASTMCTypeArgument> parallelStreamMCTypeArguments()
-
getMCTypeArgument
public ASTMCTypeArgument getMCTypeArgument(int index)
-
indexOfMCTypeArgument
public int indexOfMCTypeArgument(java.lang.Object element)
-
lastIndexOfMCTypeArgument
public int lastIndexOfMCTypeArgument(java.lang.Object element)
-
equalsMCTypeArguments
public boolean equalsMCTypeArguments(java.lang.Object o)
-
hashCodeMCTypeArguments
public int hashCodeMCTypeArguments()
-
listIteratorMCTypeArguments
public java.util.ListIterator<ASTMCTypeArgument> listIteratorMCTypeArguments()
-
listIteratorMCTypeArguments
public java.util.ListIterator<ASTMCTypeArgument> listIteratorMCTypeArguments(int index)
-
subListMCTypeArguments
public java.util.List<ASTMCTypeArgument> subListMCTypeArguments(int start, int end)
-
getMCTypeArgumentList
public java.util.List<ASTMCTypeArgument> getMCTypeArgumentList()
-
clearNames
public ASTMCBasicGenericTypeBuilder clearNames()
-
addName
public ASTMCBasicGenericTypeBuilder addName(java.lang.String element)
-
addAllNames
public ASTMCBasicGenericTypeBuilder addAllNames(java.util.Collection<? extends java.lang.String> collection)
-
removeName
public ASTMCBasicGenericTypeBuilder removeName(java.lang.Object element)
-
removeAllNames
public ASTMCBasicGenericTypeBuilder removeAllNames(java.util.Collection<?> collection)
-
retainAllNames
public ASTMCBasicGenericTypeBuilder retainAllNames(java.util.Collection<?> collection)
-
removeIfName
public ASTMCBasicGenericTypeBuilder removeIfName(java.util.function.Predicate<? super java.lang.String> filter)
-
forEachNames
public ASTMCBasicGenericTypeBuilder forEachNames(java.util.function.Consumer<? super java.lang.String> action)
-
addName
public ASTMCBasicGenericTypeBuilder addName(int index, java.lang.String element)
-
addAllNames
public ASTMCBasicGenericTypeBuilder addAllNames(int index, java.util.Collection<? extends java.lang.String> collection)
-
removeName
public ASTMCBasicGenericTypeBuilder removeName(int index)
-
setName
public ASTMCBasicGenericTypeBuilder setName(int index, java.lang.String element)
-
replaceAllNames
public ASTMCBasicGenericTypeBuilder replaceAllNames(java.util.function.UnaryOperator<java.lang.String> operator)
-
sortNames
public ASTMCBasicGenericTypeBuilder sortNames(java.util.Comparator<? super java.lang.String> comparator)
-
setNamesList
public ASTMCBasicGenericTypeBuilder setNamesList(java.util.List<java.lang.String> names)
-
clearMCTypeArguments
public ASTMCBasicGenericTypeBuilder clearMCTypeArguments()
-
addMCTypeArgument
public ASTMCBasicGenericTypeBuilder addMCTypeArgument(ASTMCTypeArgument element)
-
addAllMCTypeArguments
public ASTMCBasicGenericTypeBuilder addAllMCTypeArguments(java.util.Collection<? extends ASTMCTypeArgument> collection)
-
removeMCTypeArgument
public ASTMCBasicGenericTypeBuilder removeMCTypeArgument(java.lang.Object element)
-
removeAllMCTypeArguments
public ASTMCBasicGenericTypeBuilder removeAllMCTypeArguments(java.util.Collection<?> collection)
-
retainAllMCTypeArguments
public ASTMCBasicGenericTypeBuilder retainAllMCTypeArguments(java.util.Collection<?> collection)
-
removeIfMCTypeArgument
public ASTMCBasicGenericTypeBuilder removeIfMCTypeArgument(java.util.function.Predicate<? super ASTMCTypeArgument> filter)
-
forEachMCTypeArguments
public ASTMCBasicGenericTypeBuilder forEachMCTypeArguments(java.util.function.Consumer<? super ASTMCTypeArgument> action)
-
addMCTypeArgument
public ASTMCBasicGenericTypeBuilder addMCTypeArgument(int index, ASTMCTypeArgument element)
-
addAllMCTypeArguments
public ASTMCBasicGenericTypeBuilder addAllMCTypeArguments(int index, java.util.Collection<? extends ASTMCTypeArgument> collection)
-
removeMCTypeArgument
public ASTMCBasicGenericTypeBuilder removeMCTypeArgument(int index)
-
setMCTypeArgument
public ASTMCBasicGenericTypeBuilder setMCTypeArgument(int index, ASTMCTypeArgument element)
-
replaceAllMCTypeArguments
public ASTMCBasicGenericTypeBuilder replaceAllMCTypeArguments(java.util.function.UnaryOperator<ASTMCTypeArgument> operator)
-
sortMCTypeArguments
public ASTMCBasicGenericTypeBuilder sortMCTypeArguments(java.util.Comparator<? super ASTMCTypeArgument> comparator)
-
setMCTypeArgumentsList
public ASTMCBasicGenericTypeBuilder setMCTypeArgumentsList(java.util.List<ASTMCTypeArgument> mCTypeArguments)
-
set_SourcePositionEnd
public ASTMCBasicGenericTypeBuilder set_SourcePositionEnd(de.se_rwth.commons.SourcePosition end)
- Overrides:
set_SourcePositionEndin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
set_SourcePositionEndAbsent
public ASTMCBasicGenericTypeBuilder set_SourcePositionEndAbsent()
- Overrides:
set_SourcePositionEndAbsentin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
set_SourcePositionStart
public ASTMCBasicGenericTypeBuilder set_SourcePositionStart(de.se_rwth.commons.SourcePosition start)
- Overrides:
set_SourcePositionStartin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
set_SourcePositionStartAbsent
public ASTMCBasicGenericTypeBuilder set_SourcePositionStartAbsent()
- Overrides:
set_SourcePositionStartAbsentin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
clear_PreComments
public ASTMCBasicGenericTypeBuilder clear_PreComments()
- Overrides:
clear_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
add_PreComment
public ASTMCBasicGenericTypeBuilder add_PreComment(de.monticore.ast.Comment precomment)
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
add_PreComment
public ASTMCBasicGenericTypeBuilder add_PreComment(int index, de.monticore.ast.Comment precomment)
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
addAll_PreComments
public ASTMCBasicGenericTypeBuilder addAll_PreComments(java.util.Collection<de.monticore.ast.Comment> precomments)
- Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
addAll_PreComments
public ASTMCBasicGenericTypeBuilder addAll_PreComments(int index, java.util.Collection<de.monticore.ast.Comment> precomments)
- Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
remove_PreComment
public ASTMCBasicGenericTypeBuilder remove_PreComment(java.lang.Object element)
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
remove_PreComment
public ASTMCBasicGenericTypeBuilder remove_PreComment(int index)
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
removeAll_PreComments
public ASTMCBasicGenericTypeBuilder removeAll_PreComments(java.util.Collection<?> element)
- Overrides:
removeAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
retainAll_PreComments
public ASTMCBasicGenericTypeBuilder retainAll_PreComments(java.util.Collection<?> element)
- Overrides:
retainAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
removeIf_PreComment
public ASTMCBasicGenericTypeBuilder removeIf_PreComment(java.util.function.Predicate<? super de.monticore.ast.Comment> filter)
- Overrides:
removeIf_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
forEach_PreComments
public ASTMCBasicGenericTypeBuilder forEach_PreComments(java.util.function.Consumer<? super de.monticore.ast.Comment> action)
- Overrides:
forEach_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
replaceAll_PreComments
public ASTMCBasicGenericTypeBuilder replaceAll_PreComments(java.util.function.UnaryOperator<de.monticore.ast.Comment> operator)
- Overrides:
replaceAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
sort_PreComments
public ASTMCBasicGenericTypeBuilder sort_PreComments(java.util.Comparator<? super de.monticore.ast.Comment> comparator)
- Overrides:
sort_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
set_PreCommentList
public ASTMCBasicGenericTypeBuilder set_PreCommentList(java.util.List<de.monticore.ast.Comment> preComments)
- Overrides:
set_PreCommentListin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
set_PreComment
public ASTMCBasicGenericTypeBuilder set_PreComment(int index, de.monticore.ast.Comment precomment)
- Overrides:
set_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
clear_PostComments
public ASTMCBasicGenericTypeBuilder clear_PostComments()
- Overrides:
clear_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
add_PostComment
public ASTMCBasicGenericTypeBuilder add_PostComment(de.monticore.ast.Comment postcomment)
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
add_PostComment
public ASTMCBasicGenericTypeBuilder add_PostComment(int index, de.monticore.ast.Comment postcomment)
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
addAll_PostComments
public ASTMCBasicGenericTypeBuilder addAll_PostComments(java.util.Collection<de.monticore.ast.Comment> postcomments)
- Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
addAll_PostComments
public ASTMCBasicGenericTypeBuilder addAll_PostComments(int index, java.util.Collection<de.monticore.ast.Comment> postcomments)
- Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
remove_PostComment
public ASTMCBasicGenericTypeBuilder remove_PostComment(java.lang.Object element)
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
remove_PostComment
public ASTMCBasicGenericTypeBuilder remove_PostComment(int index)
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
removeAll_PostComments
public ASTMCBasicGenericTypeBuilder removeAll_PostComments(java.util.Collection<?> element)
- Overrides:
removeAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
retainAll_PostComments
public ASTMCBasicGenericTypeBuilder retainAll_PostComments(java.util.Collection<?> element)
- Overrides:
retainAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
removeIf_PostComment
public ASTMCBasicGenericTypeBuilder removeIf_PostComment(java.util.function.Predicate<? super de.monticore.ast.Comment> filter)
- Overrides:
removeIf_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
forEach_PostComments
public ASTMCBasicGenericTypeBuilder forEach_PostComments(java.util.function.Consumer<? super de.monticore.ast.Comment> action)
- Overrides:
forEach_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
replaceAll_PostComments
public ASTMCBasicGenericTypeBuilder replaceAll_PostComments(java.util.function.UnaryOperator<de.monticore.ast.Comment> operator)
- Overrides:
replaceAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
sort_PostComments
public ASTMCBasicGenericTypeBuilder sort_PostComments(java.util.Comparator<? super de.monticore.ast.Comment> comparator)
- Overrides:
sort_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
set_PostCommentList
public ASTMCBasicGenericTypeBuilder set_PostCommentList(java.util.List<de.monticore.ast.Comment> postComments)
- Overrides:
set_PostCommentListin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
set_PostComment
public ASTMCBasicGenericTypeBuilder set_PostComment(int index, de.monticore.ast.Comment postcomment)
- Overrides:
set_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTMCBasicGenericTypeBuilder>
-
uncheckedBuild
public ASTMCBasicGenericType uncheckedBuild()
-
-