Package org.jruby.ast
Class RescueNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.RescueNode
- Direct Known Subclasses:
RescueModNode
Represents a rescue statement
-
Field Summary
Fields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
ConstructorsConstructorDescriptionRescueNode
(int line, Node bodyNode, RescueBodyNode rescueNode, Node elseNode) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(NodeVisitor<T> iVisitor) Accept for the visitor pattern.Gets the bodyNode.Gets the elseNode.Gets the first rescueNode.Methods inherited from class org.jruby.ast.Node
containsVariableAssignment, createList, createList, createList, createList, executesOnce, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
-
Constructor Details
-
RescueNode
-
-
Method Details
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-
accept
Accept for the visitor pattern. -
getBodyNode
Gets the bodyNode.- Returns:
- Returns a Node
-
getElseNode
Gets the elseNode.- Returns:
- Returns a Node
-
getRescueNode
Gets the first rescueNode.- Returns:
- Returns a Node
-
childNodes
- Specified by:
childNodes
in classNode
-