|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
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
| 从类 org.eclipse.jdt.internal.compiler.ast.Statement 继承的字段 |
|---|
COMPLAINED_FAKE_REACHABLE, COMPLAINED_UNREACHABLE, NOT_COMPLAINED |
| 构造方法摘要 | |
|---|---|
TryStatement()
|
|
| 方法摘要 | |
|---|---|
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,
Object targetLocation,
int stateIndex,
LocalVariableBinding secretLocal)
Generate an invocation of a subroutine (e.g. jsr finally) in current context. |
boolean |
isSubRoutineEscaping()
|
StringBuffer |
printStatement(int indent,
StringBuffer output)
|
void |
resolve(BlockScope upperScope)
|
void |
traverse(ASTVisitor visitor,
BlockScope blockScope)
|
protected void |
verifyDuplicationAndOrder(int length,
TypeBinding[] argumentTypes,
boolean containsUnionTypes)
|
| 从类 org.eclipse.jdt.internal.compiler.ast.SubRoutineStatement 继承的方法 |
|---|
placeAllAnyExceptionHandler, reenterAllExceptionHandlers |
| 从类 org.eclipse.jdt.internal.compiler.ast.Statement 继承的方法 |
|---|
branchChainTo, checkAgainstNullAnnotation, complainIfUnreachable, expectedType, generateArguments, isBoxingCompatible, isEmptyBlock, isKnowDeadCodePattern, isValidJavaStatement, print, resolveCase |
| 从类 org.eclipse.jdt.internal.compiler.ast.ASTNode 继承的方法 |
|---|
checkInvocationArguments, concreteStatement, isFieldUseDeprecated, isImplicitThis, isMethodUseDeprecated, isSuper, isThis, isTypeUseDeprecated, printAnnotations, printIndent, printModifiers, resolveAnnotations, resolveDeprecatedAnnotations, sourceEnd, sourceStart, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public LocalDeclaration[] resources
public Block tryBlock
public Block[] catchBlocks
public Argument[] catchArguments
public Block finallyBlock
public UnconditionalFlowInfo subRoutineInits
public LocalVariableBinding anyExceptionVariable
public LocalVariableBinding returnAddressVariable
public LocalVariableBinding secretReturnValue
| 构造方法详细信息 |
|---|
public TryStatement()
| 方法详细信息 |
|---|
public FlowInfo analyseCode(BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo)
Statement 中的 analyseCodepublic ExceptionLabel enterAnyExceptionHandler(CodeStream codeStream)
SubRoutineStatement 中的 enterAnyExceptionHandlerpublic void enterDeclaredExceptionHandlers(CodeStream codeStream)
SubRoutineStatement 中的 enterDeclaredExceptionHandlerspublic void exitAnyExceptionHandler()
SubRoutineStatement 中的 exitAnyExceptionHandlerpublic void exitDeclaredExceptionHandlers(CodeStream codeStream)
SubRoutineStatement 中的 exitDeclaredExceptionHandlers
public void generateCode(BlockScope currentScope,
CodeStream codeStream)
Statement 中的 generateCode
public boolean generateSubRoutineInvocation(BlockScope currentScope,
CodeStream codeStream,
Object targetLocation,
int stateIndex,
LocalVariableBinding secretLocal)
SubRoutineStatement 复制的描述
SubRoutineStatement 中的 generateSubRoutineInvocationtrue if the generated code will abrupt completionSubRoutineStatement.generateSubRoutineInvocation(BlockScope, CodeStream, Object, int, LocalVariableBinding)public boolean isSubRoutineEscaping()
SubRoutineStatement 中的 isSubRoutineEscaping
public StringBuffer printStatement(int indent,
StringBuffer output)
Statement 中的 printStatementpublic void resolve(BlockScope upperScope)
Statement 中的 resolve
public void traverse(ASTVisitor visitor,
BlockScope blockScope)
ASTNode 中的 traverse
protected void verifyDuplicationAndOrder(int length,
TypeBinding[] argumentTypes,
boolean containsUnionTypes)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||