Top Constructors Methods
org.jruby.ir.instructions

public Class AttrAssignInstr

extends NoResultCallInstr
Class Inheritance
Known Direct Subclasses
org.jruby.ir.instructions.specialized.OneArgOperandAttrAssignInstr
Imports
org.jruby.RubyInstanceConfig, .RubySymbol, org.jruby.ir.IRScope, .IRVisitor, .Operation, org.jruby.ir.instructions.specialized.OneArgOperandAttrAssignInstr, org.jruby.ir.operands.NullBlock, .Operand, .Self, org.jruby.ir.persistence.IRReaderDecoder, .IRWriterEncoder, org.jruby.ir.transformations.inlining.CloneInfo, org.jruby.parser.StaticScope, org.jruby.runtime.*, org.jruby.runtime.builtin.IRubyObject

Constructor Summary

AccessConstructor and Description
protected
AttrAssignInstr(IRScope scope, CallType callType, RubySymbol name, Operand receiver, Operand[] args, int flags, boolean potentiallyRefined, CallSite callSite, long callSiteId)

public
AttrAssignInstr(IRScope scope, Operand obj, RubySymbol attr, Operand[] args, Operand block, int flags, boolean isPotentiallyRefined)

Method Summary

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

Overrides org.jruby.ir.instructions.NoResultCallInstr.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 AttrAssignInstr
create(IRScope scope, Operand obj, RubySymbol attr, Operand[] args, Operand block, int flags, boolean isPotentiallyRefined)

public static AttrAssignInstr
create(IRScope scope, Operand obj, RubySymbol attr, Operand[] args, int flags, boolean isPotentiallyRefined)

public static AttrAssignInstr
public void
public Object
public void
Inherited from org.jruby.ir.instructions.NoResultCallInstr:
creategetResult

Constructor Detail

AttrAssignInstrback to summary
protected AttrAssignInstr(IRScope scope, CallType callType, RubySymbol name, Operand receiver, Operand[] args, int flags, boolean potentiallyRefined, CallSite callSite, long callSiteId)
AttrAssignInstrback to summary
public AttrAssignInstr(IRScope scope, Operand obj, RubySymbol attr, Operand[] args, Operand block, int flags, boolean isPotentiallyRefined)

Method Detail

cloneback to summary
public Instr clone(CloneInfo ii)

Overrides org.jruby.ir.instructions.NoResultCallInstr.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
ii: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
createback to summary
public static AttrAssignInstr create(IRScope scope, Operand obj, RubySymbol attr, Operand[] args, Operand block, int flags, boolean isPotentiallyRefined)
createback to summary
public static AttrAssignInstr create(IRScope scope, Operand obj, RubySymbol attr, Operand[] args, int flags, boolean isPotentiallyRefined)
decodeback to summary
public static AttrAssignInstr decode(IRReaderDecoder d)

Hides org.jruby.ir.instructions.NoResultCallInstr.decode.

encodeback to summary
public void encode(IRWriterEncoder e)

Overrides org.jruby.ir.instructions.CallBase.encode.

Annotations
@Override
interpretback to summary
public Object interpret(ThreadContext context, StaticScope currScope, DynamicScope dynamicScope, IRubyObject self, Object[] temp)

Overrides org.jruby.ir.instructions.CallBase.interpret.

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

Overrides org.jruby.ir.instructions.NoResultCallInstr.visit.

Annotations
@Override