Interface IDElement

All Superinterfaces:
IInstructionOperand
All Known Subinterfaces:
IDAllocObjectInfo, IDArrayElt, IDCallInfo, IDExpression, IDField, IDImm, IDIndex, IDInstanceField, IDInstruction, IDInvokeInfo, IDNewArrayInfo, IDNewInfo, IDOperation, IDReferenceType, IDStaticField, IDSwitchData, IDTarget, IDVar

public interface IDElement extends IInstructionOperand
Base interface for all dexdec IR elements.

Currently includes:

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final boolean
    Determine whether hashCode and equals use all the IR expression elements, including metadata like:
    - type
    - physical offset
    - data map
  • Method Summary

    Modifier and Type
    Method
    Description
    Copy this element.
    Duplicate this element.
    boolean
    equalsEx(Object o, boolean fullEquality)
    A specialized version of equals.
    void
    Format this IR using the provided formatting context.
    Generate a string representation of this IR using a standard formatting context.
    Generate a string representation of this IR using a standard formatting context.

    Methods inherited from interface com.pnfsoftware.jeb.core.units.code.IInstructionOperand

    format
  • Field Details

    • DEFAULT_COMPARE_WITH_FULL_EQUALITY

      static final boolean DEFAULT_COMPARE_WITH_FULL_EQUALITY
      Determine whether hashCode and equals use all the IR expression elements, including metadata like:
      - type
      - physical offset
      - data map

      This value is set to false and should not be modified.

      See Also:
  • Method Details

    • copy

      Copy this element. This operation can be seen as a custom duplication; the resulting element may not be of the same type as this element.
      Parameters:
      opt - optional; if one is provided, DCopyOptions.onDup(IDExpression) will be tried first to create a copy
      Returns:
      the copied element
    • duplicate

      IDElement duplicate()
      Duplicate this element.
      Returns:
      a deep copy of this element; the type of the duplicated element should be the same as this element's type
    • equalsEx

      boolean equalsEx(Object o, boolean fullEquality)
      A specialized version of equals.
      Parameters:
      o - other object
      fullEquality - if false, metadata elements will not be included in the equality operations
      Returns:
    • format

      void format(DFormattingContext fctx)
      Format this IR using the provided formatting context.
      Parameters:
      fctx - mandatory formatting context
    • toString

      String toString(IDMethodContext ctx)
      Generate a string representation of this IR using a standard formatting context.

      This is a convenience method. For more formatting controls, use format(DFormattingContext).

      Returns:
      optional method context
    • toString

      String toString()
      Generate a string representation of this IR using a standard formatting context. Same as calling toString(null).

      This is a convenience method. For more formatting controls, use format(DFormattingContext).

      Overrides:
      toString in class Object
      Returns: