Package it.unive.lisa.analysis.traces
Class Branching
- java.lang.Object
-
- it.unive.lisa.analysis.traces.TraceToken
-
- it.unive.lisa.analysis.traces.Branching
-
public class Branching extends TraceToken
ATraceToken
representing the traversal of a if-then-else condition, associated with the branch taken.
-
-
Constructor Summary
Constructors Constructor Description Branching(it.unive.lisa.program.cfg.ProgramPoint pp, boolean trueBranch)
Builds the branching.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
boolean
isTrueBranch()
Yields whether the condition is traversed to reach thetrue
branch or not.java.lang.String
toString()
-
Methods inherited from class it.unive.lisa.analysis.traces.TraceToken
getProgramPoint
-
-
-
-
Method Detail
-
isTrueBranch
public boolean isTrueBranch()
Yields whether the condition is traversed to reach thetrue
branch or not.- Returns:
true
if that condition holds
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classTraceToken
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classTraceToken
-
toString
public java.lang.String toString()
- Overrides:
toString
in classTraceToken
-
-