Package org.jtool.cfg

Class CFGMerge


public class CFGMerge extends CFGNode
A merge node of a CFG.
  • Constructor Details

    • CFGMerge

      public CFGMerge(org.eclipse.jdt.core.dom.ASTNode node, CFGStatement branch)
      Creates a new object that represents a merge. This method is not intended to be invoked by clients.
      Parameters:
      node - the ASt node corresponding to this node
      branch - the node for the branch that causes the merge
  • Method Details

    • setBranch

      public void setBranch(CFGStatement branch)
      Sets a node for the branch that causes the merge. This method is not intended to be invoked by clients.
      Parameters:
      branch - the branch node to be set
    • getBranch

      public CFGStatement getBranch()
      Returns the node for the branch that causes the merge.
      Returns:
      the branch node
    • toString

      public String toString()
      Obtains information on this node.
      Overrides:
      toString in class CFGNode
      Returns:
      the string representing the information