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