Class ASTTryStatement3Builder
java.lang.Object
de.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
de.monticore.statements.mcexceptionstatements._ast.ASTTryStatement3Builder
public class ASTTryStatement3Builder
extends de.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ASTCatchClause> protected ASTMCJavaBlockprotected Optional<ASTMCJavaBlock> protected ASTTryStatement3Builderprotected List<ASTTryLocalVariableDeclaration> 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) addAllCatchClauses(int index, Collection<? extends ASTCatchClause> collection) addAllCatchClauses(Collection<? extends ASTCatchClause> collection) addAllTryLocalVariableDeclarations(int index, Collection<? extends ASTTryLocalVariableDeclaration> collection) addAllTryLocalVariableDeclarations(Collection<? extends ASTTryLocalVariableDeclaration> collection) addCatchClause(int index, ASTCatchClause element) addCatchClause(ASTCatchClause element) addTryLocalVariableDeclaration(int index, ASTTryLocalVariableDeclaration element) build()booleancontainsAllCatchClauses(Collection<?> collection) booleancontainsAllTryLocalVariableDeclarations(Collection<?> collection) booleancontainsCatchClause(Object element) booleanbooleanbooleanforEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) forEachCatchClauses(Consumer<? super ASTCatchClause> action) forEachTryLocalVariableDeclarations(Consumer<? super ASTTryLocalVariableDeclaration> action) getCatchClause(int index) getCore()getTryLocalVariableDeclaration(int index) intintintindexOfCatchClause(Object element) intindexOfTryLocalVariableDeclaration(Object element) booleanbooleanbooleanbooleanisValid()intlastIndexOfCatchClause(Object element) intlistIteratorCatchClauses(int index) listIteratorTryLocalVariableDeclarations(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) removeAllTryLocalVariableDeclarations(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) removeIfTryLocalVariableDeclaration(Predicate<? super ASTTryLocalVariableDeclaration> filter) removeTryLocalVariableDeclaration(int index) removeTryLocalVariableDeclaration(Object element) 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) retainAllTryLocalVariableDeclarations(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) setTryLocalVariableDeclaration(int index, ASTTryLocalVariableDeclaration element) setTryLocalVariableDeclarationsList(List<ASTTryLocalVariableDeclaration> tryLocalVariableDeclarations) intintsort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) sortCatchClauses(Comparator<? super ASTCatchClause> comparator) sortTryLocalVariableDeclarations(Comparator<? super ASTTryLocalVariableDeclaration> comparator) subListCatchClauses(int start, int end) subListTryLocalVariableDeclarations(int start, int end) Object[]toArrayCatchClauses(ASTCatchClause[] array) 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
-
tryLocalVariableDeclarations
-
core
-
catchClauses
-
r__finally
-
-
Constructor Details
-
ASTTryStatement3Builder
public ASTTryStatement3Builder()
-
-
Method Details
-
build
-
isValid
public boolean isValid() -
containsTryLocalVariableDeclaration
-
containsAllTryLocalVariableDeclarations
-
isEmptyTryLocalVariableDeclarations
public boolean isEmptyTryLocalVariableDeclarations() -
iteratorTryLocalVariableDeclarations
-
sizeTryLocalVariableDeclarations
public int sizeTryLocalVariableDeclarations() -
toArrayTryLocalVariableDeclarations
public ASTTryLocalVariableDeclaration[] toArrayTryLocalVariableDeclarations(ASTTryLocalVariableDeclaration[] array) -
toArrayTryLocalVariableDeclarations
-
spliteratorTryLocalVariableDeclarations
-
streamTryLocalVariableDeclarations
-
parallelStreamTryLocalVariableDeclarations
-
getTryLocalVariableDeclaration
-
indexOfTryLocalVariableDeclaration
-
lastIndexOfTryLocalVariableDeclaration
-
equalsTryLocalVariableDeclarations
-
hashCodeTryLocalVariableDeclarations
public int hashCodeTryLocalVariableDeclarations() -
listIteratorTryLocalVariableDeclarations
-
listIteratorTryLocalVariableDeclarations
public ListIterator<ASTTryLocalVariableDeclaration> listIteratorTryLocalVariableDeclarations(int index) -
subListTryLocalVariableDeclarations
-
getTryLocalVariableDeclarationList
-
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
-
isPresentFinally
public boolean isPresentFinally() -
clearTryLocalVariableDeclarations
-
addTryLocalVariableDeclaration
public ASTTryStatement3Builder addTryLocalVariableDeclaration(ASTTryLocalVariableDeclaration element) -
addAllTryLocalVariableDeclarations
public ASTTryStatement3Builder addAllTryLocalVariableDeclarations(Collection<? extends ASTTryLocalVariableDeclaration> collection) -
removeTryLocalVariableDeclaration
-
removeAllTryLocalVariableDeclarations
-
retainAllTryLocalVariableDeclarations
-
removeIfTryLocalVariableDeclaration
public ASTTryStatement3Builder removeIfTryLocalVariableDeclaration(Predicate<? super ASTTryLocalVariableDeclaration> filter) -
forEachTryLocalVariableDeclarations
public ASTTryStatement3Builder forEachTryLocalVariableDeclarations(Consumer<? super ASTTryLocalVariableDeclaration> action) -
addTryLocalVariableDeclaration
public ASTTryStatement3Builder addTryLocalVariableDeclaration(int index, ASTTryLocalVariableDeclaration element) -
addAllTryLocalVariableDeclarations
public ASTTryStatement3Builder addAllTryLocalVariableDeclarations(int index, Collection<? extends ASTTryLocalVariableDeclaration> collection) -
removeTryLocalVariableDeclaration
-
setTryLocalVariableDeclaration
public ASTTryStatement3Builder setTryLocalVariableDeclaration(int index, ASTTryLocalVariableDeclaration element) -
replaceAllTryLocalVariableDeclarations
public ASTTryStatement3Builder replaceAllTryLocalVariableDeclarations(UnaryOperator<ASTTryLocalVariableDeclaration> operator) -
sortTryLocalVariableDeclarations
public ASTTryStatement3Builder sortTryLocalVariableDeclarations(Comparator<? super ASTTryLocalVariableDeclaration> comparator) -
setTryLocalVariableDeclarationsList
public ASTTryStatement3Builder setTryLocalVariableDeclarationsList(List<ASTTryLocalVariableDeclaration> tryLocalVariableDeclarations) -
setCore
-
clearCatchClauses
-
addCatchClause
-
addAllCatchClauses
-
removeCatchClause
-
removeAllCatchClauses
-
retainAllCatchClauses
-
removeIfCatchClause
-
forEachCatchClauses
-
addCatchClause
-
addAllCatchClauses
public ASTTryStatement3Builder addAllCatchClauses(int index, Collection<? extends ASTCatchClause> collection) -
removeCatchClause
-
setCatchClause
-
replaceAllCatchClauses
-
sortCatchClauses
-
setCatchClausesList
-
setFinally
-
setFinallyAbsent
-
set_SourcePositionEnd
- Overrides:
set_SourcePositionEndin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
set_SourcePositionEndAbsent
- Overrides:
set_SourcePositionEndAbsentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
set_SourcePositionStart
- Overrides:
set_SourcePositionStartin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
set_SourcePositionStartAbsent
- Overrides:
set_SourcePositionStartAbsentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
clear_PreComments
- Overrides:
clear_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
add_PreComment
- Overrides:
add_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
addAll_PreComments
- Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
addAll_PreComments
public ASTTryStatement3Builder addAll_PreComments(int index, Collection<de.monticore.ast.Comment> precomments) - Overrides:
addAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
remove_PreComment
- Overrides:
remove_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
removeAll_PreComments
- Overrides:
removeAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
retainAll_PreComments
- Overrides:
retainAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
removeIf_PreComment
public ASTTryStatement3Builder removeIf_PreComment(Predicate<? super de.monticore.ast.Comment> filter) - Overrides:
removeIf_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
forEach_PreComments
public ASTTryStatement3Builder forEach_PreComments(Consumer<? super de.monticore.ast.Comment> action) - Overrides:
forEach_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
replaceAll_PreComments
public ASTTryStatement3Builder replaceAll_PreComments(UnaryOperator<de.monticore.ast.Comment> operator) - Overrides:
replaceAll_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
sort_PreComments
public ASTTryStatement3Builder sort_PreComments(Comparator<? super de.monticore.ast.Comment> comparator) - Overrides:
sort_PreCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
set_PreCommentList
- Overrides:
set_PreCommentListin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
set_PreComment
- Overrides:
set_PreCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
clear_PostComments
- Overrides:
clear_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
add_PostComment
- Overrides:
add_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
addAll_PostComments
public ASTTryStatement3Builder addAll_PostComments(Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
addAll_PostComments
public ASTTryStatement3Builder addAll_PostComments(int index, Collection<de.monticore.ast.Comment> postcomments) - Overrides:
addAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
remove_PostComment
- Overrides:
remove_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
removeAll_PostComments
- Overrides:
removeAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
retainAll_PostComments
- Overrides:
retainAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
removeIf_PostComment
public ASTTryStatement3Builder removeIf_PostComment(Predicate<? super de.monticore.ast.Comment> filter) - Overrides:
removeIf_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
forEach_PostComments
public ASTTryStatement3Builder forEach_PostComments(Consumer<? super de.monticore.ast.Comment> action) - Overrides:
forEach_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
replaceAll_PostComments
public ASTTryStatement3Builder replaceAll_PostComments(UnaryOperator<de.monticore.ast.Comment> operator) - Overrides:
replaceAll_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
sort_PostComments
public ASTTryStatement3Builder sort_PostComments(Comparator<? super de.monticore.ast.Comment> comparator) - Overrides:
sort_PostCommentsin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
set_PostCommentList
- Overrides:
set_PostCommentListin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
set_PostComment
- Overrides:
set_PostCommentin classde.monticore.ast.ASTNodeBuilder<ASTTryStatement3Builder>
-
uncheckedBuild
-