org.jrubyparser.ast
Class RescueNode

java.lang.Object
  extended by org.jrubyparser.ast.Node
      extended by org.jrubyparser.ast.RescueNode
All Implemented Interfaces:
ISourcePositionHolder

public class RescueNode
extends Node

Represents a rescue statement


Constructor Summary
RescueNode(SourcePosition position, Node bodyNode, RescueBodyNode rescueNode, Node elseNode)
           
 
Method Summary
 Object accept(NodeVisitor iVisitor)
          Accept for the visitor pattern.
 Node getBody()
          Gets the bodyNode.
 Node getBodyException()
          Deprecated. 
 Node getElse()
          Gets the elseNode.
 Node getElseNode()
          Deprecated. 
 NodeType getNodeType()
           
 RescueBodyNode getRescue()
          Gets the first rescueNode.
 RescueBodyNode getRescueNode()
          Deprecated. 
 boolean isSame(Node node)
          Checks node for 'sameness' for diffing.
 void setBody(Node body)
           
 void setElse(Node elseNode)
           
 void setRescue(RescueBodyNode rescue)
           
 
Methods inherited from class org.jrubyparser.ast.Node
adopt, adopt, adoptUsingNodesPosition, childNodes, comparePositionWith, createList, getClosestIScope, getClosestModule, getGrandParent, getInlineComment, getInnermostIter, getMethodFor, getNodeAt, getNodeName, getOutermostIter, getParent, getPosition, getPositionIncludingComments, getPreviousComments, insertAfter, insertAll, insertBefore, insertNode, isBlockParameter, isDescendentOf, isLeaf, isMethodParameter, setParent, setPosition, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RescueNode

public RescueNode(SourcePosition position,
                  Node bodyNode,
                  RescueBodyNode rescueNode,
                  Node elseNode)
Method Detail

isSame

public boolean isSame(Node node)
Description copied from class: Node
Checks node for 'sameness' for diffing.

Overrides:
isSame in class Node
Parameters:
node - The node to be compared to.
Returns:
Returns a boolean.

getNodeType

public NodeType getNodeType()
Specified by:
getNodeType in class Node
Returns:
the nodeId

accept

public Object accept(NodeVisitor iVisitor)
Accept for the visitor pattern.

Specified by:
accept in class Node
Parameters:
iVisitor - the visitor

getBody

public Node getBody()
Gets the bodyNode.

Returns:
Returns a Node

getBodyException

@Deprecated
public Node getBodyException()
Deprecated. 


setBody

public void setBody(Node body)

getElse

public Node getElse()
Gets the elseNode.

Returns:
Returns a Node

getElseNode

@Deprecated
public Node getElseNode()
Deprecated. 


setElse

public void setElse(Node elseNode)

getRescue

public RescueBodyNode getRescue()
Gets the first rescueNode.

Returns:
Returns a Node

getRescueNode

@Deprecated
public RescueBodyNode getRescueNode()
Deprecated. 


setRescue

public void setRescue(RescueBodyNode rescue)


Copyright © 2013. All Rights Reserved.