Class InstructionDescriptor.ArgumentDescriptor

java.lang.Object
com.oracle.truffle.api.bytecode.InstructionDescriptor.ArgumentDescriptor
Enclosing class:
InstructionDescriptor

public abstract static class InstructionDescriptor.ArgumentDescriptor extends Object
Descriptor for a single immediate argument of an instruction. Captures kind, name and encoded width of the argument.
Since:
25.1
  • Constructor Details

    • ArgumentDescriptor

      protected ArgumentDescriptor(Object token)
      Internal constructor for generated code. Do not use.
      Since:
      25.1
  • Method Details

    • getKind

      public abstract Instruction.Argument.Kind getKind()
      Returns the Instruction.Argument.Kind of this argument descriptor.
      Since:
      25.1
    • getName

      public abstract String getName()
      Returns a human readable name for this argument. This could be for example "localOffset" for a local variable access instruction. Arguments with the same getKind() may have different names. A name is typically more descriptive than just the kind and should be preferred over the kind for debug output.
      Since:
      25.1
    • getLength

      public abstract int getLength()
      Returns width in bytes.
      Since:
      25.1
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Since:
      25.1