org.jruby.exceptions
Class ReturnJump

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.jruby.exceptions.JumpException
                  extended byorg.jruby.exceptions.ReturnJump
All Implemented Interfaces:
java.io.Serializable

public class ReturnJump
extends JumpException

The ReturnException is thrown if a 'return' statement is interpreted.

Version:
$Revision: 1.1 $
Author:
jpetersen
See Also:
Serialized Form

Constructor Summary
ReturnJump(IRubyObject returnValue)
          Creates a new ReturnException with a return value.
 
Method Summary
 IRubyObject getReturnValue()
          Returns the return value.
 
Methods inherited from class org.jruby.exceptions.JumpException
fillInStackTrace, originalFillInStackTrace
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReturnJump

public ReturnJump(IRubyObject returnValue)
Creates a new ReturnException with a return value.

Parameters:
returnValue - The return value.
Method Detail

getReturnValue

public IRubyObject getReturnValue()
Returns the return value.

Returns:
Value of property returnValue.


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.