public class RescueNode extends Node
| Modifier and Type | Field and Description |
|---|---|
private Node |
bodyNode |
private Node |
elseNode |
private RescueBodyNode |
rescueNode |
EMPTY_LIST| Constructor and Description |
|---|
RescueNode(ISourcePosition position,
Node bodyNode,
RescueBodyNode rescueNode,
Node elseNode) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(NodeVisitor iVisitor)
Accept for the visitor pattern.
|
java.util.List<Node> |
childNodes() |
private IRubyObject |
executeBody(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
Node |
getBodyNode()
Gets the bodyNode.
|
Node |
getElseNode()
Gets the elseNode.
|
private IRubyObject[] |
getExceptions(RescueBodyNode cRescueNode,
Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
NodeType |
getNodeType() |
RescueBodyNode |
getRescueNode()
Gets the first rescueNode.
|
private IRubyObject |
handleException(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock,
RaiseException raiseJump) |
private IRubyObject |
handleJavaException(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock,
java.lang.Throwable throwable) |
IRubyObject |
interpret(Ruby runtime,
ThreadContext context,
IRubyObject self,
Block aBlock) |
assign, createList, createList, createList, createList, definition, getNodeName, getPosition, isNil, setPosition, toStringprivate final Node bodyNode
private final RescueBodyNode rescueNode
private final Node elseNode
public RescueNode(ISourcePosition position, Node bodyNode, RescueBodyNode rescueNode, Node elseNode)
public NodeType getNodeType()
getNodeType in class Nodepublic java.lang.Object accept(NodeVisitor iVisitor)
public Node getBodyNode()
public Node getElseNode()
public RescueBodyNode getRescueNode()
public java.util.List<Node> childNodes()
childNodes in class Nodepublic IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
private IRubyObject handleException(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock, RaiseException raiseJump)
private IRubyObject handleJavaException(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock, java.lang.Throwable throwable)
private IRubyObject executeBody(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)
private IRubyObject[] getExceptions(RescueBodyNode cRescueNode, Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock)