|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jruby.ast.Node
org.jruby.ast.AttrAssignNode
public class AttrAssignNode
Node that represents an assignment of either an array element or attribute.
| Field Summary | |
|---|---|
CallSite |
normalCallAdapter
|
protected Node |
receiverNode
|
CallSite |
variableCallAdapter
|
| Fields inherited from class org.jruby.ast.Node |
|---|
EMPTY_COMMENT_LIST, INVALID_POSITION, nodeId |
| Constructor Summary | |
|---|---|
AttrAssignNode(ISourcePosition position,
Node receiverNode,
java.lang.String name,
Node argsNode)
|
|
| Method Summary | |
|---|---|
Instruction |
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()
|
java.lang.String |
definition(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock)
|
Node |
getArgsNode()
Gets the argsNode. |
java.lang.String |
getName()
Gets the name. |
Node |
getReceiverNode()
Gets the receiverNode. |
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock)
|
protected Node |
newAttrAssignNode(ArrayNode argsNode)
|
protected Node |
newMutatedAttrAssignNode(ArrayNode argsNode)
|
Node |
setArgsNode(Node argsNode)
Set the argsNode |
| Methods inherited from class org.jruby.ast.Node |
|---|
addComment, addComments, createList, getComments, getNodeName, getPosition, getPositionIncludingComments, hasComments, isInvisible, setPosition, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final Node receiverNode
public CallSite variableCallAdapter
public CallSite normalCallAdapter
| Constructor Detail |
|---|
public AttrAssignNode(ISourcePosition position,
Node receiverNode,
java.lang.String name,
Node argsNode)
| Method Detail |
|---|
public Instruction accept(NodeVisitor visitor)
accept in class Nodevisitor - the visitorpublic java.lang.String getName()
getName in interface INameNodepublic Node getReceiverNode()
public Node getArgsNode()
getArgsNode in interface IArgumentNodeprotected Node newAttrAssignNode(ArrayNode argsNode)
protected Node newMutatedAttrAssignNode(ArrayNode argsNode)
public Node setArgsNode(Node argsNode)
setArgsNode in interface IArgumentNodeargsNode - set the arguments for this node.public java.util.List<Node> childNodes()
childNodes in class Node
public IRubyObject interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock)
interpret in class Node
public IRubyObject assign(Ruby runtime,
ThreadContext context,
IRubyObject self,
IRubyObject value,
Block block,
boolean checkArity)
assign in class Node
public java.lang.String definition(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock)
definition in class Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||