Package org.jruby.ast
Class FCallNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.FCallNode
- All Implemented Interfaces:
BlockAcceptingNode
,CanRaise
,IArgumentNode
,INameNode
public class FCallNode
extends Node
implements INameNode, IArgumentNode, BlockAcceptingNode, CanRaise
Represents a method call with self as an implicit receiver.
-
Field Summary
FieldsFields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
ConstructorsConstructorDescriptionFCallNode
(int line, RubySymbol name) FCallNode
(int line, RubySymbol name, Node argsNode, Node iterNode) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(NodeVisitor<T> iVisitor) Accept for the visitor pattern.Gets the argsNode.Get the node that represents a block or a block variable.getName()
Gets the name.setArgsNode
(Node argsNode) Set the argsNode.setIterNode
(Node iterNode) Methods inherited from class org.jruby.ast.Node
containsVariableAssignment, createList, createList, createList, createList, executesOnce, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
-
Field Details
-
argsNode
-
iterNode
-
-
Constructor Details
-
FCallNode
-
FCallNode
-
-
Method Details
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-
accept
Accept for the visitor pattern. -
getIterNode
Get the node that represents a block or a block variable.- Specified by:
getIterNode
in interfaceBlockAcceptingNode
-
setIterNode
- Specified by:
setIterNode
in interfaceBlockAcceptingNode
-
getArgsNode
Gets the argsNode.- Specified by:
getArgsNode
in interfaceIArgumentNode
- Returns:
- Returns a Node
-
setArgsNode
Set the argsNode. Changes to parser means fcall is made before actual args are associated with fcall so we need a setter.- Specified by:
setArgsNode
in interfaceIArgumentNode
-
getName
Gets the name. -
childNodes
- Specified by:
childNodes
in classNode
-