public class AttrAssignNode extends Node implements INameNode, IArgumentNode
| Modifier and Type | Field and Description |
|---|---|
private Node |
argsNode |
CallSite |
callAdapter |
private java.lang.String |
name |
protected Node |
receiverNode |
EMPTY_LIST| Constructor and Description |
|---|
AttrAssignNode(ISourcePosition position,
Node receiverNode,
java.lang.String name,
Node argsNode) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(NodeVisitor visitor)
Accept for the visitor pattern.
|
IRubyObject |
assign(Ruby runtime,
ThreadContext context,
IRubyObject self,
IRubyObject value,
Block block,
boolean checkArity) |
java.util.List<Node> |
childNodes() |
RubyString |
definition(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
Node |
getArgsNode()
Gets the argsNode.
|
java.lang.String |
getName()
Gets the name.
|
NodeType |
getNodeType() |
Node |
getReceiverNode()
Gets the receiverNode.
|
protected static boolean |
hasMetaClass(IRubyObject object) |
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
protected Node |
newAttrAssignNode(ArrayNode argsNode) |
protected Node |
newMutatedAttrAssignNode(ArrayNode argsNode) |
private IRubyObject |
otherAssign(Ruby runtime,
ThreadContext context,
IRubyObject self,
IRubyObject value,
Block block,
boolean checkArity) |
protected static java.lang.String |
receiverClassName(IRubyObject object) |
private IRubyObject |
selfAssign(Ruby runtime,
ThreadContext context,
IRubyObject self,
IRubyObject value,
Block block,
boolean checkArity) |
private void |
setArgsInternal(Node argsNode) |
Node |
setArgsNode(Node argsNode)
Set the argsNode
|
createList, createList, createList, createList, getNodeName, getPosition, isNil, setPosition, toStringprotected final Node receiverNode
private java.lang.String name
private Node argsNode
public CallSite callAdapter
public AttrAssignNode(ISourcePosition position, Node receiverNode, java.lang.String name, Node argsNode)
public NodeType getNodeType()
getNodeType in class Nodepublic java.lang.Object accept(NodeVisitor visitor)
public java.lang.String getName()
public Node getReceiverNode()
public Node getArgsNode()
getArgsNode in interface IArgumentNodepublic Node setArgsNode(Node argsNode)
setArgsNode in interface IArgumentNodeargsNode - set the arguments for this node.private void setArgsInternal(Node argsNode)
public java.util.List<Node> childNodes()
childNodes in class Nodepublic IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
protected static boolean hasMetaClass(IRubyObject object)
protected static java.lang.String receiverClassName(IRubyObject object)
public IRubyObject assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value, Block block, boolean checkArity)
private IRubyObject selfAssign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value, Block block, boolean checkArity)
private IRubyObject otherAssign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value, Block block, boolean checkArity)
public RubyString definition(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
definition in class Node