Package pascal.taie.analysis.graph.cfg
Class CFGEdge<N>
java.lang.Object
pascal.taie.util.graph.AbstractEdge<N>
pascal.taie.analysis.graph.cfg.CFGEdge<N>
- Type Parameters:
N
- type of CFG nodes.
- All Implemented Interfaces:
Serializable
,Edge<N>
Represents CFG edges.
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class pascal.taie.util.graph.AbstractEdge
source, target
-
Method Summary
Methods inherited from class pascal.taie.util.graph.AbstractEdge
source, target
-
Method Details
-
getKind
- Returns:
- the kind of the edge.
- See Also:
-
isSwitchCase
public boolean isSwitchCase()- Returns:
- true if this edge is a switch-case edge, otherwise false.
-
getCaseValue
public int getCaseValue()If this edge is a switch-case edge, then returns the case value. The client code should callisSwitchCase()
to check if this edge is switch-case edge before calling this method.- Throws:
AnalysisException
- if this edge is not a switch-case edge.
-
isExceptional
public boolean isExceptional()- Returns:
- true if this edge is an exceptional edge, otherwise false.
-
getExceptions
If this edge is an exceptional edge, return the exception types along with this edge, otherwise return an empty set. -
equals
- Overrides:
equals
in classAbstractEdge<N>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractEdge<N>
-
toString
- Overrides:
toString
in classAbstractEdge<N>
-