Class ASTTryStatement2
- java.lang.Object
-
- de.monticore.ast.ASTCNode
-
- de.monticore.statements.mcexceptionstatements._ast.ASTTryStatement2
-
- All Implemented Interfaces:
de.monticore.ast.ASTNode,ASTMCExceptionStatementsNode,ASTMCBlockStatement,ASTMCStatement,ASTMCStatementsBasisNode,java.lang.Cloneable
public class ASTTryStatement2 extends de.monticore.ast.ASTCNode implements ASTMCStatement, ASTMCExceptionStatementsNode
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<ASTCatchClause>catchClausesprotected ASTMCJavaBlockcoreprotected IMCExceptionStatementsScopeenclosingScopeprotected ASTMCJavaBlockr__finally
-
Constructor Summary
Constructors Modifier Constructor Description protectedASTTryStatement2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ASTTryStatement2_construct()voidaccept(ExpressionsBasisTraverser visitor)Entry point for the Visitor pattern.voidaccept(MCLiteralsBasisTraverser visitor)Entry point for the Visitor pattern.voidaccept(MCBasicsTraverser visitor)Entry point for the Visitor pattern.voidaccept(MCCommonStatementsTraverser visitor)Entry point for the Visitor pattern.voidaccept(MCExceptionStatementsTraverser visitor)Entry point for the Visitor pattern.voidaccept(MCStatementsBasisTraverser visitor)Entry point for the Visitor pattern.voidaccept(MCVarDeclarationStatementsTraverser visitor)Entry point for the Visitor pattern.voidaccept(BasicSymbolsTraverser visitor)Entry point for the Visitor pattern.voidaccept(OOSymbolsTraverser visitor)Entry point for the Visitor pattern.voidaccept(MCBasicTypesTraverser visitor)Entry point for the Visitor pattern.voidaccept(de.monticore.visitor.ITraverser visitor)Entry point for the Visitor pattern.booleanaddAllCatchClauses(int index, java.util.Collection<? extends ASTCatchClause> collection)booleanaddAllCatchClauses(java.util.Collection<? extends ASTCatchClause> collection)voidaddCatchClause(int index, ASTCatchClause element)booleanaddCatchClause(ASTCatchClause element)voidclearCatchClauses()booleancontainsAllCatchClauses(java.util.Collection<?> collection)booleancontainsCatchClause(java.lang.Object element)ASTTryStatement2deepClone()ASTTryStatement2deepClone(ASTTryStatement2 result)booleandeepEquals(java.lang.Object o)booleandeepEquals(java.lang.Object o, boolean forceSameOrder)booleandeepEqualsWithComments(java.lang.Object o)booleandeepEqualsWithComments(java.lang.Object o, boolean forceSameOrder)booleanequalAttributes(java.lang.Object o)booleanequalsCatchClauses(java.lang.Object o)booleanequalsWithComments(java.lang.Object o)de.monticore.interpreter.Valueevaluate(de.monticore.interpreter.ModelInterpreter interpreter)de.monticore.interpreter.Valueevaluate(IMCExceptionStatementsInterpreter interpreter)voidforEachCatchClauses(java.util.function.Consumer<? super ASTCatchClause> action)ASTCatchClausegetCatchClause(int index)java.util.List<ASTCatchClause>getCatchClauseList()ASTMCJavaBlockgetCore()IMCExceptionStatementsScopegetEnclosingScope()ASTMCJavaBlockgetFinally()inthashCodeCatchClauses()intindexOfCatchClause(java.lang.Object element)booleanisEmptyCatchClauses()java.util.Iterator<ASTCatchClause>iteratorCatchClauses()intlastIndexOfCatchClause(java.lang.Object element)java.util.ListIterator<ASTCatchClause>listIteratorCatchClauses()java.util.ListIterator<ASTCatchClause>listIteratorCatchClauses(int index)java.util.stream.Stream<ASTCatchClause>parallelStreamCatchClauses()booleanremoveAllCatchClauses(java.util.Collection<?> collection)ASTCatchClauseremoveCatchClause(int index)booleanremoveCatchClause(java.lang.Object element)booleanremoveIfCatchClause(java.util.function.Predicate<? super ASTCatchClause> filter)voidreplaceAllCatchClauses(java.util.function.UnaryOperator<ASTCatchClause> operator)booleanretainAllCatchClauses(java.util.Collection<?> collection)ASTCatchClausesetCatchClause(int index, ASTCatchClause element)voidsetCatchClauseList(java.util.List<ASTCatchClause> catchClauses)voidsetCore(ASTMCJavaBlock core)voidsetEnclosingScope(IExpressionsBasisScope enclosingScope)voidsetEnclosingScope(IMCLiteralsBasisScope enclosingScope)voidsetEnclosingScope(IMCBasicsScope enclosingScope)voidsetEnclosingScope(IMCCommonStatementsScope enclosingScope)voidsetEnclosingScope(IMCExceptionStatementsScope enclosingScope)voidsetEnclosingScope(IMCStatementsBasisScope enclosingScope)voidsetEnclosingScope(IMCVarDeclarationStatementsScope enclosingScope)voidsetEnclosingScope(IBasicSymbolsScope enclosingScope)voidsetEnclosingScope(IOOSymbolsScope enclosingScope)voidsetEnclosingScope(IMCBasicTypesScope enclosingScope)voidsetFinally(ASTMCJavaBlock r__finally)intsizeCatchClauses()voidsortCatchClauses(java.util.Comparator<? super ASTCatchClause> comparator)java.util.Spliterator<ASTCatchClause>spliteratorCatchClauses()java.util.stream.Stream<ASTCatchClause>streamCatchClauses()java.util.List<ASTCatchClause>subListCatchClauses(int start, int end)java.lang.Object[]toArrayCatchClauses()ASTCatchClause[]toArrayCatchClauses(ASTCatchClause[] array)-
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
-
core
protected ASTMCJavaBlock core
-
catchClauses
protected java.util.List<ASTCatchClause> catchClauses
-
r__finally
protected 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 ASTTryStatement2 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 ASTTryStatement2 deepClone(ASTTryStatement2 result)
-
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()
-
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)
-
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 ASTTryStatement2 _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
-
-