Class AssemblyContextGraph.Edge
- java.lang.Object
-
- ghidra.app.plugin.assembler.sleigh.sem.AssemblyContextGraph.Edge
-
- All Implemented Interfaces:
GEdge<AssemblyContextGraph.Vertex>,java.lang.Comparable<AssemblyContextGraph.Edge>
- Enclosing class:
- AssemblyContextGraph
protected static class AssemblyContextGraph.Edge extends java.lang.Object implements GEdge<AssemblyContextGraph.Vertex>, java.lang.Comparable<AssemblyContextGraph.Edge>
A transition in a context transition graph A transition consists of the constructor whose context changes were applied. The operand index is included for reference and debugging. If we ever need to process rules with multiple subconstructors, the operand index explains the subtable name of the destination vertex.
-
-
Field Summary
Fields Change Modifier and Type Field Description NEW protected AssemblyContextGraph.VertexendNEW protected intopNEW protected AssemblyConstructorSemanticsemNEW protected AssemblyContextGraph.Vertexstart
-
Constructor Summary
Constructors Change Constructor Description Edge(AssemblyConstructorSemantic sem, int op, AssemblyContextGraph.Vertex start, AssemblyContextGraph.Vertex end)Construct a new transition associated with the given constructor and operand index
-
Method Summary
All Methods Instance Methods Concrete Methods Change Modifier and Type Method Description NEW intcompareTo(AssemblyContextGraph.Edge that)NEW booleanequals(java.lang.Object o)MODIFIED AssemblyContextGraph.VertexgetEnd()Get the end, or head, of the edgeMODIFIED AssemblyContextGraph.VertexgetStart()Get the start, or tail, of the edgeinthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
sem NEW
protected final AssemblyConstructorSemantic sem
-
start NEW
protected final AssemblyContextGraph.Vertex start
Constructor Detail
-
Edge
public Edge(AssemblyConstructorSemantic sem, int op, AssemblyContextGraph.Vertex start, AssemblyContextGraph.Vertex end)
Construct a new transition associated with the given constructor and operand index- Parameters:
sem- the constructor semanticop- the operand index
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo NEW
public int compareTo(AssemblyContextGraph.Edge that)
- Specified by:
compareToin interfacejava.lang.Comparable<AssemblyContextGraph.Edge>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getStart MODIFIED
return type: Vertex → Vertex-AssemblyContextGraph.Vertex getStart()+ghidra.app.plugin.assembler.sleigh.sem.AssemblyContextGraph.Vertex getStart()public AssemblyContextGraph.Vertex getStart()
Description copied from interface:GEdgeGet the start, or tail, of the edgeIn the edge x -> y, x is the start
- Specified by:
getStartin interfaceGEdge<AssemblyContextGraph.Vertex>- Returns:
- the start
-
getEnd MODIFIED
return type: Vertex → Vertex-AssemblyContextGraph.Vertex getEnd()+ghidra.app.plugin.assembler.sleigh.sem.AssemblyContextGraph.Vertex getEnd()public AssemblyContextGraph.Vertex getEnd()
Description copied from interface:GEdgeGet the end, or head, of the edgeIn the edge x -> y, y is the end
- Specified by:
getEndin interfaceGEdge<AssemblyContextGraph.Vertex>- Returns:
- the end
-
-