Package iota

Class NHirCall


class NHirCall extends NHirInstruction
Representation of a method call instruction.
  • Field Details

    • name

      public String name
      Method name.
    • descriptor

      public String descriptor
      Method descriptor.
    • args

      public ArrayList<Integer> args
      Arguments to the method.
    • isIOMethod

      public boolean isIOMethod
      Whether this method is an input (read()I) or output (write(I)V) method.
  • Constructor Details

    • NHirCall

      public NHirCall(NBasicBlock block, int id, String name, String descriptor, ArrayList<Integer> args, String type, boolean isIOMethod)
      Constructs an NHirCall object.
      Parameters:
      block - enclosing basic block.
      id - instruction id.
      name - method name.
      descriptor - method descriptor.
      args - method arguments.
      type - return type.
      isIOMethod - whether this method is an input (read()I) or output (write(I)V) method.
  • Method Details

    • toLir

      public NLirInstruction toLir()
      Converts and returns a low-level representation (LIR) of this instruction.
      Specified by:
      toLir in class NHirInstruction
      Returns:
      the LIR instruction corresponding to this instruction.
    • toString

      public String toString()
      Returns a string representation of this instruction.
      Overrides:
      toString in class NHirInstruction
      Returns:
      a string representation of this instruction.