public class CallNode extends Node implements INameNode, IArgumentNode, BlockAcceptingNode
Modifier and Type | Field and Description |
---|---|
CallSite |
callAdapter |
protected Node |
iterNode |
Constructor and Description |
---|
CallNode(ISourcePosition position,
Node receiverNode,
String name,
Node argsNode)
Deprecated.
|
CallNode(ISourcePosition position,
Node receiverNode,
String name,
Node argsNode,
Node iterNode) |
Modifier and Type | Method and Description |
---|---|
Object |
accept(NodeVisitor iVisitor)
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 representing the method's arguments' value for this call.
|
Node |
getIterNode() |
String |
getName()
Gets the name.
|
NodeType |
getNodeType() |
Node |
getReceiverNode()
Gets the receiverNode.
|
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
Node |
setArgsNode(Node argsNode)
Set the argsNode.
|
Node |
setIterNode(Node iterNode) |
createList, createList, createList, createList, getNodeName, getPosition, isNil, setPosition, toString
@Deprecated public CallNode(ISourcePosition position, Node receiverNode, String name, Node argsNode)
public CallNode(ISourcePosition position, Node receiverNode, String name, Node argsNode, Node iterNode)
public NodeType getNodeType()
getNodeType
in class Node
public Object accept(NodeVisitor iVisitor)
public Node getIterNode()
getIterNode
in interface BlockAcceptingNode
public Node setIterNode(Node iterNode)
setIterNode
in interface BlockAcceptingNode
public Node getArgsNode()
getArgsNode
in interface IArgumentNode
public Node setArgsNode(Node argsNode)
setArgsNode
in interface IArgumentNode
argsNode
- set the arguments for this node.public String getName()
public Node getReceiverNode()
public List<Node> childNodes()
childNodes
in class Node
public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
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-2014 JRuby. All Rights Reserved.