public class ReturnNode extends Node implements NonLocalControlFlowNode
| Constructor and Description |
|---|
ReturnNode(ISourcePosition position,
Node valueNode) |
| Modifier and Type | Method and Description |
|---|---|
Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern.
|
List<Node> |
childNodes() |
NodeType |
getNodeType() |
Object |
getTarget() |
Node |
getValueNode() |
boolean |
hasValue() |
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
void |
setTarget(Object target) |
assign, createList, createList, createList, createList, definition, getNodeName, getPosition, isNil, setPosition, toStringpublic ReturnNode(ISourcePosition position, Node valueNode)
public NodeType getNodeType()
getNodeType in class Nodepublic Object accept(NodeVisitor iVisitor)
public Node getValueNode()
getValueNode in interface NonLocalControlFlowNodepublic boolean hasValue()
hasValue in interface NonLocalControlFlowNodepublic Object getTarget()
public void setTarget(Object target)
public List<Node> childNodes()
childNodes in class Nodepublic IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
Copyright © 2001–2024 JRuby. All rights reserved.