Top Description Fields Constructors Methods
org.jruby.ast

public Class FCallNode

extends Node
implements INameNode, IArgumentNode, BlockAcceptingNode, CanRaise
Class Inheritance
All Implemented Interfaces
org.jruby.ast.CanRaise, org.jruby.ast.BlockAcceptingNode, org.jruby.ast.IArgumentNode, org.jruby.ast.types.INameNode
Imports
java.util.List, org.jruby.RubySymbol, org.jruby.ast.types.INameNode, org.jruby.ast.visitor.NodeVisitor

Represents a method call with self as an implicit receiver.

Field Summary

Modifier and TypeField and Description
protected Node
protected Node
private final RubySymbol
Inherited from org.jruby.ast.Node:
containsVariableAssignmentEMPTY_LISTnewline

Constructor Summary

AccessConstructor and Description
public
FCallNode(int line, RubySymbol name)

public
FCallNode(int line, RubySymbol name, Node argsNode, Node iterNode)

Method Summary

Modifier and TypeMethod and Description
public <T> T
accept(NodeVisitor<T>
the visitor
iVisitor
)

Implements abstract org.jruby.ast.Node.accept.

Accept for the visitor pattern.

public List<Node>
public Node

Returns:

Returns a Node
getArgsNode
()

Implements org.jruby.ast.IArgumentNode.getArgsNode.

Gets the argsNode.

public Node
getIterNode()

Implements org.jruby.ast.BlockAcceptingNode.getIterNode.

Get the node that represents a block or a block variable.

public RubySymbol

Returns:

Returns a String
getName
()

Implements org.jruby.ast.types.INameNode.getName.

Gets the name.

public NodeType
public Node
setArgsNode(Node argsNode)

Implements org.jruby.ast.IArgumentNode.setArgsNode.

Set the argsNode.

public Node
Inherited from org.jruby.ast.Node:
containsVariableAssignmentcreateListcreateListcreateListcreateListexecutesOncegetFilegetLinegetNodeNameisNewlineisNilneedsDefinitionChecksetLinesetNewlinetoStringtoStringtoStringExtraInfotoStringInternalunsetNewline

Field Detail

argsNodeback to summary
protected Node argsNode
iterNodeback to summary
protected Node iterNode
nameback to summary
private final RubySymbol name

Constructor Detail

FCallNodeback to summary
public FCallNode(int line, RubySymbol name)
FCallNodeback to summary
public FCallNode(int line, RubySymbol name, Node argsNode, Node iterNode)

Method Detail

acceptback to summary
public <T> T accept(NodeVisitor<T> iVisitor)

Implements abstract org.jruby.ast.Node.accept.

Accept for the visitor pattern.

Parameters
iVisitor:NodeVisitor<T>

the visitor

childNodesback to summary
public List<Node> childNodes()

Implements abstract org.jruby.ast.Node.childNodes.

getArgsNodeback to summary
public Node getArgsNode()

Implements org.jruby.ast.IArgumentNode.getArgsNode.

Gets the argsNode.

Returns:Node

Returns a Node

getIterNodeback to summary
public Node getIterNode()

Implements org.jruby.ast.BlockAcceptingNode.getIterNode.

Get the node that represents a block or a block variable.

getNameback to summary
public RubySymbol getName()

Implements org.jruby.ast.types.INameNode.getName.

Gets the name.

Returns:RubySymbol

Returns a String

getNodeTypeback to summary
public NodeType getNodeType()

Implements abstract org.jruby.ast.Node.getNodeType.

Returns:NodeType

Doc from org.jruby.ast.Node.getNodeType.

the nodeId

setArgsNodeback to summary
public Node setArgsNode(Node argsNode)

Implements org.jruby.ast.IArgumentNode.setArgsNode.

Set the argsNode. Changes to parser means fcall is made before actual args are associated with fcall so we need a setter.

setIterNodeback to summary
public Node setIterNode(Node iterNode)

Implements org.jruby.ast.BlockAcceptingNode.setIterNode.