sota.ast.nodes
Class ASTStatementNode

java.lang.Object
  extended by sota.ast.nodes.ASTNode
      extended by sota.ast.nodes.ASTStatementNode
All Implemented Interfaces:
java.lang.Comparable<ASTNode>, IStatementNode
Direct Known Subclasses:
ASTBranchNode, ASTCaseNode, ASTCatchNode, ASTJumpNode, JavaASTStatementNode

public abstract class ASTStatementNode
extends ASTNode
implements IStatementNode

AST-Knoten für Statements - ein ASTNode, der einfache Überdeckungsinformation speichert (nrHits)


Field Summary
protected  ASTNode endOfStatement
          Bei der Konstruktion zu setzende Informationen und Verknüpfungen *
protected  int 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
ASTStatementNode(int ln)
           
ASTStatementNode(int ln, java.lang.String s)
           
 
Method Summary
 int decNrHits(int i)
           
 ASTNode getEndOfStatement()
           
 java.lang.String getNodeString()
           
 int getNrHits()
           
 int incNrHits()
           
 int incNrHits(int i)
           
 boolean isSepareted()
           
 void printCFG()
           
 void printNode()
          Print **
 void resetHits()
           
 void setEndOfStatement(ASTNode n)
           
 void setNrHits(int i)
           
 
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

endOfStatement

protected ASTNode endOfStatement
Bei der Konstruktion zu setzende Informationen und Verknüpfungen *


nrHits

protected int nrHits
Constructor Detail

ASTStatementNode

public ASTStatementNode(int ln)

ASTStatementNode

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

decNrHits

public int decNrHits(int i)
Specified by:
decNrHits in interface IStatementNode

getEndOfStatement

public ASTNode getEndOfStatement()

getNodeString

public java.lang.String getNodeString()
Overrides:
getNodeString in class ASTNode

getNrHits

public int getNrHits()
Specified by:
getNrHits in interface IStatementNode

incNrHits

public int incNrHits()
Specified by:
incNrHits in interface IStatementNode

incNrHits

public int incNrHits(int i)
Specified by:
incNrHits in interface IStatementNode

isSepareted

public boolean isSepareted()

printCFG

public void printCFG()
Overrides:
printCFG in class ASTNode

printNode

public void printNode()
Print **

Overrides:
printNode in class ASTNode

resetHits

public void resetHits()
Specified by:
resetHits in interface IStatementNode

setEndOfStatement

public void setEndOfStatement(ASTNode n)

setNrHits

public void setNrHits(int i)
Specified by:
setNrHits in interface IStatementNode