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, toStringprotected 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 Nodepublic <T> T accept(NodeVisitor<T> iVisitor)
public Node getIterNode()
getIterNode in interface BlockAcceptingNodepublic Node setIterNode(Node iterNode)
setIterNode in interface BlockAcceptingNodepublic Node getArgsNode()
getArgsNode in interface IArgumentNodepublic Node setArgsNode(Node argsNode)
setArgsNode in interface IArgumentNodeargsNode - set the arguments for this node.public String getName()
public Node getReceiverNode()
public boolean isLazy()
public List<Node> childNodes()
childNodes in class Nodeprotected String toStringInternal()
NodetoStringInternal in class NodeCopyright © 2001-2016 JRuby. All Rights Reserved.