Top Description Fields Constructors Methods
org.jruby.ast

public Class RescueNode

extends Node
Class Inheritance
Known Direct Subclasses
org.jruby.ast.RescueModNode
Imports
java.util.List, org.jruby.ast.visitor.NodeVisitor

Represents a rescue statement

Field Summary

Modifier and TypeField and Description
private final Node
private final Node
private final RescueBodyNode
Inherited from org.jruby.ast.Node:
containsVariableAssignmentEMPTY_LISTnewline

Constructor Summary

AccessConstructor and Description
public
RescueNode(int line, Node bodyNode, RescueBodyNode rescueNode, Node elseNode)

Method Summary

Modifier and TypeMethod and Description
public <T> T
accept(NodeVisitor<T>
the visitor
iVisitor
)

Implements abstract org.jruby.ast.Node.accept.

Accept for the visitor pattern.

public List<Node>
public Node

Returns:

Returns a Node
getBodyNode
()

Gets the bodyNode.

public Node

Returns:

Returns a Node
getElseNode
()

Gets the elseNode.

public NodeType
public RescueBodyNode

Returns:

Returns a Node
getRescueNode
()

Gets the first rescueNode.

Inherited from org.jruby.ast.Node:
containsVariableAssignmentcreateListcreateListcreateListcreateListexecutesOncegetFilegetLinegetNodeNameisNewlineisNilneedsDefinitionChecksetLinesetNewlinetoStringtoStringtoStringExtraInfotoStringInternalunsetNewline

Field Detail

bodyNodeback to summary
private final Node bodyNode
elseNodeback to summary
private final Node elseNode
rescueNodeback to summary
private final RescueBodyNode rescueNode

Constructor Detail

RescueNodeback to summary
public RescueNode(int line, Node bodyNode, RescueBodyNode rescueNode, Node elseNode)

Method Detail

acceptback to summary
public <T> T accept(NodeVisitor<T> iVisitor)

Implements abstract org.jruby.ast.Node.accept.

Accept for the visitor pattern.

Parameters
iVisitor:NodeVisitor<T>

the visitor

childNodesback to summary
public List<Node> childNodes()

Implements abstract org.jruby.ast.Node.childNodes.

getBodyNodeback to summary
public Node getBodyNode()

Gets the bodyNode.

Returns:Node

Returns a Node

getElseNodeback to summary
public Node getElseNode()

Gets the elseNode.

Returns:Node

Returns a Node

getNodeTypeback to summary
public NodeType getNodeType()

Implements abstract org.jruby.ast.Node.getNodeType.

Returns:NodeType

Doc from org.jruby.ast.Node.getNodeType.

the nodeId

getRescueNodeback to summary
public RescueBodyNode getRescueNode()

Gets the first rescueNode.

Returns:RescueBodyNode

Returns a Node