public class ReturnNode extends Node implements NonLocalControlFlowNode
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object |
target |
private Node |
valueNode |
EMPTY_LIST| Constructor and Description |
|---|
ReturnNode(ISourcePosition position,
Node valueNode) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern.
|
java.util.List<Node> |
childNodes() |
NodeType |
getNodeType() |
java.lang.Object |
getTarget() |
Node |
getValueNode() |
boolean |
hasValue() |
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
void |
setTarget(java.lang.Object target) |
assign, createList, createList, createList, createList, definition, getNodeName, getPosition, isNil, setPosition, toStringprivate final Node valueNode
private java.lang.Object target
public ReturnNode(ISourcePosition position, Node valueNode)
public NodeType getNodeType()
getNodeType in class Nodepublic java.lang.Object accept(NodeVisitor iVisitor)
public Node getValueNode()
getValueNode in interface NonLocalControlFlowNodepublic boolean hasValue()
hasValue in interface NonLocalControlFlowNodepublic java.lang.Object getTarget()
public void setTarget(java.lang.Object target)
public java.util.List<Node> childNodes()
childNodes in class Nodepublic IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)