koala.dynamicjava.interpreter.error
Class ReturnException
java.lang.Object
java.lang.Throwable
java.lang.Error
koala.dynamicjava.interpreter.error.ExecutionError
koala.dynamicjava.interpreter.error.ReturnException
- All Implemented Interfaces:
- Serializable
public class ReturnException
- extends ExecutionError
This error is thrown by an interpreted throw statement
- Version:
- 1.0 - 1999/05/26
- Author:
- Stephane Hillion
- See Also:
- Serialized Form
|
Method Summary |
Object |
getValue()
Returns the value returned |
boolean |
hasValue()
Whether or not the return statement had a value |
ReturnException
public ReturnException(String s,
Node n)
- A ReturnException with no value.
ReturnException
public ReturnException(String s,
Object o,
Node n)
- A ReturnException with a value.
getValue
public Object getValue()
- Returns the value returned
hasValue
public boolean hasValue()
- Whether or not the return statement had a value