|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.org.eclipse.jdt.internal.compiler.ASTVisitor
org.aspectj.org.eclipse.jdt.internal.codeassist.ThrownExceptionFinder
public class ThrownExceptionFinder
| Constructor Summary | |
|---|---|
ThrownExceptionFinder()
|
|
| Method Summary | |
|---|---|
void |
endVisit(AllocationExpression allocationExpression,
BlockScope scope)
|
void |
endVisit(MessageSend messageSend,
BlockScope scope)
|
void |
endVisit(ThrowStatement throwStatement,
BlockScope scope)
|
ReferenceBinding[] |
getAlreadyCaughtExceptions()
Returns all the already caught exceptions in catch blocks, found by the call to processThrownExceptions(TryStatement, BlockScope) |
ReferenceBinding[] |
getDiscouragedExceptions()
Returns all exceptions that are discouraged to use because (a) they are already caught in some inner try-catch, or (b) their super exception has already been caught. |
ReferenceBinding[] |
getThrownUncaughtExceptions()
Returns all the thrown exceptions minus the ones that are already caught in previous catch blocks (of the same try), found by the call to processThrownExceptions(TryStatement, BlockScope). |
void |
processThrownExceptions(TryStatement tryStatement,
BlockScope scope)
Finds the thrown exceptions minus the ones that are already caught in previous catch blocks. |
boolean |
visit(TryStatement tryStatement,
BlockScope scope)
|
boolean |
visit(TypeDeclaration localTypeDeclaration,
BlockScope scope)
|
boolean |
visit(TypeDeclaration memberTypeDeclaration,
ClassScope scope)
|
boolean |
visit(TypeDeclaration typeDeclaration,
CompilationUnitScope scope)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThrownExceptionFinder()
| Method Detail |
|---|
public void processThrownExceptions(TryStatement tryStatement,
BlockScope scope)
tryStatement - scope -
public void endVisit(MessageSend messageSend,
BlockScope scope)
endVisit in class ASTVisitor
public void endVisit(AllocationExpression allocationExpression,
BlockScope scope)
endVisit in class ASTVisitor
public void endVisit(ThrowStatement throwStatement,
BlockScope scope)
endVisit in class ASTVisitorpublic ReferenceBinding[] getAlreadyCaughtExceptions()
processThrownExceptions(TryStatement, BlockScope)
getDiscouragedExceptions().public ReferenceBinding[] getThrownUncaughtExceptions()
processThrownExceptions(TryStatement, BlockScope).
public ReferenceBinding[] getDiscouragedExceptions()
public boolean visit(TypeDeclaration typeDeclaration,
CompilationUnitScope scope)
visit in class ASTVisitor
public boolean visit(TypeDeclaration memberTypeDeclaration,
ClassScope scope)
visit in class ASTVisitor
public boolean visit(TypeDeclaration localTypeDeclaration,
BlockScope scope)
visit in class ASTVisitor
public boolean visit(TryStatement tryStatement,
BlockScope scope)
visit in class ASTVisitor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||