Package org.jruby.ast
Interface DefNode
- All Known Implementing Classes:
DefnNode
,DefsNode
,ForNode
,IterNode
,LambdaNode
,MethodDefNode
,PostExeNode
,PreExe19Node
,PreExeNode
public interface DefNode
Methods and blocks both implement these.
-
Method Summary
Modifier and TypeMethodDescriptionGets the argsNode.Gets the body of this class.int
Which line if the end keyword locatedgetScope()
Get the static scoping information.
-
Method Details
-
getArgsNode
ArgsNode getArgsNode()Gets the argsNode.- Returns:
- Returns a Node
-
getScope
StaticScope getScope()Get the static scoping information.- Returns:
- the scoping info
-
getBodyNode
Node getBodyNode()Gets the body of this class.- Returns:
- the contents
-
getEndLine
int getEndLine()Which line if the end keyword located- Returns:
- the line (zero-offset)
-