public class AttrAssignNode extends Node implements INameNode, IArgumentNode
| Modifier and Type | Field and Description |
|---|---|
CallSite |
normalCallAdapter |
protected Node |
receiverNode |
CallSite |
variableCallAdapter |
ASSIGNMENT_BYTELIST, CLASS_VARIABLE_BYTELIST, CONSTANT_BYTELIST, EXPRESSION_BYTELIST, FALSE_BYTELIST, GLOBAL_VARIABLE_BYTELIST, INSTANCE_VARIABLE_BYTELIST, LOCAL_VARIABLE_BYTELIST, LOCAL_VARIABLE_IN_BLOCK_BYTELIST, METHOD_BYTELIST, NIL_BYTELIST, SELF_BYTELIST, SUPER_BYTELIST, TRUE_BYTELIST, YIELD_BYTELIST| 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() |
org.jruby.util.ByteList |
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) |
protected static java.lang.String |
receiverClassName(IRubyObject object) |
protected CallSite |
selectCallSite(IRubyObject self,
IRubyObject receiver) |
Node |
setArgsNode(Node argsNode)
Set the argsNode
|
createList, getNodeName, getPosition, isInvisible, setPosition, toStringprotected final Node receiverNode
public CallSite variableCallAdapter
public CallSite normalCallAdapter
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.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)
protected CallSite selectCallSite(IRubyObject self, IRubyObject receiver)
public IRubyObject assign(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject value, Block block, boolean checkArity)
public org.jruby.util.ByteList definition(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
definition in class NodeCopyright © 2002-2009 JRuby Team. All Rights Reserved.