com.sonar.sslr.api.flow
Class Branch

java.lang.Object
  extended by com.sonar.sslr.api.flow.Branch

public class Branch
extends Object


Constructor Summary
Branch()
           
Branch(Branch parent)
           
 
Method Summary
 AstNode getCondition()
           
 CobolStmt getConditionalStatement()
           
 int getDepth()
           
 String getDepthDetail()
           
 Branch getParent()
           
 boolean isParentOf(Branch branch)
           
 boolean isParentOrChildOf(Branch branch)
           
 void setCondition(AstNode condition)
           
 void setConditionalStatement(CobolStmt stmt)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Branch

public Branch(Branch parent)

Branch

public Branch()
Method Detail

setConditionalStatement

public final void setConditionalStatement(CobolStmt stmt)

setCondition

public final void setCondition(@Nullable
                               AstNode condition)

getConditionalStatement

public final CobolStmt getConditionalStatement()

getParent

public final Branch getParent()

getCondition

@Nullable
public final AstNode getCondition()

getDepth

public final int getDepth()

toString

public String toString()
Overrides:
toString in class Object

getDepthDetail

public String getDepthDetail()

isParentOf

public boolean isParentOf(Branch branch)

isParentOrChildOf

public boolean isParentOrChildOf(Branch branch)


Copyright © 2009-2014 SonarSource. All Rights Reserved.