Package jminusminus

Class NHIRStringConstant

java.lang.Object
jminusminus.NHIRInstruction
jminusminus.NHIRStringConstant

class NHIRStringConstant extends NHIRInstruction
HIR instruction corresponding to the JVM instructions representing string constants.
  • Constructor Details

    • NHIRStringConstant

      public NHIRStringConstant(NBasicBlock block, int id, String value)
      Constructs an NHIRStringConstant object.
      Parameters:
      block - enclosing block.
      id - identifier for the instruction.
      value - the constant string value.
  • Method Details

    • toLir

      public NLIRInstruction toLir()
      Converts and returns a low-level representation (LIR) of this HIR instruction. Also adds the returned LIR instruction to the list of LIR instructions for the block containing this instruction, along with any other intermediate LIR instructions needed.
      Overrides:
      toLir in class NHIRInstruction
      Returns:
      the LIR instruction corresponding to this HIR instruction.
    • toString

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