public abstract class MethodDefNode extends Node implements INameNode, DefNode
Modifier and Type | Field and Description |
---|---|
protected ArgsNode |
argsNode |
protected Node |
bodyNode |
protected String |
name |
protected StaticScope |
scope |
containsVariableAssignment, newline
Constructor and Description |
---|
MethodDefNode(ISourcePosition position,
String name,
ArgsNode argsNode,
StaticScope scope,
Node bodyNode) |
Modifier and Type | Method and Description |
---|---|
ArgsNode |
getArgsNode()
Gets the argsNode.
|
Node |
getBodyNode()
Gets the body of this class.
|
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, toStringInternal
protected final String name
protected final ArgsNode argsNode
protected final StaticScope scope
protected final Node bodyNode
public MethodDefNode(ISourcePosition position, String name, ArgsNode argsNode, StaticScope scope, Node bodyNode)
public ArgsNode getArgsNode()
getArgsNode
in interface DefNode
public StaticScope getScope()
public Node getBodyNode()
getBodyNode
in interface DefNode
Copyright © 2001-2016 JRuby. All Rights Reserved.