Package org.jruby.ast
Class RescueBodyNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.RescueBodyNode
Represents the contents of a rescue to be evaluated
-
Field Summary
Fields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
ConstructorsConstructorDescriptionRescueBodyNode
(int line, Node exceptionNodes, Node bodyNode, RescueBodyNode optRescueNode) -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(NodeVisitor<T> iVisitor) Accept for the visitor pattern.Gets the bodyNode.Gets the exceptionNodes.Get the next rescue node (if any).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
-
RescueBodyNode
-
-
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
-
getOptRescueNode
Get the next rescue node (if any). -
getExceptionNodes
Gets the exceptionNodes.- Returns:
- Returns a Node
-
childNodes
- Specified by:
childNodes
in classNode
-