koala.dynamicjava.interpreter.throwable
Class BreakException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--koala.dynamicjava.interpreter.throwable.BreakException
- All Implemented Interfaces:
- java.io.Serializable
- public class BreakException
- extends java.lang.RuntimeException
Thrown to indicate that a break statement has been reached
- See Also:
- Serialized Form
Constructor Summary |
BreakException(java.lang.String m)
Constructs an BreakException with the
specified detail message. |
BreakException(java.lang.String m,
java.lang.String l)
Constructs an BreakException with the
specified detail message and label. |
Method Summary |
java.lang.String |
getLabel()
Returns the label of the statement that thrown the exception |
boolean |
isLabeled()
Tests whether the statement was labeled |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BreakException
public BreakException(java.lang.String m)
- Constructs an
BreakException
with the
specified detail message.
- Parameters:
m
- the detail message.
BreakException
public BreakException(java.lang.String m,
java.lang.String l)
- Constructs an
BreakException
with the
specified detail message and label.
- Parameters:
m
- the detail message.l
- the label
isLabeled
public boolean isLabeled()
- Tests whether the statement was labeled
getLabel
public java.lang.String getLabel()
- Returns the label of the statement that thrown the exception
Copyright ? 2001 Stephane Hillion. All Rights Reserved.