Top Description Fields Constructors Methods
org.jruby.ast

public Class DefsNode

extends MethodDefNode
implements INameNode
Class Inheritance
All Implemented Interfaces
org.jruby.ast.types.INameNode
Imports
java.util.List, org.jruby.RubySymbol, org.jruby.ast.types.INameNode, org.jruby.ast.visitor.NodeVisitor, org.jruby.parser.StaticScope

Represents a singleton method definition.

Field Summary

Modifier and TypeField and Description
private final Node
Inherited from org.jruby.ast.MethodDefNode:
argsNodebodyNodecontainsNextBreakendLinenamescope

Constructor Summary

AccessConstructor and Description
public
DefsNode(int line, Node receiverNode, RubySymbol name, ArgsNode argsNode, StaticScope scope, Node bodyNode, int endLine)

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 NodeType
public Node

Returns:

Returns a Node
getReceiverNode
()

Gets the receiverNode.

Inherited from org.jruby.ast.MethodDefNode:
containsBreakNextgetArgsNodegetBodyNodegetEndLinegetNamegetScopesetContainsNextBreak

Field Detail

receiverNodeback to summary
private final Node receiverNode

Constructor Detail

DefsNodeback to summary
public DefsNode(int line, Node receiverNode, RubySymbol name, ArgsNode argsNode, StaticScope scope, Node bodyNode, int endLine)

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.

getNodeTypeback to summary
public NodeType getNodeType()

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

Returns:NodeType

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

the nodeId

getReceiverNodeback to summary
public Node getReceiverNode()

Gets the receiverNode.

Returns:Node

Returns a Node