Class ReceivePostReqdArgInstr

All Implemented Interfaces:
ArgReceiver, FixedArityInstr, ResultInstr

public class ReceivePostReqdArgInstr extends ReceiveIndexedArgBase implements FixedArityInstr
This represents a required arg that shows up after optional/rest args in a method/block parameter list. This instruction gets to pick an argument based on how many arguments have already been accounted for by parameters present earlier in the list.
  • Field Details

    • preReqdArgsCount

      public final int preReqdArgsCount
      The method/block parameter list has these many required parameters before opt+rest args
    • optArgsCount

      public final int optArgsCount
      The method/block parameter list has a maximum of this many optional arguments
    • restArg

      public final boolean restArg
      Does this method/block accept a rest argument
    • postReqdArgsCount

      public final int postReqdArgsCount
      The method/block parameter list has these many required parameters after opt+rest args
  • Constructor Details

    • ReceivePostReqdArgInstr

      public ReceivePostReqdArgInstr(Variable result, Variable keywords, int argIndex, int preReqdArgsCount, int optArgCount, boolean restArg, int postReqdArgsCount)
  • Method Details