| Modifier and Type | Field and Description |
|---|---|
protected ArgsNode |
argsNode |
protected Node |
bodyNode |
protected boolean |
containsNextBreak |
protected int |
endLine |
protected RubySymbol |
name |
protected StaticScope |
scope |
containsVariableAssignment, newline| Constructor and Description |
|---|
MethodDefNode(int line,
RubySymbol name,
ArgsNode argsNode,
StaticScope scope,
Node bodyNode,
int endLine) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsBreakNext() |
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.
|
void |
setContainsNextBreak() |
accept, childNodes, containsVariableAssignment, createList, createList, createList, createList, executesOnce, findFirstChild, getFile, getLine, getNodeName, getNodeType, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewlineprotected final RubySymbol name
protected final ArgsNode argsNode
protected final StaticScope scope
protected final Node bodyNode
protected final int endLine
protected boolean containsNextBreak
public MethodDefNode(int line,
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 DefNodepublic void setContainsNextBreak()
public boolean containsBreakNext()
Copyright © 2001-2022 JRuby. All Rights Reserved.