| Modifier and Type | Field and Description |
|---|---|
| public final int | preArgs
opt args follow pre args |
| public final int | requiredArgs
total number of required args (pre + post) |
| Access | Constructor and Description |
|---|---|
| public | ReceiveOptArgInstr(Variable result, Variable keywords, int optArgIndex, int requiredArgs, int preArgs)
|
| Modifier and Type | Method and Description |
|---|---|
| public Instr | clone(CloneInfo
This object manages renaming of variables and labels, handles
args and return values. info)Implements abstract org. Clone the instruction for use in an inlining context (either when a scope is inlined into another scope, or when a block has to be cloned because its associated call belongs to an inlined scope). |
| public static ReceiveOptArgInstr | |
| public void | |
| public int | |
| public int | |
| public IRubyObject | receiveArg(ThreadContext context, IRubyObject self, DynamicScope currDynScope, StaticScope currScope, Object[] temp, IRubyObject[] args, boolean ruby2keyword)
Overrides org. Implements org.
|
| public String[] | |
| public void |
| preArgs | back to summary |
|---|---|
| public final int preArgs opt args follow pre args | |
| requiredArgs | back to summary |
|---|---|
| public final int requiredArgs total number of required args (pre + post) | |
| ReceiveOptArgInstr | back to summary |
|---|---|
| public ReceiveOptArgInstr(Variable result, Variable keywords, int optArgIndex, int requiredArgs, int preArgs) | |
| clone | back to summary |
|---|---|
| public Instr clone(CloneInfo info) Implements abstract org. Doc from org. Clone the instruction for use in an inlining context (either when a scope is inlined into another scope, or when a block has to be cloned because its associated call belongs to an inlined scope). This might renaming variables and labels to eliminate naming conflicts. The implementation might vary on the cloning mode. | |
| decode | back to summary |
|---|---|
| public static ReceiveOptArgInstr decode(IRReaderDecoder d) | |
| encode | back to summary |
|---|---|
| public void encode(IRWriterEncoder e) Overrides org.
| |
| getPreArgs | back to summary |
|---|---|
| public int getPreArgs() | |
| getRequiredArgs | back to summary |
|---|---|
| public int getRequiredArgs() | |
| receiveArg | back to summary |
|---|---|
| public IRubyObject receiveArg(ThreadContext context, IRubyObject self, DynamicScope currDynScope, StaticScope currScope, Object[] temp, IRubyObject[] args, boolean ruby2keyword) Overrides org. Implements org.
| |
| toStringNonOperandArgs | back to summary |
|---|---|
| public String[] toStringNonOperandArgs() Overrides org.
| |
| visit | back to summary |
|---|---|
| public void visit(IRVisitor visitor) Overrides org.
| |