Package org.jruby.ast
Class DefnNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.MethodDefNode
org.jruby.ast.DefnNode
method definition node.
-
Field Summary
Fields inherited from class org.jruby.ast.MethodDefNode
argsNode, bodyNode, containsNextBreak, endLine, name, scopeFields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline -
Constructor Summary
ConstructorsConstructorDescriptionDefnNode(int line, RubySymbol name, ArgsNode argsNode, StaticScope scope, Node bodyNode, int endLine) -
Method Summary
Methods inherited from class org.jruby.ast.MethodDefNode
containsBreakNext, getArgsNode, getBodyNode, getEndLine, getName, getScope, setContainsNextBreakMethods 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
-
DefnNode
public DefnNode(int line, RubySymbol name, ArgsNode argsNode, StaticScope scope, Node bodyNode, int endLine)
-
-
Method Details
-
getNodeType
- Specified by:
getNodeTypein classNode- Returns:
- the nodeId
-
accept
-
childNodes
- Specified by:
childNodesin classNode
-