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, toStringInternal
protected 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 DefNode
public StaticScope getScope()
public Node getBodyNode()
getBodyNode
in interface DefNode
public RubySymbol getName()
public int getEndLine()
getEndLine
in interface DefNode
Copyright © 2001-2020 JRuby. All Rights Reserved.