sota.lang.java.ast.nodes
Class JavaASTIterationNode
java.lang.Object
sota.ast.nodes.ASTNode
sota.ast.nodes.ASTStatementNode
sota.ast.nodes.ASTBranchNode
sota.ast.nodes.ASTIterationNode
sota.lang.java.ast.nodes.JavaASTIterationNode
- All Implemented Interfaces:
- java.lang.Comparable<ASTNode>, IConditionNode, IStatementNode
public class JavaASTIterationNode
- extends ASTIterationNode
AST-Knoten für iterierende Anweisungen (Schleifen).
Fields inherited from class sota.ast.nodes.ASTIterationNode |
cond, doNode, forInit, forUpdate, hasDoNode, isForNode, loopNode, nrConditions, nrMultipleLoops, nrSingleLoops, nrSkips, setOfTruthVectors |
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.ASTIterationNode |
completeNode, computeConditionCoverage, fillConditions, getCondition, getDoNode, getEvaluatedTVString, getLoopNode, getMetrics, getNodeString, getNrConditions, getNrCoveredModBIPaths, getNrLoops, getNrModBIPaths, getNrMultipleLoops, getNrSingleLoops, getNrSkips, getTruthVectors, hasDoNode, hasNonTrivialCondition, incNrMultipleLoops, incNrMultipleLoops, incNrSingleLoops, incNrSingleLoops, incNrSkips, incNrSkips, isForNode, numerateCondition, printCFG, resetHits, setDoNode, setForNode, setLoopNode |
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, 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 |
JavaASTIterationNode
public JavaASTIterationNode(int ln,
java.lang.String s)
- Konstruktof für Foreach-Schleifen.
- Parameters:
ln
- die Zeilennummers
- der Inhalt
JavaASTIterationNode
public JavaASTIterationNode(int ln,
java.lang.String s,
Condition cond)
- Konstruktof für While-Schleifen.
- Parameters:
ln
- die Zeilennummers
- der Inhaltcond
- die Bedingung
JavaASTIterationNode
public JavaASTIterationNode(int ln,
java.lang.String s,
java.lang.String _forInit,
Condition _cond,
java.lang.String _forUpdate)
- Konstruktor für For-Schleifen.
- Parameters:
ln
- die Zeilennummers
- der Inhalt_forInit
- die Initialisierung_cond
- die Bedingung_forUpdate
- der Update-Anweisung
createASCContent
public void createASCContent(int level)
- Overrides:
createASCContent
in class ASTNode
createDoWhileASCContent
public void createDoWhileASCContent(int level)
- Erstellt die Instrumentierung für Do-While-Schleifen.
- Parameters:
level
- das Instrumentationslevel
createForASCContent
public void createForASCContent(int level)
- Erstellt die Instrumentierung für For-Schleifen.
- Parameters:
level
- das Instrumentationslevel
createWhileASCContent
public void createWhileASCContent(int level)
- Erstellt die Instrumentierung für While-Schleifen.
- Parameters:
level
- das Instrumentationslevel
printNode
public void printNode()
- Description copied from class:
ASTIterationNode
- Prints **
- Overrides:
printNode
in class ASTIterationNode