sota.ast.nodes
Class ASTSwitchNode
java.lang.Object
sota.ast.nodes.ASTNode
sota.ast.nodes.ASTStatementNode
sota.ast.nodes.ASTBranchNode
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.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.ASTBranchNode |
addExitNode, addFollowUpNode, getEndNode, getEntryNode, getExitString, getSetOfExitNodes, getSetOfFollowUpNodes, isWithinBranchConstruct, printExits, setEndNode, setEntryNode |
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 |
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
ASTSwitchNode
public ASTSwitchNode(int ln,
java.lang.String s)
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