sota.ast.nodes
Class ASTTryNode
java.lang.Object
sota.ast.nodes.ASTNode
sota.ast.nodes.ASTStatementNode
sota.ast.nodes.ASTBranchNode
sota.ast.nodes.ASTTryNode
- All Implemented Interfaces:
- java.lang.Comparable<ASTNode>, IStatementNode
- Direct Known Subclasses:
- JavaASTTryNode
public abstract class ASTTryNode
- extends ASTBranchNode
AST-Knoten für Ausnahme-Blöcke
..
ASTNode entryNode
ASTTryNode this
ASTStatementNode entryOfTryBlock
> ..
ASTNode endOfTryBlock
ASTCatchNode [listOfCatchNodes]
> ..
ASTCatchNode [listOfCatchNodes]
> ..
ASTStatementNode endNode
..
Fields inherited from class sota.ast.nodes.ASTNode |
ascContent, BRANCH, CASE, CATCH, CONDITION, content, controlingBranchNode, DO, functionNode, id, IF, isDirectReachable, isReachable, isVirtual, ITERATION, JUMP, lineNr, next, NODE, prev, SCOPE, STATEMENT, SWITCH, TRY |
Constructor Summary |
ASTTryNode(int ln,
java.lang.String s)
|
Methods inherited from class sota.ast.nodes.ASTBranchNode |
addExitNode, addFollowUpNode, getEndNode, getEntryNode, getExitString, getSetOfExitNodes, getSetOfFollowUpNodes, isWithinBranchConstruct, printExits, setEndNode, setEntryNode |
Methods inherited from class sota.ast.nodes.ASTNode |
appendToASCContent, compareTo, createASCContent, getASCContent, getContent, getControlingBranchNode, getFunctionNode, getID, getLineNr, getNextNode, getPrevNode, getReachString, getType, isDirectReachable, isDirectReachable, isReachable, isReachable, isVirtual, isVirtual, print, printReach, setASCContent, setContent, setControlingBranchNode, setFunctionNode, setID, setNextNode, setPrevNode, typeToString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
endOfTryBlock
protected ASTNode endOfTryBlock
entryOfTryBlock
protected ASTStatementNode entryOfTryBlock
- Bei der Konstruktion zu setzende Informationen und Verknüpfungen *
finallyNode
protected ASTCatchNode finallyNode
listOfCatchNodes
protected java.util.ArrayList<ASTCatchNode> listOfCatchNodes
nrHitsWithoutException
protected int nrHitsWithoutException
ASTTryNode
public ASTTryNode(int ln,
java.lang.String s)
addCatchNode
public void addCatchNode(ASTCatchNode cn)
completeNode
public void completeNode()
- Specified by:
completeNode
in class ASTBranchNode
getEndOfTryBlock
public ASTNode getEndOfTryBlock()
getEntryOfTryBlock
public ASTStatementNode getEntryOfTryBlock()
getFinallyNode
public ASTCatchNode getFinallyNode()
getListOfCatches
public java.util.ArrayList<ASTCatchNode> getListOfCatches()
getNodeString
public java.lang.String getNodeString()
- Overrides:
getNodeString
in class ASTStatementNode
getNrHitsWithoutException
public int getNrHitsWithoutException()
hasFinally
public boolean hasFinally()
incNrHitsWithoutException
public void incNrHitsWithoutException()
printNode
public void printNode()
- Print **
- Overrides:
printNode
in class ASTStatementNode
resetHits
public void resetHits()
- Specified by:
resetHits
in interface IStatementNode
- Overrides:
resetHits
in class ASTStatementNode
setEndOfTryBlock
public void setEndOfTryBlock(ASTNode n)
setEntryOfTryBlock
public void setEntryOfTryBlock(ASTStatementNode n)
setNrHitsWithoutException
public void setNrHitsWithoutException(java.lang.Integer integer)