Interface IDNewArrayInfo

All Superinterfaces:
IDElement, IDExpression, IDInvokeInfo, IInstructionOperand

public interface IDNewArrayInfo extends IDInvokeInfo
dexdec IR element holding new array creation information.

Examples:

 int[] ints = new int[3];
              ^^^^^^^^^^
 char[] chars = new char[]{'h', 'e', 'l', 'l', 'o'};
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
  • Method Details

    • getSize

      IDExpression getSize()
    • setSize

      void setSize(IDExpression size)
    • getCountOfInitialValues

      int getCountOfInitialValues()
    • getInitialValues

      List<IDExpression> getInitialValues()
    • getInitialValue

      IDExpression getInitialValue(int index)
    • setInitialValues

      void setInitialValues(List<IDExpression> initvals)
    • setInitialValue

      void setInitialValue(int index, IDExpression val)
    • areSubExpsAllImms

      boolean areSubExpsAllImms()
      A convenience method to quickly determine whether all sub-expressions of this IR are immediates.
      Returns:
      true if all sub-expressions (as returned by #collectSubExpressions(List)) are immediates
    • duplicate

      IDNewArrayInfo duplicate()
      Description copied from interface: IDElement
      Duplicate this element.
      Specified by:
      duplicate in interface IDElement
      Specified by:
      duplicate in interface IDExpression
      Specified by:
      duplicate in interface IDInvokeInfo
      Returns:
      a deep copy of this element; the type of the duplicated element should be the same as this element's type