sota.ast.nodes
Class ASTTryNode

java.lang.Object
  extended by sota.ast.nodes.ASTNode
      extended by sota.ast.nodes.ASTStatementNode
          extended by sota.ast.nodes.ASTBranchNode
              extended by 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 ..


Field Summary
protected  ASTNode endOfTryBlock
           
protected  ASTStatementNode entryOfTryBlock
          Bei der Konstruktion zu setzende Informationen und Verknüpfungen *
protected  ASTCatchNode finallyNode
           
protected  java.util.ArrayList<ASTCatchNode> listOfCatchNodes
           
protected  int nrHitsWithoutException
           
 
Fields inherited from class sota.ast.nodes.ASTBranchNode
endNode, entryNode, setOfBIPaths, setOfExitNodes, setOfFollowUpNodes
 
Fields inherited from class sota.ast.nodes.ASTStatementNode
endOfStatement, nrHits
 
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)
           
 
Method Summary
 void addCatchNode(ASTCatchNode cn)
           
 void completeNode()
           
 ASTNode getEndOfTryBlock()
           
 ASTStatementNode getEntryOfTryBlock()
           
 ASTCatchNode getFinallyNode()
           
 java.util.ArrayList<ASTCatchNode> getListOfCatches()
           
 java.lang.String getNodeString()
           
 int getNrHitsWithoutException()
           
 boolean hasFinally()
           
 void incNrHitsWithoutException()
           
 void printNode()
          Print **
 void resetHits()
           
 void setEndOfTryBlock(ASTNode n)
           
 void setEntryOfTryBlock(ASTStatementNode n)
           
 void setNrHitsWithoutException(java.lang.Integer integer)
           
 
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.ASTStatementNode
decNrHits, getEndOfStatement, getNrHits, incNrHits, incNrHits, isSepareted, printCFG, setEndOfStatement, setNrHits
 
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
 
Methods inherited from interface sota.ast.nodes.IStatementNode
getID, print
 

Field Detail

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
Constructor Detail

ASTTryNode

public ASTTryNode(int ln,
                  java.lang.String s)
Method Detail

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)