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,
RubySymbol name,
Node argsNode,
Node iterNode,
boolean isLazy) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(NodeVisitor<T> iVisitor)
Accept for the visitor pattern.
|
java.util.List<Node> |
childNodes() |
Node |
getArgsNode()
Gets the argsNode representing the method's arguments' value for this call.
|
Node |
getIterNode() |
RubySymbol |
getName()
Gets the name.
|
NodeType |
getNodeType() |
Node |
getReceiverNode()
Gets the receiverNode.
|
boolean |
isLazy()
Is this call lazily execute because it was on right hand side of the lonely (&.) operator?
|
Node |
setArgsNode(Node argsNode)
Set the argsNode.
|
Node |
setIterNode(Node iterNode) |
protected java.lang.String |
toStringInternal()
Overridden by nodes that have additional internal state to be displated in toString.
|
containsVariableAssignment, createList, createList, createList, createList, executesOnce, findFirstChild, getFile, getLine, getNodeName, getPosition, isNewline, isNil, needsDefinitionCheck, setNewline, setPosition, toString, toStringprotected Node iterNode
public CallNode(ISourcePosition position, Node receiverNode, RubySymbol 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 RubySymbol getName()
public Node getReceiverNode()
public boolean isLazy()
public java.util.List<Node> childNodes()
childNodes in class Nodeprotected java.lang.String toStringInternal()
NodetoStringInternal in class NodeCopyright © 2001-2019 JRuby. All Rights Reserved.