|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception dk.rode.thesis.interpreter.ExpressionException dk.rode.thesis.interpreter.BreakExpression.BreakException
public static final class BreakExpression.BreakException
A break exception is thrown when an
break
expression is evaluated.
If the exception stores an expression, the
interpreter
will transfer control to
that expression, or exit with a null result if the
exception does not store an expression.
Field Summary | |
---|---|
TypedExpression<?> |
expression
The target expression to be evaluated next. |
(package private) static long |
serialVersionUID
Serial version uid. |
Constructor Summary | |
---|---|
BreakExpression.BreakException()
No-arg constructor, which creates this break exception to cause the interpreter to exit. |
|
BreakExpression.BreakException(TypedExpression<?> expression)
Constructor, which creates this break exception to cause the interpreter to transfer control to expression , or exit if it is null. |
Method Summary | |
---|---|
String |
toString()
Return the string representation of this exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final TypedExpression<?> expression
Can be null.
static final long serialVersionUID
Constructor Detail |
---|
BreakExpression.BreakException()
BreakExpression.BreakException(TypedExpression<?> expression)
expression
, or exit if it is null.
expression
- The target expression; can be null.Method Detail |
---|
public String toString()
toString
in class Throwable
|
Gunni Rode / rode.dk | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |