Class AssemblyContextGraph.Edge
java.lang.Object
ghidra.app.plugin.assembler.sleigh.sem.AssemblyContextGraph.Edge
- All Implemented Interfaces:
 GEdge<AssemblyContextGraph.Vertex>,Comparable<AssemblyContextGraph.Edge>
- Enclosing class:
 AssemblyContextGraph
protected static class AssemblyContextGraph.Edge
extends Object
implements GEdge<AssemblyContextGraph.Vertex>, 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 sub-constructors, the operand index explains the sub-table name of the destination vertex.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AssemblyContextGraph.Vertexprotected final intprotected final AssemblyConstructorSemanticprotected final AssemblyContextGraph.Vertex - 
Constructor Summary
ConstructorsConstructorDescriptionEdge(AssemblyConstructorSemantic sem, int op, AssemblyContextGraph.Vertex start, AssemblyContextGraph.Vertex end) Construct a new transition associated with the given constructor and operand index - 
Method Summary
 
- 
Field Details
- 
sem
 - 
op
protected final int op - 
start
 - 
end
 
 - 
 - 
Constructor Details
- 
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 Details
- 
hashCode
public int hashCode() - 
equals
 - 
compareTo
- Specified by:
 compareToin interfaceComparable<AssemblyContextGraph.Edge>
 - 
toString
 - 
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
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
 
 
 -