Class ASTTryStatement2Builder
java.lang.Object
de.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
de.monticore.statements.mcexceptionstatements._ast.ASTTryStatement2Builder
public class ASTTryStatement2Builder
extends de.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ASTCatchClause> protected ASTMCJavaBlockprotected ASTMCJavaBlockprotected ASTTryStatement2BuilderFields 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) addAllCatchClauses(int index, Collection<? extends ASTCatchClause> collection) addAllCatchClauses(Collection<? extends ASTCatchClause> collection) addCatchClause(int index, ASTCatchClause element) addCatchClause(ASTCatchClause element) build()booleancontainsAllCatchClauses(Collection<?> collection) booleancontainsCatchClause(Object element) booleanforEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) forEachCatchClauses(Consumer<? super ASTCatchClause> action) getCatchClause(int index) getCore()intintindexOfCatchClause(Object element) booleanbooleanisValid()intlastIndexOfCatchClause(Object element) listIteratorCatchClauses(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) removeAllCatchClauses(Collection<?> collection) removeCatchClause(int index) removeCatchClause(Object element) removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) removeIf_PreComment(Predicate<? super de.monticore.ast.Comment> filter) removeIfCatchClause(Predicate<? super ASTCatchClause> filter) replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) replaceAllCatchClauses(UnaryOperator<ASTCatchClause> operator) retainAll_PostComments(Collection<?> element) retainAll_PreComments(Collection<?> element) retainAllCatchClauses(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) setCatchClause(int index, ASTCatchClause element) setCatchClausesList(List<ASTCatchClause> catchClauses) setCore(ASTMCJavaBlock core) setFinally(ASTMCJavaBlock r__finally) intsort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) sortCatchClauses(Comparator<? super ASTCatchClause> comparator) subListCatchClauses(int start, int end) Object[]toArrayCatchClauses(ASTCatchClause[] 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
-
core
-
catchClauses
-
r__finally
-
-
Constructor Details
-
ASTTryStatement2Builder
public ASTTryStatement2Builder()
-
-
Method Details
-
build
-
isValid
public boolean isValid() -
getCore
-
containsCatchClause
-
containsAllCatchClauses
-
isEmptyCatchClauses
public boolean isEmptyCatchClauses() -
iteratorCatchClauses
-
sizeCatchClauses
public int sizeCatchClauses() -
toArrayCatchClauses
-
toArrayCatchClauses
-
spliteratorCatchClauses
-
streamCatchClauses
-
parallelStreamCatchClauses
-
getCatchClause
-
indexOfCatchClause
-
lastIndexOfCatchClause
-
equalsCatchClauses
-
hashCodeCatchClauses
public int hashCodeCatchClauses() -
listIteratorCatchClauses
-
listIteratorCatchClauses
-
subListCatchClauses
-
getCatchClauseList
-
getFinally
-
setCore
-
clearCatchClauses
-
addCatchClause
-
addAllCatchClauses
-
removeCatchClause
-
removeAllCatchClauses
-
retainAllCatchClauses
-
removeIfCatchClause
-
forEachCatchClauses
-
addCatchClause
-
addAllCatchClauses
public ASTTryStatement2Builder addAllCatchClauses(int index, Collection<? extends ASTCatchClause> collection) -
removeCatchClause
-
setCatchClause
-
replaceAllCatchClauses
-
sortCatchClauses
-
setCatchClausesList
-
setFinally
-
set_SourcePositionEnd
- Overrides:
set_SourcePositionEndin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
set_SourcePositionEndAbsent
- Overrides:
set_SourcePositionEndAbsentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
set_SourcePositionStart
- Overrides:
set_SourcePositionStartin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
set_SourcePositionStartAbsent
- Overrides:
set_SourcePositionStartAbsentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
clear_PreComments
- Overrides:
clear_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
addAll_PreComments
- Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
addAll_PreComments
public ASTTryStatement2Builder addAll_PreComments(int index, Collection<de.monticore.ast.Comment> precomments) - Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
removeAll_PreComments
- Overrides:
removeAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
retainAll_PreComments
- Overrides:
retainAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
removeIf_PreComment
public ASTTryStatement2Builder removeIf_PreComment(Predicate<? super de.monticore.ast.Comment> filter) - Overrides:
removeIf_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
forEach_PreComments
public ASTTryStatement2Builder forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) - Overrides:
forEach_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
replaceAll_PreComments
public ASTTryStatement2Builder replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) - Overrides:
replaceAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
sort_PreComments
public ASTTryStatement2Builder sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) - Overrides:
sort_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
set_PreCommentList
- Overrides:
set_PreCommentListin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
set_PreComment
- Overrides:
set_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
clear_PostComments
- Overrides:
clear_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
addAll_PostComments
public ASTTryStatement2Builder addAll_PostComments(Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
addAll_PostComments
public ASTTryStatement2Builder addAll_PostComments(int index, Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
removeAll_PostComments
- Overrides:
removeAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
retainAll_PostComments
- Overrides:
retainAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
removeIf_PostComment
public ASTTryStatement2Builder removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) - Overrides:
removeIf_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
forEach_PostComments
public ASTTryStatement2Builder forEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) - Overrides:
forEach_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
replaceAll_PostComments
public ASTTryStatement2Builder replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) - Overrides:
replaceAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
sort_PostComments
public ASTTryStatement2Builder sort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) - Overrides:
sort_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
set_PostCommentList
- Overrides:
set_PostCommentListin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
set_PostComment
- Overrides:
set_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement2Builder>
-
uncheckedBuild
-