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 String |
name |
protected StaticScope |
scope |
containsVariableAssignment, newline| Constructor and Description |
|---|
MethodDefNode(ISourcePosition position,
String 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.
|
String |
getName()
Gets the name.
|
StaticScope |
getScope()
Get the static scoping information.
|
accept, childNodes, containsVariableAssignment, createList, createList, createList, createList, findFirstChild, getLine, getNodeName, getNodeType, getPosition, isNewline, isNil, needsDefinitionCheck, setNewline, setPosition, toString, toString, toStringInternalprotected final String name
protected final ArgsNode argsNode
protected final StaticScope scope
protected final Node bodyNode
protected final int endLine
public MethodDefNode(ISourcePosition position, String 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 String getName()
public int getEndLine()
getEndLine in interface DefNodeCopyright © 2001-2016 JRuby. All Rights Reserved.