|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.graph.AbstractEdge<Edge,BasicBlock>
edu.umd.cs.findbugs.ba.Edge
public class Edge
An edge of a control flow graph.
BasicBlock
,
CFG
Field Summary |
---|
Fields inherited from interface edu.umd.cs.findbugs.ba.EdgeTypes |
---|
BACKEDGE_SOURCE_EDGE, BACKEDGE_TARGET_EDGE, CHECKED_EXCEPTIONS_FLAG, EXIT_EDGE, EXPLICIT_EXCEPTIONS_FLAG, FALL_THROUGH_EDGE, GOTO_EDGE, HANDLED_EXCEPTION_EDGE, IFCMP_EDGE, JSR_EDGE, RET_EDGE, RETURN_EDGE, START_EDGE, SWITCH_DEFAULT_EDGE, SWITCH_EDGE, UNHANDLED_EXCEPTION_EDGE, UNKNOWN_EDGE |
Fields inherited from interface edu.umd.cs.findbugs.ba.Debug |
---|
VERIFY_INTEGRITY |
Constructor Summary | |
---|---|
Edge(BasicBlock source,
BasicBlock dest)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(Edge other)
Compare with other edge. |
static java.lang.String |
edgeTypeToString(int edgeType)
Get string representing given edge type. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
formatAsString(boolean reverse)
Return a string representation of the edge. |
int |
getFlags()
Get the edge flags. |
int |
getId()
|
int |
getType()
Get the type of edge. |
int |
hashCode()
|
boolean |
isBackwardInBytecode()
|
boolean |
isExceptionEdge()
Is the edge an exception edge? |
boolean |
isFlagSet(int flag)
Return if given edge flag is set. |
void |
setFlags(int flags)
Set the edge flags. |
void |
setType(int type)
Set the type of edge. |
boolean |
sourceIsTopOfLoop(java.util.Set<java.lang.Integer> positions)
|
static int |
stringToEdgeType(java.lang.String s)
Get numeric edge type from string representation. |
java.lang.String |
toString()
|
Methods inherited from class edu.umd.cs.findbugs.graph.AbstractEdge |
---|
getLabel, getSource, getTarget, setLabel |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Edge(BasicBlock source, BasicBlock dest)
source
- source basic blockdest
- destination basic blockMethod Detail |
---|
public int getId()
public int getType()
public void setType(int type)
public int getFlags()
public void setFlags(int flags)
public boolean isFlagSet(int flag)
flag
- the edge flag
public boolean isExceptionEdge()
public boolean equals(java.lang.Object o)
equals
in class AbstractEdge<Edge,BasicBlock>
public int hashCode()
hashCode
in class AbstractEdge<Edge,BasicBlock>
public int compareTo(Edge other)
compareTo
in interface java.lang.Comparable<Edge>
compareTo
in class AbstractEdge<Edge,BasicBlock>
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isBackwardInBytecode()
public boolean sourceIsTopOfLoop(@Nonnull java.util.Set<java.lang.Integer> positions)
public java.lang.String formatAsString(boolean reverse)
public static java.lang.String edgeTypeToString(int edgeType)
public static int stringToEdgeType(java.lang.String s)
|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |