public class Finally extends BranchImp
| Modifier and Type | Field and Description | 
|---|---|
protected StatementBlock | 
body
Body. 
 | 
| Constructor and Description | 
|---|
Finally()
Finally. 
 | 
Finally(ExtList children)
Constructor for the transformation of COMPOST ASTs to KeY. 
 | 
Finally(StatementBlock body)
Finally. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Statement | 
getBody()
Get body. 
 | 
ProgramElement | 
getChildAt(int index)
Returns the child at the specified index in this node's "virtual"
      child array 
 | 
int | 
getChildCount()
Returns the number of children of this node. 
 | 
SourceElement | 
getLastElement()
Finds the source element that occurs last in the source. 
 | 
Statement | 
getStatementAt(int index)  | 
int | 
getStatementCount()
Get the number of statements in this container. 
 | 
void | 
prettyPrint(PrettyPrinter p)
Pretty printing the source element. 
 | 
void | 
visit(Visitor v)
calls the corresponding method of a visitor in order to
 perform some action/transformation on this element 
 | 
compatibleBlockSize, computeHashCode, equals, equalsModRenaming, getArrayPos, match, matchChildrengetComments, hashCode, prettyPrintMain, reuseSignaturegetEndPosition, getFirstElement, getFirstElementIncludingBlocks, getParentClass, getPositionInfo, getRelativePosition, getStartPosition, setParentClass, toSource, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetComments, matchequalsModRenaming, getEndPosition, getFirstElement, getFirstElementIncludingBlocks, getPositionInfo, getRelativePosition, getStartPositionprotected StatementBlock body
public Finally()
public Finally(StatementBlock body)
body - a statement.public Finally(ExtList children)
children - the children of this AST element as KeY classes.
 May contain: a Body (as body of the Finally), Commentspublic int getChildCount()
public ProgramElement getChildAt(int index)
index - an index into this node's "virtual" child arrayjava.lang.ArrayIndexOutOfBoundsException - if index is out
                 of boundspublic int getStatementCount()
public Statement getStatementAt(int index)
public Statement getBody()
public SourceElement getLastElement()
JavaSourceElementgetLastElement in interface SourceElementgetLastElement in class JavaSourceElementJavaSourceElement.toSource(), 
JavaSourceElement.getEndPosition()public void visit(Visitor v)
v - the Visitorpublic void prettyPrint(PrettyPrinter p) throws java.io.IOException
JavaSourceElementprettyPrint in interface SourceElementprettyPrint in class JavaProgramElementp - a pretty printer.java.io.IOException - occasionally thrown.