Class ASTSwitchStatementBuilder
java.lang.Object
de.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
de.monticore.statements.mccommonstatements._ast.ASTSwitchStatementBuilder
public class ASTSwitchStatementBuilder
extends de.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ASTExpressionprotected ASTSwitchStatementBuilderprotected List<ASTSwitchBlockStatementGroup> protected List<ASTSwitchLabel> Fields 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) addAllSwitchBlockStatementGroups(int index, Collection<? extends ASTSwitchBlockStatementGroup> collection) addAllSwitchBlockStatementGroups(Collection<? extends ASTSwitchBlockStatementGroup> collection) addAllSwitchLabels(int index, Collection<? extends ASTSwitchLabel> collection) addAllSwitchLabels(Collection<? extends ASTSwitchLabel> collection) addSwitchBlockStatementGroup(int index, ASTSwitchBlockStatementGroup element) addSwitchLabel(int index, ASTSwitchLabel element) addSwitchLabel(ASTSwitchLabel element) build()booleancontainsAllSwitchBlockStatementGroups(Collection<?> collection) booleancontainsAllSwitchLabels(Collection<?> collection) booleancontainsSwitchBlockStatementGroup(Object element) booleancontainsSwitchLabel(Object element) booleanbooleanforEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) forEachSwitchBlockStatementGroups(Consumer<? super ASTSwitchBlockStatementGroup> action) forEachSwitchLabels(Consumer<? super ASTSwitchLabel> action) getSwitchBlockStatementGroup(int index) getSwitchLabel(int index) intintintindexOfSwitchBlockStatementGroup(Object element) intindexOfSwitchLabel(Object element) booleanbooleanbooleanisValid()intintlastIndexOfSwitchLabel(Object element) listIteratorSwitchBlockStatementGroups(int index) listIteratorSwitchLabels(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) removeAllSwitchBlockStatementGroups(Collection<?> collection) removeAllSwitchLabels(Collection<?> collection) removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) removeIf_PreComment(Predicate<? super de.monticore.ast.Comment> filter) removeIfSwitchBlockStatementGroup(Predicate<? super ASTSwitchBlockStatementGroup> filter) removeIfSwitchLabel(Predicate<? super ASTSwitchLabel> filter) removeSwitchBlockStatementGroup(int index) removeSwitchBlockStatementGroup(Object element) removeSwitchLabel(int index) removeSwitchLabel(Object element) replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAllSwitchLabels(UnaryOperator<ASTSwitchLabel> operator) retainAll_PostComments(Collection<?> element) retainAll_PreComments(Collection<?> element) retainAllSwitchBlockStatementGroups(Collection<?> collection) retainAllSwitchLabels(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) setExpression(ASTExpression expression) setSwitchBlockStatementGroup(int index, ASTSwitchBlockStatementGroup element) setSwitchBlockStatementGroupsList(List<ASTSwitchBlockStatementGroup> switchBlockStatementGroups) setSwitchLabel(int index, ASTSwitchLabel element) setSwitchLabelsList(List<ASTSwitchLabel> switchLabels) intintsort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) sortSwitchBlockStatementGroups(Comparator<? super ASTSwitchBlockStatementGroup> comparator) sortSwitchLabels(Comparator<? super ASTSwitchLabel> comparator) subListSwitchBlockStatementGroups(int start, int end) subListSwitchLabels(int start, int end) Object[]Object[]toArraySwitchLabels(ASTSwitchLabel[] array) 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
-
expression
-
switchBlockStatementGroups
-
switchLabels
-
-
Constructor Details
-
ASTSwitchStatementBuilder
public ASTSwitchStatementBuilder()
-
-
Method Details
-
build
-
isValid
public boolean isValid() -
getExpression
-
containsSwitchBlockStatementGroup
-
containsAllSwitchBlockStatementGroups
-
isEmptySwitchBlockStatementGroups
public boolean isEmptySwitchBlockStatementGroups() -
iteratorSwitchBlockStatementGroups
-
sizeSwitchBlockStatementGroups
public int sizeSwitchBlockStatementGroups() -
toArraySwitchBlockStatementGroups
public ASTSwitchBlockStatementGroup[] toArraySwitchBlockStatementGroups(ASTSwitchBlockStatementGroup[] array) -
toArraySwitchBlockStatementGroups
-
spliteratorSwitchBlockStatementGroups
-
streamSwitchBlockStatementGroups
-
parallelStreamSwitchBlockStatementGroups
-
getSwitchBlockStatementGroup
-
indexOfSwitchBlockStatementGroup
-
lastIndexOfSwitchBlockStatementGroup
-
equalsSwitchBlockStatementGroups
-
hashCodeSwitchBlockStatementGroups
public int hashCodeSwitchBlockStatementGroups() -
listIteratorSwitchBlockStatementGroups
-
listIteratorSwitchBlockStatementGroups
-
subListSwitchBlockStatementGroups
-
getSwitchBlockStatementGroupList
-
containsSwitchLabel
-
containsAllSwitchLabels
-
isEmptySwitchLabels
public boolean isEmptySwitchLabels() -
iteratorSwitchLabels
-
sizeSwitchLabels
public int sizeSwitchLabels() -
toArraySwitchLabels
-
toArraySwitchLabels
-
spliteratorSwitchLabels
-
streamSwitchLabels
-
parallelStreamSwitchLabels
-
getSwitchLabel
-
indexOfSwitchLabel
-
lastIndexOfSwitchLabel
-
equalsSwitchLabels
-
hashCodeSwitchLabels
public int hashCodeSwitchLabels() -
listIteratorSwitchLabels
-
listIteratorSwitchLabels
-
subListSwitchLabels
-
getSwitchLabelList
-
setExpression
-
clearSwitchBlockStatementGroups
-
addSwitchBlockStatementGroup
-
addAllSwitchBlockStatementGroups
public ASTSwitchStatementBuilder addAllSwitchBlockStatementGroups(Collection<? extends ASTSwitchBlockStatementGroup> collection) -
removeSwitchBlockStatementGroup
-
removeAllSwitchBlockStatementGroups
-
retainAllSwitchBlockStatementGroups
-
removeIfSwitchBlockStatementGroup
public ASTSwitchStatementBuilder removeIfSwitchBlockStatementGroup(Predicate<? super ASTSwitchBlockStatementGroup> filter) -
forEachSwitchBlockStatementGroups
public ASTSwitchStatementBuilder forEachSwitchBlockStatementGroups(Consumer<? super ASTSwitchBlockStatementGroup> action) -
addSwitchBlockStatementGroup
public ASTSwitchStatementBuilder addSwitchBlockStatementGroup(int index, ASTSwitchBlockStatementGroup element) -
addAllSwitchBlockStatementGroups
public ASTSwitchStatementBuilder addAllSwitchBlockStatementGroups(int index, Collection<? extends ASTSwitchBlockStatementGroup> collection) -
removeSwitchBlockStatementGroup
-
setSwitchBlockStatementGroup
public ASTSwitchStatementBuilder setSwitchBlockStatementGroup(int index, ASTSwitchBlockStatementGroup element) -
replaceAllSwitchBlockStatementGroups
public ASTSwitchStatementBuilder replaceAllSwitchBlockStatementGroups(UnaryOperator<ASTSwitchBlockStatementGroup> operator) -
sortSwitchBlockStatementGroups
public ASTSwitchStatementBuilder sortSwitchBlockStatementGroups(Comparator<? super ASTSwitchBlockStatementGroup> comparator) -
setSwitchBlockStatementGroupsList
public ASTSwitchStatementBuilder setSwitchBlockStatementGroupsList(List<ASTSwitchBlockStatementGroup> switchBlockStatementGroups) -
clearSwitchLabels
-
addSwitchLabel
-
addAllSwitchLabels
public ASTSwitchStatementBuilder addAllSwitchLabels(Collection<? extends ASTSwitchLabel> collection) -
removeSwitchLabel
-
removeAllSwitchLabels
-
retainAllSwitchLabels
-
removeIfSwitchLabel
-
forEachSwitchLabels
-
addSwitchLabel
-
addAllSwitchLabels
public ASTSwitchStatementBuilder addAllSwitchLabels(int index, Collection<? extends ASTSwitchLabel> collection) -
removeSwitchLabel
-
setSwitchLabel
-
replaceAllSwitchLabels
-
sortSwitchLabels
-
setSwitchLabelsList
-
set_SourcePositionEnd
- Overrides:
set_SourcePositionEndin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
set_SourcePositionEndAbsent
- Overrides:
set_SourcePositionEndAbsentin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
set_SourcePositionStart
- Overrides:
set_SourcePositionStartin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
set_SourcePositionStartAbsent
- Overrides:
set_SourcePositionStartAbsentin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
clear_PreComments
- Overrides:
clear_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
addAll_PreComments
public ASTSwitchStatementBuilder addAll_PreComments(Collection<de.monticore.ast.Comment> precomments) - Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
addAll_PreComments
public ASTSwitchStatementBuilder addAll_PreComments(int index, Collection<de.monticore.ast.Comment> precomments) - Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
removeAll_PreComments
- Overrides:
removeAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
retainAll_PreComments
- Overrides:
retainAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
removeIf_PreComment
public ASTSwitchStatementBuilder removeIf_PreComment(Predicate<? super de.monticore.ast.Comment> filter) - Overrides:
removeIf_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
forEach_PreComments
public ASTSwitchStatementBuilder forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) - Overrides:
forEach_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
replaceAll_PreComments
public ASTSwitchStatementBuilder replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) - Overrides:
replaceAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
sort_PreComments
public ASTSwitchStatementBuilder sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) - Overrides:
sort_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
set_PreCommentList
- Overrides:
set_PreCommentListin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
set_PreComment
- Overrides:
set_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
clear_PostComments
- Overrides:
clear_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
addAll_PostComments
public ASTSwitchStatementBuilder addAll_PostComments(Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
addAll_PostComments
public ASTSwitchStatementBuilder addAll_PostComments(int index, Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
removeAll_PostComments
- Overrides:
removeAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
retainAll_PostComments
- Overrides:
retainAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
removeIf_PostComment
public ASTSwitchStatementBuilder removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) - Overrides:
removeIf_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
forEach_PostComments
public ASTSwitchStatementBuilder forEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) - Overrides:
forEach_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
replaceAll_PostComments
public ASTSwitchStatementBuilder replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) - Overrides:
replaceAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
sort_PostComments
public ASTSwitchStatementBuilder sort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) - Overrides:
sort_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
set_PostCommentList
- Overrides:
set_PostCommentListin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
set_PostComment
- Overrides:
set_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTSwitchStatementBuilder>
-
uncheckedBuild
-