Class ASTArgumentsBuilder
- java.lang.Object
-
- de.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
- de.monticore.expressions.expressionsbasis._ast.ASTArgumentsBuilder
-
public class ASTArgumentsBuilder extends de.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<ASTExpression>expressionsprotected ASTArgumentsBuilderrealBuilder
-
Constructor Summary
Constructors Constructor Description ASTArgumentsBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ASTArgumentsBuilderadd_PostComment(int index, de.monticore.ast.Comment postcomment)ASTArgumentsBuilderadd_PostComment(de.monticore.ast.Comment postcomment)ASTArgumentsBuilderadd_PreComment(int index, de.monticore.ast.Comment precomment)ASTArgumentsBuilderadd_PreComment(de.monticore.ast.Comment precomment)ASTArgumentsBuilderaddAll_PostComments(int index, java.util.Collection<de.monticore.ast.Comment> postcomments)ASTArgumentsBuilderaddAll_PostComments(java.util.Collection<de.monticore.ast.Comment> postcomments)ASTArgumentsBuilderaddAll_PreComments(int index, java.util.Collection<de.monticore.ast.Comment> precomments)ASTArgumentsBuilderaddAll_PreComments(java.util.Collection<de.monticore.ast.Comment> precomments)ASTArgumentsBuilderaddAllExpressions(int index, java.util.Collection<? extends ASTExpression> collection)ASTArgumentsBuilderaddAllExpressions(java.util.Collection<? extends ASTExpression> collection)ASTArgumentsBuilderaddExpression(int index, ASTExpression element)ASTArgumentsBuilderaddExpression(ASTExpression element)ASTArgumentsbuild()ASTArgumentsBuilderclear_PostComments()ASTArgumentsBuilderclear_PreComments()ASTArgumentsBuilderclearExpressions()booleancontainsAllExpressions(java.util.Collection<?> collection)booleancontainsExpression(java.lang.Object element)booleanequalsExpressions(java.lang.Object o)ASTArgumentsBuilderforEach_PostComments(java.util.function.Consumer<? super de.monticore.ast.Comment> action)ASTArgumentsBuilderforEach_PreComments(java.util.function.Consumer<? super de.monticore.ast.Comment> action)ASTArgumentsBuilderforEachExpressions(java.util.function.Consumer<? super ASTExpression> action)ASTExpressiongetExpression(int index)java.util.List<ASTExpression>getExpressionList()inthashCodeExpressions()intindexOfExpression(java.lang.Object element)booleanisEmptyExpressions()booleanisValid()java.util.Iterator<ASTExpression>iteratorExpressions()intlastIndexOfExpression(java.lang.Object element)java.util.ListIterator<ASTExpression>listIteratorExpressions()java.util.ListIterator<ASTExpression>listIteratorExpressions(int index)java.util.stream.Stream<ASTExpression>parallelStreamExpressions()ASTArgumentsBuilderremove_PostComment(int index)ASTArgumentsBuilderremove_PostComment(java.lang.Object element)ASTArgumentsBuilderremove_PreComment(int index)ASTArgumentsBuilderremove_PreComment(java.lang.Object element)ASTArgumentsBuilderremoveAll_PostComments(java.util.Collection<?> element)ASTArgumentsBuilderremoveAll_PreComments(java.util.Collection<?> element)ASTArgumentsBuilderremoveAllExpressions(java.util.Collection<?> collection)ASTArgumentsBuilderremoveExpression(int index)ASTArgumentsBuilderremoveExpression(java.lang.Object element)ASTArgumentsBuilderremoveIf_PostComment(java.util.function.Predicate<? super de.monticore.ast.Comment> filter)ASTArgumentsBuilderremoveIf_PreComment(java.util.function.Predicate<? super de.monticore.ast.Comment> filter)ASTArgumentsBuilderremoveIfExpression(java.util.function.Predicate<? super ASTExpression> filter)ASTArgumentsBuilderreplaceAll_PostComments(java.util.function.UnaryOperator<de.monticore.ast.Comment> operator)ASTArgumentsBuilderreplaceAll_PreComments(java.util.function.UnaryOperator<de.monticore.ast.Comment> operator)ASTArgumentsBuilderreplaceAllExpressions(java.util.function.UnaryOperator<ASTExpression> operator)ASTArgumentsBuilderretainAll_PostComments(java.util.Collection<?> element)ASTArgumentsBuilderretainAll_PreComments(java.util.Collection<?> element)ASTArgumentsBuilderretainAllExpressions(java.util.Collection<?> collection)ASTArgumentsBuilderset_PostComment(int index, de.monticore.ast.Comment postcomment)ASTArgumentsBuilderset_PostCommentList(java.util.List<de.monticore.ast.Comment> postComments)ASTArgumentsBuilderset_PreComment(int index, de.monticore.ast.Comment precomment)ASTArgumentsBuilderset_PreCommentList(java.util.List<de.monticore.ast.Comment> preComments)ASTArgumentsBuilderset_SourcePositionEnd(de.se_rwth.commons.SourcePosition end)ASTArgumentsBuilderset_SourcePositionEndAbsent()ASTArgumentsBuilderset_SourcePositionStart(de.se_rwth.commons.SourcePosition start)ASTArgumentsBuilderset_SourcePositionStartAbsent()ASTArgumentsBuildersetExpression(int index, ASTExpression element)ASTArgumentsBuildersetExpressionsList(java.util.List<ASTExpression> expressions)intsizeExpressions()ASTArgumentsBuildersort_PostComments(java.util.Comparator<? super de.monticore.ast.Comment> comparator)ASTArgumentsBuildersort_PreComments(java.util.Comparator<? super de.monticore.ast.Comment> comparator)ASTArgumentsBuildersortExpressions(java.util.Comparator<? super ASTExpression> comparator)java.util.Spliterator<ASTExpression>spliteratorExpressions()java.util.stream.Stream<ASTExpression>streamExpressions()java.util.List<ASTExpression>subListExpressions(int start, int end)java.lang.Object[]toArrayExpressions()ASTExpression[]toArrayExpressions(ASTExpression[] array)ASTArgumentsuncheckedBuild()-
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 ASTArgumentsBuilder realBuilder
-
expressions
protected java.util.List<ASTExpression> expressions
-
-
Method Detail
-
build
public ASTArguments build()
-
isValid
public boolean isValid()
-
containsExpression
public boolean containsExpression(java.lang.Object element)
-
containsAllExpressions
public boolean containsAllExpressions(java.util.Collection<?> collection)
-
isEmptyExpressions
public boolean isEmptyExpressions()
-
iteratorExpressions
public java.util.Iterator<ASTExpression> iteratorExpressions()
-
sizeExpressions
public int sizeExpressions()
-
toArrayExpressions
public ASTExpression[] toArrayExpressions(ASTExpression[] array)
-
toArrayExpressions
public java.lang.Object[] toArrayExpressions()
-
spliteratorExpressions
public java.util.Spliterator<ASTExpression> spliteratorExpressions()
-
streamExpressions
public java.util.stream.Stream<ASTExpression> streamExpressions()
-
parallelStreamExpressions
public java.util.stream.Stream<ASTExpression> parallelStreamExpressions()
-
getExpression
public ASTExpression getExpression(int index)
-
indexOfExpression
public int indexOfExpression(java.lang.Object element)
-
lastIndexOfExpression
public int lastIndexOfExpression(java.lang.Object element)
-
equalsExpressions
public boolean equalsExpressions(java.lang.Object o)
-
hashCodeExpressions
public int hashCodeExpressions()
-
listIteratorExpressions
public java.util.ListIterator<ASTExpression> listIteratorExpressions()
-
listIteratorExpressions
public java.util.ListIterator<ASTExpression> listIteratorExpressions(int index)
-
subListExpressions
public java.util.List<ASTExpression> subListExpressions(int start, int end)
-
getExpressionList
public java.util.List<ASTExpression> getExpressionList()
-
clearExpressions
public ASTArgumentsBuilder clearExpressions()
-
addExpression
public ASTArgumentsBuilder addExpression(ASTExpression element)
-
addAllExpressions
public ASTArgumentsBuilder addAllExpressions(java.util.Collection<? extends ASTExpression> collection)
-
removeExpression
public ASTArgumentsBuilder removeExpression(java.lang.Object element)
-
removeAllExpressions
public ASTArgumentsBuilder removeAllExpressions(java.util.Collection<?> collection)
-
retainAllExpressions
public ASTArgumentsBuilder retainAllExpressions(java.util.Collection<?> collection)
-
removeIfExpression
public ASTArgumentsBuilder removeIfExpression(java.util.function.Predicate<? super ASTExpression> filter)
-
forEachExpressions
public ASTArgumentsBuilder forEachExpressions(java.util.function.Consumer<? super ASTExpression> action)
-
addExpression
public ASTArgumentsBuilder addExpression(int index, ASTExpression element)
-
addAllExpressions
public ASTArgumentsBuilder addAllExpressions(int index, java.util.Collection<? extends ASTExpression> collection)
-
removeExpression
public ASTArgumentsBuilder removeExpression(int index)
-
setExpression
public ASTArgumentsBuilder setExpression(int index, ASTExpression element)
-
replaceAllExpressions
public ASTArgumentsBuilder replaceAllExpressions(java.util.function.UnaryOperator<ASTExpression> operator)
-
sortExpressions
public ASTArgumentsBuilder sortExpressions(java.util.Comparator<? super ASTExpression> comparator)
-
setExpressionsList
public ASTArgumentsBuilder setExpressionsList(java.util.List<ASTExpression> expressions)
-
set_SourcePositionEnd
public ASTArgumentsBuilder set_SourcePositionEnd(de.se_rwth.commons.SourcePosition end)
- Overrides:
set_SourcePositionEndin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
set_SourcePositionEndAbsent
public ASTArgumentsBuilder set_SourcePositionEndAbsent()
- Overrides:
set_SourcePositionEndAbsentin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
set_SourcePositionStart
public ASTArgumentsBuilder set_SourcePositionStart(de.se_rwth.commons.SourcePosition start)
- Overrides:
set_SourcePositionStartin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
set_SourcePositionStartAbsent
public ASTArgumentsBuilder set_SourcePositionStartAbsent()
- Overrides:
set_SourcePositionStartAbsentin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
clear_PreComments
public ASTArgumentsBuilder clear_PreComments()
- Overrides:
clear_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
add_PreComment
public ASTArgumentsBuilder add_PreComment(de.monticore.ast.Comment precomment)
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
add_PreComment
public ASTArgumentsBuilder add_PreComment(int index, de.monticore.ast.Comment precomment)
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
addAll_PreComments
public ASTArgumentsBuilder addAll_PreComments(java.util.Collection<de.monticore.ast.Comment> precomments)
- Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
addAll_PreComments
public ASTArgumentsBuilder addAll_PreComments(int index, java.util.Collection<de.monticore.ast.Comment> precomments)
- Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
remove_PreComment
public ASTArgumentsBuilder remove_PreComment(java.lang.Object element)
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
remove_PreComment
public ASTArgumentsBuilder remove_PreComment(int index)
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
removeAll_PreComments
public ASTArgumentsBuilder removeAll_PreComments(java.util.Collection<?> element)
- Overrides:
removeAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
retainAll_PreComments
public ASTArgumentsBuilder retainAll_PreComments(java.util.Collection<?> element)
- Overrides:
retainAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
removeIf_PreComment
public ASTArgumentsBuilder removeIf_PreComment(java.util.function.Predicate<? super de.monticore.ast.Comment> filter)
- Overrides:
removeIf_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
forEach_PreComments
public ASTArgumentsBuilder forEach_PreComments(java.util.function.Consumer<? super de.monticore.ast.Comment> action)
- Overrides:
forEach_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
replaceAll_PreComments
public ASTArgumentsBuilder replaceAll_PreComments(java.util.function.UnaryOperator<de.monticore.ast.Comment> operator)
- Overrides:
replaceAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
sort_PreComments
public ASTArgumentsBuilder sort_PreComments(java.util.Comparator<? super de.monticore.ast.Comment> comparator)
- Overrides:
sort_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
set_PreCommentList
public ASTArgumentsBuilder set_PreCommentList(java.util.List<de.monticore.ast.Comment> preComments)
- Overrides:
set_PreCommentListin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
set_PreComment
public ASTArgumentsBuilder set_PreComment(int index, de.monticore.ast.Comment precomment)
- Overrides:
set_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
clear_PostComments
public ASTArgumentsBuilder clear_PostComments()
- Overrides:
clear_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
add_PostComment
public ASTArgumentsBuilder add_PostComment(de.monticore.ast.Comment postcomment)
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
add_PostComment
public ASTArgumentsBuilder add_PostComment(int index, de.monticore.ast.Comment postcomment)
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
addAll_PostComments
public ASTArgumentsBuilder addAll_PostComments(java.util.Collection<de.monticore.ast.Comment> postcomments)
- Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
addAll_PostComments
public ASTArgumentsBuilder addAll_PostComments(int index, java.util.Collection<de.monticore.ast.Comment> postcomments)
- Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
remove_PostComment
public ASTArgumentsBuilder remove_PostComment(java.lang.Object element)
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
remove_PostComment
public ASTArgumentsBuilder remove_PostComment(int index)
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
removeAll_PostComments
public ASTArgumentsBuilder removeAll_PostComments(java.util.Collection<?> element)
- Overrides:
removeAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
retainAll_PostComments
public ASTArgumentsBuilder retainAll_PostComments(java.util.Collection<?> element)
- Overrides:
retainAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
removeIf_PostComment
public ASTArgumentsBuilder removeIf_PostComment(java.util.function.Predicate<? super de.monticore.ast.Comment> filter)
- Overrides:
removeIf_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
forEach_PostComments
public ASTArgumentsBuilder forEach_PostComments(java.util.function.Consumer<? super de.monticore.ast.Comment> action)
- Overrides:
forEach_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
replaceAll_PostComments
public ASTArgumentsBuilder replaceAll_PostComments(java.util.function.UnaryOperator<de.monticore.ast.Comment> operator)
- Overrides:
replaceAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
sort_PostComments
public ASTArgumentsBuilder sort_PostComments(java.util.Comparator<? super de.monticore.ast.Comment> comparator)
- Overrides:
sort_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
set_PostCommentList
public ASTArgumentsBuilder set_PostCommentList(java.util.List<de.monticore.ast.Comment> postComments)
- Overrides:
set_PostCommentListin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
set_PostComment
public ASTArgumentsBuilder set_PostComment(int index, de.monticore.ast.Comment postcomment)
- Overrides:
set_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTArgumentsBuilder>
-
uncheckedBuild
public ASTArguments uncheckedBuild()
-
-