com.sonar.sslr.api.flow
Class Branch

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

public class Branch
extends java.lang.Object


Constructor Summary
Branch()
           
Branch(Branch parent)
           
 
Method Summary
 AstNode getCondition()
           
 Statement getConditionalStatement()
           
 int getDepth()
           
 java.lang.String getDepthDetail()
           
 Branch getParent()
           
 boolean isParentOf(Branch branch)
           
 boolean isParentOrChildOf(Branch branch)
           
 void setCondition(AstNode condition)
           
 void setConditionalStatement(Statement stmt)
           
 java.lang.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(Statement stmt)

setCondition

public final void setCondition(AstNode condition)

getConditionalStatement

public final Statement getConditionalStatement()

getParent

public final Branch getParent()

getCondition

public final AstNode getCondition()

getDepth

public final int getDepth()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDepthDetail

public java.lang.String getDepthDetail()

isParentOf

public boolean isParentOf(Branch branch)

isParentOrChildOf

public boolean isParentOrChildOf(Branch branch)


Copyright © 2012 SonarSource. All Rights Reserved.