Package org.jruby.ast
Class DefsNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.MethodDefNode
org.jruby.ast.DefsNode
Represents a singleton method definition.
-
Field Summary
Fields inherited from class org.jruby.ast.MethodDefNode
argsNode, bodyNode, containsNextBreak, endLine, name, scope
Fields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
ConstructorsConstructorDescriptionDefsNode
(int line, Node receiverNode, RubySymbol name, ArgsNode argsNode, StaticScope scope, Node bodyNode, int endLine) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(NodeVisitor<T> iVisitor) Accept for the visitor pattern.Gets the receiverNode.Methods inherited from class org.jruby.ast.MethodDefNode
containsBreakNext, getArgsNode, getBodyNode, getEndLine, getName, getScope, setContainsNextBreak
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
-
Constructor Details
-
DefsNode
public DefsNode(int line, Node receiverNode, RubySymbol name, ArgsNode argsNode, StaticScope scope, Node bodyNode, int endLine)
-
-
Method Details
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-
accept
Accept for the visitor pattern. -
getReceiverNode
Gets the receiverNode.- Returns:
- Returns a Node
-
childNodes
- Specified by:
childNodes
in classNode
-