sota.ast.nodes
Class ASTStatementNode
java.lang.Object
sota.ast.nodes.ASTNode
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)
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 |
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 |
endOfStatement
protected ASTNode endOfStatement
- Bei der Konstruktion zu setzende Informationen und Verknüpfungen *
nrHits
protected int nrHits
ASTStatementNode
public ASTStatementNode(int ln)
ASTStatementNode
public ASTStatementNode(int ln,
java.lang.String s)
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