sota.ast.nodes
Class ASTJumpNode

java.lang.Object
  extended by sota.ast.nodes.ASTNode
      extended by sota.ast.nodes.ASTStatementNode
          extended by sota.ast.nodes.ASTJumpNode
All Implemented Interfaces:
java.lang.Comparable<ASTNode>, IStatementNode
Direct Known Subclasses:
JavaASTJumpNode

public abstract class ASTJumpNode
extends ASTStatementNode

AST-Knoten für Sprunganweisungen (break, continue, return, throw)


Field Summary
protected  boolean isBreak
           
protected  boolean isContinue
           
protected  boolean isGoto
           
protected  boolean isReturn
           
protected  boolean isThrow
           
protected  java.lang.String label
           
protected  java.util.ArrayList<ASTNode> listOfFinallyNodes
           
protected  java.util.ArrayList<ASTTryNode> listOfTryNodes
           
protected  ASTNode targetNode
          Bei der Konstruktion zu setzende Informationen und Verknüpfungen *
 
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
ASTJumpNode(int ln, java.lang.String s, java.lang.String l)
           
 
Method Summary
 void addTryNodes(java.util.Vector<ASTTryNode> n)
           
 java.lang.String getLabel()
           
 java.util.ArrayList<ASTNode> getListOfFinallyNodes()
           
 java.util.ArrayList<ASTTryNode> getListOfTryNodes()
           
 java.lang.String getNodeString()
           
 ASTNode getTargetNode()
           
 boolean isBreak()
           
 void isBreak(boolean b)
           
 boolean isContinue()
           
 void isContinue(boolean b)
           
 boolean isGoto()
           
 void isGoto(boolean b)
           
 boolean isReturn()
           
 void isReturn(boolean b)
           
 boolean isThrow()
           
 void isThrow(boolean b)
           
 void isVirtual(boolean b)
           
 void printCFG()
           
 void printNode()
          Prints **
 void setTarget(ASTNode targetNode)
           
 
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, 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

isBreak

protected boolean isBreak

isContinue

protected boolean isContinue

isGoto

protected boolean isGoto

isReturn

protected boolean isReturn

isThrow

protected boolean isThrow

label

protected java.lang.String label

listOfFinallyNodes

protected java.util.ArrayList<ASTNode> listOfFinallyNodes

listOfTryNodes

protected java.util.ArrayList<ASTTryNode> listOfTryNodes

targetNode

protected ASTNode targetNode
Bei der Konstruktion zu setzende Informationen und Verknüpfungen *

Constructor Detail

ASTJumpNode

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

addTryNodes

public void addTryNodes(java.util.Vector<ASTTryNode> n)

getLabel

public java.lang.String getLabel()

getListOfFinallyNodes

public java.util.ArrayList<ASTNode> getListOfFinallyNodes()

getListOfTryNodes

public java.util.ArrayList<ASTTryNode> getListOfTryNodes()

getNodeString

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

getTargetNode

public ASTNode getTargetNode()

isBreak

public boolean isBreak()

isBreak

public void isBreak(boolean b)

isContinue

public boolean isContinue()

isContinue

public void isContinue(boolean b)

isGoto

public boolean isGoto()

isGoto

public void isGoto(boolean b)

isReturn

public boolean isReturn()

isReturn

public void isReturn(boolean b)

isThrow

public boolean isThrow()

isThrow

public void isThrow(boolean b)

isVirtual

public void isVirtual(boolean b)
Overrides:
isVirtual in class ASTNode

printCFG

public void printCFG()
Overrides:
printCFG in class ASTStatementNode

printNode

public void printNode()
Prints **

Overrides:
printNode in class ASTStatementNode

setTarget

public void setTarget(ASTNode targetNode)