|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teatrove.tea.parsetree.Node
org.teatrove.tea.parsetree.Statement
org.teatrove.tea.parsetree.ExceptionGuardStatement
public class ExceptionGuardStatement
A statement that catches instances of Exception, calls ThreadGroup.uncaughtException, and moves on. This statement is inserted by a TypeChecker, and does not appear directly in Tea templates.
| Constructor Summary | |
|---|---|
ExceptionGuardStatement(SourceInfo info,
Statement guarded,
Statement replacement)
|
|
ExceptionGuardStatement(Statement guarded,
Statement replacement)
|
|
| Method Summary | |
|---|---|
Object |
accept(NodeVisitor visitor)
Every subclass of Node must override this method with the following: return visitor.visit(this). |
Object |
clone()
Returns a clone of this Node and all its children. |
Statement |
getGuarded()
May return null if removed. |
Statement |
getReplacement()
May return null since this is optional. |
boolean |
isBreak()
Returns true if Statement 'breaks' during its execution. |
boolean |
isReturn()
Returns true if Statement definitely returns from its method either from a return statement or a throw statement. |
void |
setGuarded(Statement guarded)
|
void |
setReplacement(Statement replacement)
|
| Methods inherited from class org.teatrove.tea.parsetree.Node |
|---|
getSourceInfo, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionGuardStatement(Statement guarded,
Statement replacement)
guarded - Statement to guard.replacement - Optional Statement to execute in catch handler.
public ExceptionGuardStatement(SourceInfo info,
Statement guarded,
Statement replacement)
guarded - Statement to guard.replacement - Optional Statement to execute in catch handler.| Method Detail |
|---|
public Object accept(NodeVisitor visitor)
Nodereturn visitor.visit(this).
accept in class Statementvisitor - A visitor of this Node
NodeVisitorpublic Object clone()
Node
clone in class Nodepublic boolean isReturn()
Statement
isReturn in class Statementpublic boolean isBreak()
Statement
isBreak in class Statementpublic Statement getGuarded()
public Statement getReplacement()
public void setGuarded(Statement guarded)
public void setReplacement(Statement replacement)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||