public class AttrAssignNode extends Node implements INameNode, IArgumentNode
Modifier and Type | Field and Description |
---|---|
CallSite |
callAdapter |
protected Node |
receiverNode |
Constructor and Description |
---|
AttrAssignNode(ISourcePosition position,
Node receiverNode,
String name,
Node argsNode) |
Modifier and Type | Method and Description |
---|---|
Object |
accept(NodeVisitor visitor)
Accept for the visitor pattern.
|
IRubyObject |
assign(Ruby runtime,
ThreadContext context,
IRubyObject self,
IRubyObject value,
Block block,
boolean checkArity) |
List<Node> |
childNodes() |
RubyString |
definition(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
Node |
getArgsNode()
Gets the argsNode.
|
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) |
protected static String |
receiverClassName(IRubyObject object) |
Node |
setArgsNode(Node argsNode)
Set the argsNode
|
createList, createList, createList, createList, getNodeName, getPosition, isNil, setPosition, toString
public AttrAssignNode(ISourcePosition position, Node receiverNode, String name, Node argsNode)
public NodeType getNodeType()
getNodeType
in class Node
public Object accept(NodeVisitor visitor)
public String getName()
public Node getReceiverNode()
public Node getArgsNode()
getArgsNode
in interface IArgumentNode
public Node setArgsNode(Node argsNode)
setArgsNode
in interface IArgumentNode
argsNode
- set the arguments for this node.public List<Node> childNodes()
childNodes
in class Node
public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
protected static boolean hasMetaClass(IRubyObject object)
protected static String receiverClassName(IRubyObject object)
public IRubyObject assign(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
Copyright © 2001-2015 JRuby. All Rights Reserved.