sota.ast.nodes
Class ASTCaseNode
java.lang.Object
sota.ast.nodes.ASTNode
sota.ast.nodes.ASTStatementNode
sota.ast.nodes.ASTCaseNode
- All Implemented Interfaces:
- java.lang.Comparable<ASTNode>, IStatementNode
- Direct Known Subclasses:
- JavaASTCaseNode
public abstract class ASTCaseNode
- extends ASTStatementNode
AST-Knoten für Case-Statements (inkl. Default)
..
ASTNode switchNode.entryNode
ASTSwitchNode switchNode
ASTCaseNode this
> ..
ASTCaseNode switchNode.[listOfCaseNodes]
> ..
ASTStatementNode switchNode.endNode
..
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 |
ASTCaseNode(int ln,
java.lang.String s)
|
ASTCaseNode(int ln,
java.lang.String s,
java.lang.String c)
|
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 |
constant
protected java.lang.String constant
isDefault
protected boolean isDefault
nrSelects
protected int nrSelects
switchNode
protected ASTSwitchNode switchNode
- Bei der Konstruktion zu setzende Informationen und Verknüpfungen *
ASTCaseNode
public ASTCaseNode(int ln,
java.lang.String s)
ASTCaseNode
public ASTCaseNode(int ln,
java.lang.String s,
java.lang.String c)
getConstant
public java.lang.String getConstant()
getEndOfCaseBlock
public ASTNode getEndOfCaseBlock()
getNodeString
public java.lang.String getNodeString()
- Overrides:
getNodeString
in class ASTStatementNode
getNrSelects
public int getNrSelects()
getSwitchNode
public ASTSwitchNode getSwitchNode()
incNrSelects
public void incNrSelects()
incNrSelects
public void incNrSelects(int selection)
isDefault
public boolean isDefault()
printNode
public void printNode()
- Description copied from class:
ASTStatementNode
- Print **
- Overrides:
printNode
in class ASTStatementNode
resetHits
public void resetHits()
- Specified by:
resetHits
in interface IStatementNode
- Overrides:
resetHits
in class ASTStatementNode
setConstant
public void setConstant(java.lang.String s)
setNrSelects
public void setNrSelects(int i)
setSwitchNode
public void setSwitchNode(ASTSwitchNode switchNode)