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 AssemblyPatternBlock
context
protected java.lang.String
subtable
-
Constructor Summary
Constructors Modifier Constructor Description protected
Vertex(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 int
compareTo(AssemblyContextGraph.Vertex that)
boolean
equals(java.lang.Object o)
int
hashCode()
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.java.lang.String
toString()
-
-
-
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:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
compareTo
public int compareTo(AssemblyContextGraph.Vertex that)
- Specified by:
compareTo
in interfacejava.lang.Comparable<AssemblyContextGraph.Vertex>
-
-