public class CallNode extends Node implements INameNode, IArgumentNode, BlockAcceptingNode
Modifier and Type | Field and Description |
---|---|
protected Node |
iterNode |
containsVariableAssignment, newline
Constructor and Description |
---|
CallNode(ISourcePosition position,
Node receiverNode,
String name,
Node argsNode,
Node iterNode) |
CallNode(ISourcePosition position,
Node receiverNode,
String name,
Node argsNode,
Node iterNode,
boolean isLazy) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(NodeVisitor<T> iVisitor)
Accept for the visitor pattern.
|
List<Node> |
childNodes() |
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.
|
boolean |
isLazy() |
Node |
setArgsNode(Node argsNode)
Set the argsNode.
|
Node |
setIterNode(Node iterNode) |
protected String |
toStringInternal()
Overridden by nodes that have additional internal state to be displated in toString.
|
containsVariableAssignment, createList, createList, createList, createList, findFirstChild, getLine, getNodeName, getPosition, isNewline, isNil, needsDefinitionCheck, setNewline, setPosition, toString, toString
protected Node iterNode
public CallNode(ISourcePosition position, Node receiverNode, String name, Node argsNode, Node iterNode)
public CallNode(ISourcePosition position, Node receiverNode, String name, Node argsNode, Node iterNode, boolean isLazy)
public NodeType getNodeType()
getNodeType
in class Node
public <T> T accept(NodeVisitor<T> 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 boolean isLazy()
public List<Node> childNodes()
childNodes
in class Node
protected String toStringInternal()
Node
toStringInternal
in class Node
Copyright © 2001-2016 JRuby. All Rights Reserved.