|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.compiler.ast.ASTNode
org.eclipse.jdt.internal.compiler.ast.Statement
org.eclipse.jdt.internal.compiler.ast.SubRoutineStatement
org.eclipse.jdt.internal.compiler.ast.TryStatement
public class TryStatement
Constructor Summary | |
---|---|
TryStatement()
|
Method Summary | |
---|---|
FlowInfo |
analyseCode(BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo)
|
ExceptionLabel |
enterAnyExceptionHandler(CodeStream codeStream)
|
void |
enterDeclaredExceptionHandlers(CodeStream codeStream)
|
void |
exitAnyExceptionHandler()
|
void |
exitDeclaredExceptionHandlers(CodeStream codeStream)
|
void |
generateCode(BlockScope currentScope,
CodeStream codeStream)
Try statement code generation with or without jsr bytecode use post 1.5 target level, cannot use jsr bytecode, must instead inline finally block returnAddress is only allocated if jsr is allowed |
boolean |
generateSubRoutineInvocation(BlockScope currentScope,
CodeStream codeStream,
java.lang.Object targetLocation,
int stateIndex,
LocalVariableBinding secretLocal)
Generate an invocation of a subroutine (e.g. |
boolean |
isSubRoutineEscaping()
|
java.lang.StringBuffer |
printStatement(int indent,
java.lang.StringBuffer output)
|
void |
resolve(BlockScope upperScope)
|
void |
traverse(ASTVisitor visitor,
BlockScope blockScope)
|
Methods inherited from class org.eclipse.jdt.internal.compiler.ast.SubRoutineStatement |
---|
placeAllAnyExceptionHandler, reenterAllExceptionHandlers |
Methods inherited from class org.eclipse.jdt.internal.compiler.ast.Statement |
---|
branchChainTo, complainIfUnreachable, generateArguments, isEmptyBlock, isValidJavaStatement, print, resolveCase |
Methods inherited from class org.eclipse.jdt.internal.compiler.ast.ASTNode |
---|
checkInvocationArguments, concreteStatement, isFieldUseDeprecated, isImplicitThis, isMethodUseDeprecated, isSuper, isThis, isTypeUseDeprecated, printAnnotations, printIndent, printModifiers, resolveAnnotations, resolveDeprecatedAnnotations, sourceEnd, sourceStart, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Block tryBlock
public Block[] catchBlocks
public Argument[] catchArguments
public Block finallyBlock
public UnconditionalFlowInfo subRoutineInits
public LocalVariableBinding anyExceptionVariable
public LocalVariableBinding returnAddressVariable
public LocalVariableBinding secretReturnValue
Constructor Detail |
---|
public TryStatement()
Method Detail |
---|
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo)
analyseCode
in class Statement
public ExceptionLabel enterAnyExceptionHandler(CodeStream codeStream)
enterAnyExceptionHandler
in class SubRoutineStatement
public void enterDeclaredExceptionHandlers(CodeStream codeStream)
enterDeclaredExceptionHandlers
in class SubRoutineStatement
public void exitAnyExceptionHandler()
exitAnyExceptionHandler
in class SubRoutineStatement
public void exitDeclaredExceptionHandlers(CodeStream codeStream)
exitDeclaredExceptionHandlers
in class SubRoutineStatement
public void generateCode(BlockScope currentScope, CodeStream codeStream)
generateCode
in class Statement
public boolean generateSubRoutineInvocation(BlockScope currentScope, CodeStream codeStream, java.lang.Object targetLocation, int stateIndex, LocalVariableBinding secretLocal)
SubRoutineStatement
generateSubRoutineInvocation
in class SubRoutineStatement
true
if the generated code will abrupt completionSubRoutineStatement.generateSubRoutineInvocation(BlockScope, CodeStream, Object, int, LocalVariableBinding)
public boolean isSubRoutineEscaping()
isSubRoutineEscaping
in class SubRoutineStatement
public java.lang.StringBuffer printStatement(int indent, java.lang.StringBuffer output)
printStatement
in class Statement
public void resolve(BlockScope upperScope)
resolve
in class Statement
public void traverse(ASTVisitor visitor, BlockScope blockScope)
traverse
in class ASTNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |