|
||||||||||
| 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.ReturnStatement
public class ReturnStatement
| Field Summary | |
|---|---|
Expression |
expression
|
int |
initStateIndex
|
LocalVariableBinding |
saveValueVariable
|
SubRoutineStatement[] |
subroutines
|
| Fields inherited from class org.eclipse.jdt.internal.compiler.ast.Statement |
|---|
COMPLAINED_FAKE_REACHABLE, COMPLAINED_UNREACHABLE, NOT_COMPLAINED |
| Constructor Summary | |
|---|---|
ReturnStatement(Expression expression,
int sourceStart,
int sourceEnd)
|
|
| Method Summary | |
|---|---|
FlowInfo |
analyseCode(BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo)
|
void |
generateCode(BlockScope currentScope,
CodeStream codeStream)
Retrun statement code generation generate the finallyInvocationSequence. |
void |
generateReturnBytecode(CodeStream codeStream)
Dump the suitable return bytecode for a return statement |
void |
generateStoreSaveValueIfNecessary(CodeStream codeStream)
|
boolean |
needValue()
|
void |
prepareSaveValueLocation(TryStatement targetTryStatement)
|
StringBuffer |
printStatement(int tab,
StringBuffer output)
|
void |
resolve(BlockScope scope)
|
void |
traverse(ASTVisitor visitor,
BlockScope scope)
|
| Methods inherited from class org.eclipse.jdt.internal.compiler.ast.Statement |
|---|
branchChainTo, checkAgainstNullAnnotation, complainIfUnreachable, expectedType, generateArguments, isBoxingCompatible, isEmptyBlock, isKnowDeadCodePattern, 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Expression expression
public SubRoutineStatement[] subroutines
public LocalVariableBinding saveValueVariable
public int initStateIndex
| Constructor Detail |
|---|
public ReturnStatement(Expression expression,
int sourceStart,
int sourceEnd)
| Method Detail |
|---|
public FlowInfo analyseCode(BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo)
analyseCode in class Statement
public void generateCode(BlockScope currentScope,
CodeStream codeStream)
generateCode in class StatementcurrentScope - org.eclipse.jdt.internal.compiler.lookup.BlockScopecodeStream - org.eclipse.jdt.internal.compiler.codegen.CodeStreampublic void generateReturnBytecode(CodeStream codeStream)
public void generateStoreSaveValueIfNecessary(CodeStream codeStream)
public boolean needValue()
public void prepareSaveValueLocation(TryStatement targetTryStatement)
public StringBuffer printStatement(int tab,
StringBuffer output)
printStatement in class Statementpublic void resolve(BlockScope scope)
resolve in class Statement
public void traverse(ASTVisitor visitor,
BlockScope scope)
traverse in class ASTNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||