sota.ast.nodes
Class ASTSwitchNode

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.ASTSwitchNode
All Implemented Interfaces:
java.lang.Comparable<ASTNode>, IStatementNode
Direct Known Subclasses:
JavaASTSwitchNode

public abstract class ASTSwitchNode
extends ASTBranchNode

AST-Knoten für Switch-Statements .. ASTNode entryNode ASTSwitchNode this ASTCaseNode [listOfCaseNodes] > .. ASTCaseNode [listOfCaseNodes] > .. ASTStatementNode endNode ..


Field Summary
protected  java.lang.String expression
          Bei der Konstruktion zu setzende Informationen und Verknüpfungen *
protected  boolean hasDefault
          Von ASTBranchNode: * protected ASTNode entryNode protected ASTStatementNode endNode /
protected  java.util.ArrayList<ASTCaseNode> listOfCaseNodes
           
 
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
ASTSwitchNode(int ln, java.lang.String s)
           
 
Method Summary
 void addCaseNode(ASTCaseNode cn)
           
 void completeNode()
           
 ASTNode getDefaultNode()
           
 java.lang.String getExpression()
           
 java.util.ArrayList<ASTCaseNode> getListOfCases()
           
 java.lang.String getNodeString()
           
 int getNrOfCases()
           
 java.lang.String getSelectionString()
           
 boolean hasDefault()
           
 void printCFG()
           
 void printNode()
          Print **
 
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, resetHits, 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

expression

protected java.lang.String expression
Bei der Konstruktion zu setzende Informationen und Verknüpfungen *


hasDefault

protected boolean hasDefault
Von ASTBranchNode: * protected ASTNode entryNode protected ASTStatementNode endNode /


listOfCaseNodes

protected java.util.ArrayList<ASTCaseNode> listOfCaseNodes
Constructor Detail

ASTSwitchNode

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

addCaseNode

public void addCaseNode(ASTCaseNode cn)

completeNode

public void completeNode()
Specified by:
completeNode in class ASTBranchNode

getDefaultNode

public ASTNode getDefaultNode()

getExpression

public java.lang.String getExpression()

getListOfCases

public java.util.ArrayList<ASTCaseNode> getListOfCases()

getNodeString

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

getNrOfCases

public int getNrOfCases()

getSelectionString

public java.lang.String getSelectionString()

hasDefault

public boolean hasDefault()

printCFG

public void printCFG()
Overrides:
printCFG in class ASTStatementNode

printNode

public void printNode()
Print **

Overrides:
printNode in class ASTStatementNode