Class AssemblyContextGraph.Vertex
- java.lang.Object
-
- ghidra.app.plugin.assembler.sleigh.sem.AssemblyContextGraph.Vertex
-
- All Implemented Interfaces:
java.lang.Comparable<AssemblyContextGraph.Vertex>
- Enclosing class:
- AssemblyContextGraph
protected static class AssemblyContextGraph.Vertex extends java.lang.Object implements java.lang.Comparable<AssemblyContextGraph.Vertex>
A vertex in a context transition graph Each vertex consists of a context block and a (sub)table name
-
-
Field Summary
Fields Change Modifier and Type Field Description NEW protected AssemblyPatternBlockcontextNEW protected java.lang.Stringsubtable
-
Constructor Summary
Constructors Change Modifier Constructor Description protectedVertex(AssemblyPatternBlock context, java.lang.String subtable)Construct a new vertex with the given block and subtable name
-
Method Summary
All Methods Instance Methods Concrete Methods Change Modifier and Type Method Description NEW intcompareTo(AssemblyContextGraph.Vertex that)NEW booleanequals(java.lang.Object o)inthashCode()NEW booleanmatches(AssemblyContextGraph.Vertex that)Check if this and another vertex "agree" This doesn't mean they're equal, but that they share a subtable, and the defined bits of their context blocks agree.java.lang.StringtoString()
-
-
-
Field Detail
-
context NEW
protected final AssemblyPatternBlock context
Constructor Detail
-
Vertex
protected Vertex(AssemblyPatternBlock context, java.lang.String subtable)
Construct a new vertex with the given block and subtable name- Parameters:
context- the contextsubtable- the name
-
-
Method Detail
-
matches NEW
public boolean matches(AssemblyContextGraph.Vertex that)
Check if this and another vertex "agree" This doesn't mean they're equal, but that they share a subtable, and the defined bits of their context blocks agree.- Parameters:
that- the other vertex- Returns:
- true iff they share subtables and defined bits
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo NEW
public int compareTo(AssemblyContextGraph.Vertex that)
- Specified by:
compareToin interfacejava.lang.Comparable<AssemblyContextGraph.Vertex>
-
-