public abstract class MethodDefNode extends Node implements INameNode, DefNode
| Modifier and Type | Field and Description |
|---|---|
protected ArgsNode |
argsNode |
protected Node |
bodyNode |
protected int |
endLine |
protected RubySymbol |
name |
protected StaticScope |
scope |
containsVariableAssignment, newline| Constructor and Description |
|---|
MethodDefNode(ISourcePosition position,
RubySymbol name,
ArgsNode argsNode,
StaticScope scope,
Node bodyNode,
int endLine) |
| Modifier and Type | Method and Description |
|---|---|
ArgsNode |
getArgsNode()
Gets the argsNode.
|
Node |
getBodyNode()
Gets the body of this class.
|
int |
getEndLine()
Which line is the 'end' encountered on.
|
RubySymbol |
getName()
Gets the name.
|
StaticScope |
getScope()
Get the static scoping information.
|
accept, childNodes, containsVariableAssignment, createList, createList, createList, createList, executesOnce, findFirstChild, getFile, getLine, getNodeName, getNodeType, getPosition, isNewline, isNil, needsDefinitionCheck, setNewline, setPosition, toString, toString, toStringInternalprotected final RubySymbol name
protected final ArgsNode argsNode
protected final StaticScope scope
protected final Node bodyNode
protected final int endLine
public MethodDefNode(ISourcePosition position, RubySymbol name, ArgsNode argsNode, StaticScope scope, Node bodyNode, int endLine)
public ArgsNode getArgsNode()
getArgsNode in interface DefNodepublic StaticScope getScope()
public Node getBodyNode()
getBodyNode in interface DefNodepublic RubySymbol getName()
public int getEndLine()
getEndLine in interface DefNodeCopyright © 2001-2021 JRuby. All Rights Reserved.