Class ASTTryStatement3
- java.lang.Object
-
- de.monticore.ast.ASTCNode
-
- de.monticore.statements.mcexceptionstatements._ast.ASTTryStatement3
-
- All Implemented Interfaces:
de.monticore.ast.ASTNode,ASTMCExceptionStatementsNode,ASTMCBlockStatement,ASTMCStatement,ASTMCStatementsBasisNode,java.lang.Cloneable
public class ASTTryStatement3 extends de.monticore.ast.ASTCNode implements ASTMCStatement, ASTMCExceptionStatementsNode
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<ASTCatchClause>catchClausesprotected ASTMCJavaBlockcoreprotected IMCExceptionStatementsScopeenclosingScopeprotected java.util.Optional<ASTMCJavaBlock>r__finallyprotected java.util.List<ASTTryLocalVariableDeclaration>tryLocalVariableDeclarations
-
Constructor Summary
Constructors Modifier Constructor Description protectedASTTryStatement3()
-
Method Summary
-
Methods inherited from class de.monticore.ast.ASTCNode
add_PostComment, add_PostComment, add_PreComment, add_PreComment, addAll_PostComments, addAll_PostComments, addAll_PreComments, addAll_PreComments, clear_PostComments, clear_PreComments, contains_PostComment, contains_PreComment, containsAll_PostComments, containsAll_PreComments, equals_PostComments, equals_PreComments, forEach_PostComments, forEach_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, remove_PostComment, remove_PostComment, remove_PreComment, remove_PreComment, removeAll_PostComments, removeAll_PreComments, removeIf_PostComment, removeIf_PreComment, replaceAll_PostComments, replaceAll_PreComments, retainAll_PostComments, retainAll_PreComments, set_PostComment, set_PostCommentList, set_PreComment, set_PreCommentList, set_SourcePositionEnd, set_SourcePositionEndAbsent, set_SourcePositionStart, set_SourcePositionStartAbsent, size_PostComments, size_PreComments, sort_PostComments, sort_PreComments, spliterator_PostComments, spliterator_PreComments, stream_PostComments, stream_PreComments, subList_PostComments, subList_PreComments, toArray_PostComments, toArray_PostComments, toArray_PreComments, toArray_PreComments
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.monticore.ast.ASTNode
add_PostComment, add_PostComment, add_PreComment, add_PreComment, addAll_PostComments, addAll_PostComments, addAll_PreComments, addAll_PreComments, clear_PostComments, clear_PreComments, contains_PostComment, contains_PreComment, containsAll_PostComments, containsAll_PreComments, equals_PostComments, equals_PreComments, forEach_PostComments, forEach_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, remove_PostComment, remove_PostComment, remove_PreComment, remove_PreComment, removeAll_PostComments, removeAll_PreComments, removeIf_PostComment, removeIf_PreComment, replaceAll_PostComments, replaceAll_PreComments, retainAll_PostComments, retainAll_PreComments, set_PostComment, set_PostCommentList, set_PreComment, set_PreCommentList, set_SourcePositionEnd, set_SourcePositionEndAbsent, set_SourcePositionStart, set_SourcePositionStartAbsent, size_PostComments, size_PreComments, sort_PostComments, sort_PreComments, spliterator_PostComments, spliterator_PreComments, stream_PostComments, stream_PreComments, subList_PostComments, subList_PreComments, toArray_PostComments, toArray_PostComments, toArray_PreComments, toArray_PreComments
-
-
-
-
Field Detail
-
tryLocalVariableDeclarations
protected java.util.List<ASTTryLocalVariableDeclaration> tryLocalVariableDeclarations
-
core
protected ASTMCJavaBlock core
-
catchClauses
protected java.util.List<ASTCatchClause> catchClauses
-
r__finally
protected java.util.Optional<ASTMCJavaBlock> r__finally
-
enclosingScope
protected IMCExceptionStatementsScope enclosingScope
-
-
Method Detail
-
deepEquals
public boolean deepEquals(java.lang.Object o)
- Specified by:
deepEqualsin interfaceASTMCBlockStatement- Specified by:
deepEqualsin interfaceASTMCStatement- Specified by:
deepEqualsin interfacede.monticore.ast.ASTNode
-
deepEquals
public boolean deepEquals(java.lang.Object o, boolean forceSameOrder)- Specified by:
deepEqualsin interfaceASTMCBlockStatement- Specified by:
deepEqualsin interfaceASTMCStatement- Specified by:
deepEqualsin interfacede.monticore.ast.ASTNode
-
deepEqualsWithComments
public boolean deepEqualsWithComments(java.lang.Object o)
- Specified by:
deepEqualsWithCommentsin interfaceASTMCBlockStatement- Specified by:
deepEqualsWithCommentsin interfaceASTMCStatement- Specified by:
deepEqualsWithCommentsin interfacede.monticore.ast.ASTNode
-
deepEqualsWithComments
public boolean deepEqualsWithComments(java.lang.Object o, boolean forceSameOrder)- Specified by:
deepEqualsWithCommentsin interfaceASTMCBlockStatement- Specified by:
deepEqualsWithCommentsin interfaceASTMCStatement- Specified by:
deepEqualsWithCommentsin interfacede.monticore.ast.ASTNode
-
equalAttributes
public boolean equalAttributes(java.lang.Object o)
- Specified by:
equalAttributesin interfaceASTMCBlockStatement- Specified by:
equalAttributesin interfaceASTMCStatement- Specified by:
equalAttributesin interfacede.monticore.ast.ASTNode
-
equalsWithComments
public boolean equalsWithComments(java.lang.Object o)
- Specified by:
equalsWithCommentsin interfaceASTMCBlockStatement- Specified by:
equalsWithCommentsin interfaceASTMCStatement- Specified by:
equalsWithCommentsin interfacede.monticore.ast.ASTNode
-
deepClone
public ASTTryStatement3 deepClone()
- Specified by:
deepClonein interfaceASTMCBlockStatement- Specified by:
deepClonein interfaceASTMCStatement- Specified by:
deepClonein interfacede.monticore.ast.ASTNode- Specified by:
deepClonein classde.monticore.ast.ASTCNode
-
deepClone
public ASTTryStatement3 deepClone(ASTTryStatement3 result)
-
containsTryLocalVariableDeclaration
public boolean containsTryLocalVariableDeclaration(java.lang.Object element)
-
containsAllTryLocalVariableDeclarations
public boolean containsAllTryLocalVariableDeclarations(java.util.Collection<?> collection)
-
isEmptyTryLocalVariableDeclarations
public boolean isEmptyTryLocalVariableDeclarations()
-
iteratorTryLocalVariableDeclarations
public java.util.Iterator<ASTTryLocalVariableDeclaration> iteratorTryLocalVariableDeclarations()
-
sizeTryLocalVariableDeclarations
public int sizeTryLocalVariableDeclarations()
-
toArrayTryLocalVariableDeclarations
public ASTTryLocalVariableDeclaration[] toArrayTryLocalVariableDeclarations(ASTTryLocalVariableDeclaration[] array)
-
toArrayTryLocalVariableDeclarations
public java.lang.Object[] toArrayTryLocalVariableDeclarations()
-
spliteratorTryLocalVariableDeclarations
public java.util.Spliterator<ASTTryLocalVariableDeclaration> spliteratorTryLocalVariableDeclarations()
-
streamTryLocalVariableDeclarations
public java.util.stream.Stream<ASTTryLocalVariableDeclaration> streamTryLocalVariableDeclarations()
-
parallelStreamTryLocalVariableDeclarations
public java.util.stream.Stream<ASTTryLocalVariableDeclaration> parallelStreamTryLocalVariableDeclarations()
-
getTryLocalVariableDeclaration
public ASTTryLocalVariableDeclaration getTryLocalVariableDeclaration(int index)
-
indexOfTryLocalVariableDeclaration
public int indexOfTryLocalVariableDeclaration(java.lang.Object element)
-
lastIndexOfTryLocalVariableDeclaration
public int lastIndexOfTryLocalVariableDeclaration(java.lang.Object element)
-
equalsTryLocalVariableDeclarations
public boolean equalsTryLocalVariableDeclarations(java.lang.Object o)
-
hashCodeTryLocalVariableDeclarations
public int hashCodeTryLocalVariableDeclarations()
-
listIteratorTryLocalVariableDeclarations
public java.util.ListIterator<ASTTryLocalVariableDeclaration> listIteratorTryLocalVariableDeclarations()
-
listIteratorTryLocalVariableDeclarations
public java.util.ListIterator<ASTTryLocalVariableDeclaration> listIteratorTryLocalVariableDeclarations(int index)
-
subListTryLocalVariableDeclarations
public java.util.List<ASTTryLocalVariableDeclaration> subListTryLocalVariableDeclarations(int start, int end)
-
getTryLocalVariableDeclarationList
public java.util.List<ASTTryLocalVariableDeclaration> getTryLocalVariableDeclarationList()
-
getCore
public ASTMCJavaBlock getCore()
-
containsCatchClause
public boolean containsCatchClause(java.lang.Object element)
-
containsAllCatchClauses
public boolean containsAllCatchClauses(java.util.Collection<?> collection)
-
isEmptyCatchClauses
public boolean isEmptyCatchClauses()
-
iteratorCatchClauses
public java.util.Iterator<ASTCatchClause> iteratorCatchClauses()
-
sizeCatchClauses
public int sizeCatchClauses()
-
toArrayCatchClauses
public ASTCatchClause[] toArrayCatchClauses(ASTCatchClause[] array)
-
toArrayCatchClauses
public java.lang.Object[] toArrayCatchClauses()
-
spliteratorCatchClauses
public java.util.Spliterator<ASTCatchClause> spliteratorCatchClauses()
-
streamCatchClauses
public java.util.stream.Stream<ASTCatchClause> streamCatchClauses()
-
parallelStreamCatchClauses
public java.util.stream.Stream<ASTCatchClause> parallelStreamCatchClauses()
-
getCatchClause
public ASTCatchClause getCatchClause(int index)
-
indexOfCatchClause
public int indexOfCatchClause(java.lang.Object element)
-
lastIndexOfCatchClause
public int lastIndexOfCatchClause(java.lang.Object element)
-
equalsCatchClauses
public boolean equalsCatchClauses(java.lang.Object o)
-
hashCodeCatchClauses
public int hashCodeCatchClauses()
-
listIteratorCatchClauses
public java.util.ListIterator<ASTCatchClause> listIteratorCatchClauses()
-
listIteratorCatchClauses
public java.util.ListIterator<ASTCatchClause> listIteratorCatchClauses(int index)
-
subListCatchClauses
public java.util.List<ASTCatchClause> subListCatchClauses(int start, int end)
-
getCatchClauseList
public java.util.List<ASTCatchClause> getCatchClauseList()
-
getFinally
public ASTMCJavaBlock getFinally()
-
isPresentFinally
public boolean isPresentFinally()
-
clearTryLocalVariableDeclarations
public void clearTryLocalVariableDeclarations()
-
addTryLocalVariableDeclaration
public boolean addTryLocalVariableDeclaration(ASTTryLocalVariableDeclaration element)
-
addAllTryLocalVariableDeclarations
public boolean addAllTryLocalVariableDeclarations(java.util.Collection<? extends ASTTryLocalVariableDeclaration> collection)
-
removeTryLocalVariableDeclaration
public boolean removeTryLocalVariableDeclaration(java.lang.Object element)
-
removeAllTryLocalVariableDeclarations
public boolean removeAllTryLocalVariableDeclarations(java.util.Collection<?> collection)
-
retainAllTryLocalVariableDeclarations
public boolean retainAllTryLocalVariableDeclarations(java.util.Collection<?> collection)
-
removeIfTryLocalVariableDeclaration
public boolean removeIfTryLocalVariableDeclaration(java.util.function.Predicate<? super ASTTryLocalVariableDeclaration> filter)
-
forEachTryLocalVariableDeclarations
public void forEachTryLocalVariableDeclarations(java.util.function.Consumer<? super ASTTryLocalVariableDeclaration> action)
-
addTryLocalVariableDeclaration
public void addTryLocalVariableDeclaration(int index, ASTTryLocalVariableDeclaration element)
-
addAllTryLocalVariableDeclarations
public boolean addAllTryLocalVariableDeclarations(int index, java.util.Collection<? extends ASTTryLocalVariableDeclaration> collection)
-
removeTryLocalVariableDeclaration
public ASTTryLocalVariableDeclaration removeTryLocalVariableDeclaration(int index)
-
setTryLocalVariableDeclaration
public ASTTryLocalVariableDeclaration setTryLocalVariableDeclaration(int index, ASTTryLocalVariableDeclaration element)
-
replaceAllTryLocalVariableDeclarations
public void replaceAllTryLocalVariableDeclarations(java.util.function.UnaryOperator<ASTTryLocalVariableDeclaration> operator)
-
sortTryLocalVariableDeclarations
public void sortTryLocalVariableDeclarations(java.util.Comparator<? super ASTTryLocalVariableDeclaration> comparator)
-
setTryLocalVariableDeclarationList
public void setTryLocalVariableDeclarationList(java.util.List<ASTTryLocalVariableDeclaration> tryLocalVariableDeclarations)
-
setCore
public void setCore(ASTMCJavaBlock core)
-
clearCatchClauses
public void clearCatchClauses()
-
addCatchClause
public boolean addCatchClause(ASTCatchClause element)
-
addAllCatchClauses
public boolean addAllCatchClauses(java.util.Collection<? extends ASTCatchClause> collection)
-
removeCatchClause
public boolean removeCatchClause(java.lang.Object element)
-
removeAllCatchClauses
public boolean removeAllCatchClauses(java.util.Collection<?> collection)
-
retainAllCatchClauses
public boolean retainAllCatchClauses(java.util.Collection<?> collection)
-
removeIfCatchClause
public boolean removeIfCatchClause(java.util.function.Predicate<? super ASTCatchClause> filter)
-
forEachCatchClauses
public void forEachCatchClauses(java.util.function.Consumer<? super ASTCatchClause> action)
-
addCatchClause
public void addCatchClause(int index, ASTCatchClause element)
-
addAllCatchClauses
public boolean addAllCatchClauses(int index, java.util.Collection<? extends ASTCatchClause> collection)
-
removeCatchClause
public ASTCatchClause removeCatchClause(int index)
-
setCatchClause
public ASTCatchClause setCatchClause(int index, ASTCatchClause element)
-
replaceAllCatchClauses
public void replaceAllCatchClauses(java.util.function.UnaryOperator<ASTCatchClause> operator)
-
sortCatchClauses
public void sortCatchClauses(java.util.Comparator<? super ASTCatchClause> comparator)
-
setCatchClauseList
public void setCatchClauseList(java.util.List<ASTCatchClause> catchClauses)
-
setFinally
public void setFinally(ASTMCJavaBlock r__finally)
-
setFinallyAbsent
public void setFinallyAbsent()
-
accept
public void accept(MCExceptionStatementsTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Specified by:
acceptin interfaceASTMCExceptionStatementsNode- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(MCCommonStatementsTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(MCVarDeclarationStatementsTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(MCStatementsBasisTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Specified by:
acceptin interfaceASTMCStatementsBasisNode- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(MCBasicTypesTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(ExpressionsBasisTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(OOSymbolsTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(MCBasicsTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(MCLiteralsBasisTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(BasicSymbolsTraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Parameters:
visitor- the visitor to dispatch to
-
accept
public void accept(de.monticore.visitor.ITraverser visitor)
Entry point for the Visitor pattern. Cf. MontiCore handbook chapter 8.- Specified by:
acceptin interfacede.monticore.ast.ASTNode- Parameters:
visitor- the visitor to dispatch to
-
_construct
protected ASTTryStatement3 _construct()
-
getEnclosingScope
public IMCExceptionStatementsScope getEnclosingScope()
- Specified by:
getEnclosingScopein interfaceASTMCBlockStatement- Specified by:
getEnclosingScopein interfaceASTMCStatement- Specified by:
getEnclosingScopein interfacede.monticore.ast.ASTNode
-
setEnclosingScope
public void setEnclosingScope(IMCExceptionStatementsScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCCommonStatementsScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCVarDeclarationStatementsScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCStatementsBasisScope enclosingScope)
- Specified by:
setEnclosingScopein interfaceASTMCBlockStatement- Specified by:
setEnclosingScopein interfaceASTMCStatement
-
setEnclosingScope
public void setEnclosingScope(IMCBasicTypesScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IExpressionsBasisScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IOOSymbolsScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCBasicsScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IMCLiteralsBasisScope enclosingScope)
-
setEnclosingScope
public void setEnclosingScope(IBasicSymbolsScope enclosingScope)
-
evaluate
public de.monticore.interpreter.Value evaluate(IMCExceptionStatementsInterpreter interpreter)
-
evaluate
public de.monticore.interpreter.Value evaluate(de.monticore.interpreter.ModelInterpreter interpreter)
- Specified by:
evaluatein interfacede.monticore.ast.ASTNode
-
-