Record Class MpIntLocalOpnd

java.lang.Object
java.lang.Record
ghidra.pcode.emu.jit.gen.opnd.MpIntLocalOpnd
Record Components:
type - the p-code type
name - a name (prefix) to use for generated temporary legs
legsLE - the legs in little-endian order
All Implemented Interfaces:
Opnd<JitType.MpIntJitType>

public record MpIntLocalOpnd(JitType.MpIntJitType type, String name, List<? extends SimpleOpnd<Types.TInt,JitType.IntJitType>> legsLE) extends Record implements Opnd<JitType.MpIntJitType>
A (usually mutable) multi-precision integer operand

This may be composed of simple mutable and constant operands. The most common cause of constant operands is zero extension. It is also possible the same mutable (local) operand may appear more than once. The most common cause of such duplication is sign extension.

  • Constructor Details

  • Method Details

    • of

      public static MpIntLocalOpnd of(JitType.MpIntJitType type, String name, List<? extends SimpleOpnd<Types.TInt,JitType.IntJitType>> legsLE)
      Create a multi-precision integer operand from the given legs
      Parameters:
      type - the p-code type
      name - the name (prefix) to use for generate temporary legs
      legsLE - the legs in little-endian order
      Returns:
      the operand
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      public JitType.MpIntJitType type()
      Returns the value of the type record component.
      Specified by:
      type in interface Opnd<JitType.MpIntJitType>
      Returns:
      the value of the type record component
    • name

      public String name()
      Returns the value of the name record component.
      Specified by:
      name in interface Opnd<JitType.MpIntJitType>
      Returns:
      the value of the name record component
    • legsLE

      public List<? extends SimpleOpnd<Types.TInt,JitType.IntJitType>> legsLE()
      Returns the value of the legsLE record component.
      Specified by:
      legsLE in interface Opnd<JitType.MpIntJitType>
      Returns:
      the value of the legsLE record component