Top Fields Constructors Methods
org.jruby.ir.instructions

public Class CheckArityInstr

extends OneOperandInstr
implements FixedArityInstr
Class Inheritance
All Implemented Interfaces
org.jruby.ir.instructions.FixedArityInstr
Imports
org.jruby.ir.IRVisitor, .Operation, org.jruby.ir.operands.Operand, .Variable, org.jruby.ir.persistence.IRReaderDecoder, .IRWriterEncoder, org.jruby.ir.runtime.IRRuntimeHelpers, org.jruby.ir.transformations.inlining.CloneInfo, .InlineCloneInfo, .SimpleCloneInfo, org.jruby.parser.StaticScope, org.jruby.runtime.Block, .DynamicScope, .ThreadContext, org.jruby.runtime.builtin.IRubyObject

Field Summary

Modifier and TypeField and Description
public final int
public final int
public final boolean
public final int

Constructor Summary

AccessConstructor and Description
public
CheckArityInstr(int required, int opt, boolean rest, int restKey, Operand keywords)

Method Summary

Modifier and TypeMethod and Description
public void
checkArity(ThreadContext context, IRubyObject self, StaticScope scope, DynamicScope dynamicScope, IRubyObject[] args, Block block, Object[] temp)

public Instr
clone(CloneInfo
This object manages renaming of variables and labels, handles args and return values.
info
)

Implements abstract org.jruby.ir.instructions.Instr.clone.

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 CheckArityInstr
public void
public Operand
public String[]
public void
Inherited from org.jruby.ir.instructions.OneOperandInstr:
getOperand1getOperandssetOperandsetOperand1

Field Detail

optback to summary
public final int opt
requiredback to summary
public final int required
restback to summary
public final boolean rest
restKeyback to summary
public final int restKey

Constructor Detail

CheckArityInstrback to summary
public CheckArityInstr(int required, int opt, boolean rest, int restKey, Operand keywords)

Method Detail

checkArityback to summary
public void checkArity(ThreadContext context, IRubyObject self, StaticScope scope, DynamicScope dynamicScope, IRubyObject[] args, Block block, Object[] temp)
cloneback to summary
public Instr clone(CloneInfo info)

Implements abstract org.jruby.ir.instructions.Instr.clone.

Doc from org.jruby.ir.instructions.Instr.clone.

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.

Parameters
info:CloneInfo

This object manages renaming of variables and labels, handles args and return values.

Returns:Instr

a new instruction that can be used in the target scope.

Annotations
@Override
decodeback to summary
public static CheckArityInstr decode(IRReaderDecoder d)
encodeback to summary
public void encode(IRWriterEncoder e)

Overrides org.jruby.ir.instructions.Instr.encode.

Annotations
@Override
getKeywordsback to summary
public Operand getKeywords()
toStringNonOperandArgsback to summary
public String[] toStringNonOperandArgs()

Overrides org.jruby.ir.instructions.Instr.toStringNonOperandArgs.

Annotations
@Override
visitback to summary
public void visit(IRVisitor visitor)

Overrides org.jruby.ir.instructions.Instr.visit.

Annotations
@Override