Package de.monticore.javalight._ast
Class ASTFormalParameterListingBuilder
java.lang.Object
de.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
de.monticore.javalight._ast.ASTFormalParameterListingBuilder
public class ASTFormalParameterListingBuilder
extends de.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ASTFormalParameter> protected Optional<ASTLastFormalParameter> protected ASTFormalParameterListingBuilderFields inherited from class de.monticore.ast.ASTNodeBuilder
postcomments, precomments, sourcePositionEnd, sourcePositionStart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd_PostComment(int index, de.monticore.ast.Comment postcomment) add_PostComment(de.monticore.ast.Comment postcomment) add_PreComment(int index, de.monticore.ast.Comment precomment) add_PreComment(de.monticore.ast.Comment precomment) addAll_PostComments(int index, Collection<de.monticore.ast.Comment> postcomments) addAll_PostComments(Collection<de.monticore.ast.Comment> postcomments) addAll_PreComments(int index, Collection<de.monticore.ast.Comment> precomments) addAll_PreComments(Collection<de.monticore.ast.Comment> precomments) addAllFormalParameters(int index, Collection<? extends ASTFormalParameter> collection) addAllFormalParameters(Collection<? extends ASTFormalParameter> collection) addFormalParameter(int index, ASTFormalParameter element) addFormalParameter(ASTFormalParameter element) build()booleancontainsAllFormalParameters(Collection<?> collection) booleancontainsFormalParameter(Object element) booleanforEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) forEachFormalParameters(Consumer<? super ASTFormalParameter> action) getFormalParameter(int index) intintindexOfFormalParameter(Object element) booleanbooleanbooleanisValid()intlastIndexOfFormalParameter(Object element) listIteratorFormalParameters(int index) remove_PostComment(int index) remove_PostComment(Object element) remove_PreComment(int index) remove_PreComment(Object element) removeAll_PostComments(Collection<?> element) removeAll_PreComments(Collection<?> element) removeAllFormalParameters(Collection<?> collection) removeFormalParameter(int index) removeFormalParameter(Object element) removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) removeIf_PreComment(Predicate<? super de.monticore.ast.Comment> filter) removeIfFormalParameter(Predicate<? super ASTFormalParameter> filter) replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) retainAll_PostComments(Collection<?> element) retainAll_PreComments(Collection<?> element) retainAllFormalParameters(Collection<?> collection) set_PostComment(int index, de.monticore.ast.Comment postcomment) set_PostCommentList(List<de.monticore.ast.Comment> postComments) set_PreComment(int index, de.monticore.ast.Comment precomment) set_PreCommentList(List<de.monticore.ast.Comment> preComments) set_SourcePositionEnd(de.se_rwth.commons.SourcePosition end) set_SourcePositionStart(de.se_rwth.commons.SourcePosition start) setFormalParameter(int index, ASTFormalParameter element) setFormalParametersList(List<ASTFormalParameter> formalParameters) setLastFormalParameter(ASTLastFormalParameter lastFormalParameter) intsort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) sortFormalParameters(Comparator<? super ASTFormalParameter> comparator) subListFormalParameters(int start, int end) Object[]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 Details
-
realBuilder
-
formalParameters
-
lastFormalParameter
-
-
Constructor Details
-
ASTFormalParameterListingBuilder
public ASTFormalParameterListingBuilder()
-
-
Method Details
-
build
-
isValid
public boolean isValid() -
containsFormalParameter
-
containsAllFormalParameters
-
isEmptyFormalParameters
public boolean isEmptyFormalParameters() -
iteratorFormalParameters
-
sizeFormalParameters
public int sizeFormalParameters() -
toArrayFormalParameters
-
toArrayFormalParameters
-
spliteratorFormalParameters
-
streamFormalParameters
-
parallelStreamFormalParameters
-
getFormalParameter
-
indexOfFormalParameter
-
lastIndexOfFormalParameter
-
equalsFormalParameters
-
hashCodeFormalParameters
public int hashCodeFormalParameters() -
listIteratorFormalParameters
-
listIteratorFormalParameters
-
subListFormalParameters
-
getFormalParameterList
-
getLastFormalParameter
-
isPresentLastFormalParameter
public boolean isPresentLastFormalParameter() -
clearFormalParameters
-
addFormalParameter
-
addAllFormalParameters
public ASTFormalParameterListingBuilder addAllFormalParameters(Collection<? extends ASTFormalParameter> collection) -
removeFormalParameter
-
removeAllFormalParameters
-
retainAllFormalParameters
-
removeIfFormalParameter
public ASTFormalParameterListingBuilder removeIfFormalParameter(Predicate<? super ASTFormalParameter> filter) -
forEachFormalParameters
public ASTFormalParameterListingBuilder forEachFormalParameters(Consumer<? super ASTFormalParameter> action) -
addFormalParameter
-
addAllFormalParameters
public ASTFormalParameterListingBuilder addAllFormalParameters(int index, Collection<? extends ASTFormalParameter> collection) -
removeFormalParameter
-
setFormalParameter
-
replaceAllFormalParameters
public ASTFormalParameterListingBuilder replaceAllFormalParameters(UnaryOperator<ASTFormalParameter> operator) -
sortFormalParameters
public ASTFormalParameterListingBuilder sortFormalParameters(Comparator<? super ASTFormalParameter> comparator) -
setFormalParametersList
public ASTFormalParameterListingBuilder setFormalParametersList(List<ASTFormalParameter> formalParameters) -
setLastFormalParameter
public ASTFormalParameterListingBuilder setLastFormalParameter(ASTLastFormalParameter lastFormalParameter) -
setLastFormalParameterAbsent
-
set_SourcePositionEnd
public ASTFormalParameterListingBuilder set_SourcePositionEnd(de.se_rwth.commons.SourcePosition end) - Overrides:
set_SourcePositionEndin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
set_SourcePositionEndAbsent
- Overrides:
set_SourcePositionEndAbsentin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
set_SourcePositionStart
public ASTFormalParameterListingBuilder set_SourcePositionStart(de.se_rwth.commons.SourcePosition start) - Overrides:
set_SourcePositionStartin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
set_SourcePositionStartAbsent
- Overrides:
set_SourcePositionStartAbsentin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
clear_PreComments
- Overrides:
clear_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
add_PreComment
public ASTFormalParameterListingBuilder add_PreComment(int index, de.monticore.ast.Comment precomment) - Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
addAll_PreComments
public ASTFormalParameterListingBuilder addAll_PreComments(Collection<de.monticore.ast.Comment> precomments) - Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
addAll_PreComments
public ASTFormalParameterListingBuilder addAll_PreComments(int index, Collection<de.monticore.ast.Comment> precomments) - Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
removeAll_PreComments
- Overrides:
removeAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
retainAll_PreComments
- Overrides:
retainAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
removeIf_PreComment
public ASTFormalParameterListingBuilder removeIf_PreComment(Predicate<? super de.monticore.ast.Comment> filter) - Overrides:
removeIf_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
forEach_PreComments
public ASTFormalParameterListingBuilder forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) - Overrides:
forEach_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
replaceAll_PreComments
public ASTFormalParameterListingBuilder replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) - Overrides:
replaceAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
sort_PreComments
public ASTFormalParameterListingBuilder sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) - Overrides:
sort_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
set_PreCommentList
public ASTFormalParameterListingBuilder set_PreCommentList(List<de.monticore.ast.Comment> preComments) - Overrides:
set_PreCommentListin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
set_PreComment
public ASTFormalParameterListingBuilder set_PreComment(int index, de.monticore.ast.Comment precomment) - Overrides:
set_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
clear_PostComments
- Overrides:
clear_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
add_PostComment
public ASTFormalParameterListingBuilder add_PostComment(int index, de.monticore.ast.Comment postcomment) - Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
addAll_PostComments
public ASTFormalParameterListingBuilder addAll_PostComments(Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
addAll_PostComments
public ASTFormalParameterListingBuilder addAll_PostComments(int index, Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
removeAll_PostComments
- Overrides:
removeAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
retainAll_PostComments
- Overrides:
retainAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
removeIf_PostComment
public ASTFormalParameterListingBuilder removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) - Overrides:
removeIf_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
forEach_PostComments
public ASTFormalParameterListingBuilder forEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) - Overrides:
forEach_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
replaceAll_PostComments
public ASTFormalParameterListingBuilder replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) - Overrides:
replaceAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
sort_PostComments
public ASTFormalParameterListingBuilder sort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) - Overrides:
sort_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
set_PostCommentList
public ASTFormalParameterListingBuilder set_PostCommentList(List<de.monticore.ast.Comment> postComments) - Overrides:
set_PostCommentListin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
set_PostComment
public ASTFormalParameterListingBuilder set_PostComment(int index, de.monticore.ast.Comment postcomment) - Overrides:
set_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTFormalParameterListingBuilder>
-
uncheckedBuild
-