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 Modifier and Type Field Description protected AssemblyPatternBlockcontextprotected java.lang.Stringsubtable
-
Constructor Summary
Constructors 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 Modifier and Type Method Description intcompareTo(AssemblyContextGraph.Vertex that)booleanequals(java.lang.Object o)inthashCode()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
protected final AssemblyPatternBlock context
-
subtable
protected final java.lang.String subtable
-
-
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
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
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
compareTo
public int compareTo(AssemblyContextGraph.Vertex that)
- Specified by:
compareToin interfacejava.lang.Comparable<AssemblyContextGraph.Vertex>
-
-