public class ReceiveOptArgInstr extends ReceiveArgBase implements FixedArityInstr
| Modifier and Type | Field and Description |
|---|---|
int |
preArgs
opt args follow pre args
|
int |
requiredArgs
total number of required args (pre + post)
|
argIndexresultEMPTY_OPERANDS, operands| Constructor and Description |
|---|
ReceiveOptArgInstr(Variable result,
int requiredArgs,
int preArgs,
int optArgIndex) |
| Modifier and Type | Method and Description |
|---|---|
Instr |
clone(CloneInfo info)
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).
|
int |
getPreArgs() |
int |
getRequiredArgs() |
IRubyObject |
receiveArg(ThreadContext context,
IRubyObject[] args,
boolean acceptsKeywordArgument) |
String |
toString() |
void |
visit(IRVisitor visitor) |
getArgIndexgetResult, updateResultcanBeDeleted, canRaiseException, cloneOperands, computeScopeFlags, getIPC, getOperands, getOperation, getRPC, getUsedVariables, hasSideEffects, interpret, interpretAndGetNewIPC, isDead, markDead, renameVars, setIPC, setRPC, simplifyAndGetResult, simplifyOperands, transfersControlpublic final int preArgs
public final int requiredArgs
public ReceiveOptArgInstr(Variable result, int requiredArgs, int preArgs, int optArgIndex)
public String toString()
toString in class ReceiveArgBasepublic int getPreArgs()
public int getRequiredArgs()
public Instr clone(CloneInfo info)
Instrpublic IRubyObject receiveArg(ThreadContext context, IRubyObject[] args, boolean acceptsKeywordArgument)
receiveArg in class ReceiveArgBaseCopyright © 2001-2015 JRuby. All Rights Reserved.