public class Edge extends AbstractEdge<Edge,BasicBlock> implements EdgeTypes, Debug
BasicBlock,
CFG| Modifier and Type | Class and Description |
|---|---|
static interface |
Edge.Type |
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_EDGEVERIFY_INTEGRITY| Constructor and Description |
|---|
Edge(BasicBlock source,
BasicBlock dest)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Edge other)
Compare with other edge.
|
static String |
edgeTypeToString(int edgeType)
Get string representing given edge type.
|
boolean |
equals(Object o) |
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(Set<Integer> positions) |
static int |
stringToEdgeType(String s)
Get numeric edge type from string representation.
|
String |
toString() |
getLabel, getSource, getTarget, setLabelpublic Edge(BasicBlock source, BasicBlock dest)
source - source basic blockdest - destination basic blockpublic int getId()
@Edge.Type public int getType()
public void setType(@Edge.Type int type)
public int getFlags()
public void setFlags(int flags)
public boolean isFlagSet(int flag)
flag - the edge flagpublic boolean isExceptionEdge()
public boolean equals(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 Comparable<Edge>compareTo in class AbstractEdge<Edge,BasicBlock>public boolean isBackwardInBytecode()
public String formatAsString(boolean reverse)
public static String edgeTypeToString(@Edge.Type int edgeType)
@Edge.Type public static int stringToEdgeType(String s)
Copyright © 2003–2015. All rights reserved.