|
||||||||||
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.SwitchStatement
public class SwitchStatement
Field Summary | |
---|---|
int |
blockStart
|
BranchLabel |
breakLabel
|
static int |
CASE
|
int |
caseCount
|
CaseStatement[] |
cases
|
CaseStatement |
defaultCase
|
static int |
ESCAPING
|
int |
explicitDeclarations
|
Expression |
expression
|
static int |
FALLTHROUGH
|
BlockScope |
scope
|
Statement[] |
statements
|
SyntheticMethodBinding |
synthetic
|
Constructor Summary | |
---|---|
SwitchStatement()
|
Method Summary | |
---|---|
FlowInfo |
analyseCode(BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo)
|
void |
branchChainTo(BranchLabel label)
Dispatch the call on its last statement. |
void |
generateCode(BlockScope currentScope,
CodeStream codeStream)
Switch code generation |
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.Statement |
---|
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 Expression expression
public Statement[] statements
public BlockScope scope
public int explicitDeclarations
public BranchLabel breakLabel
public CaseStatement[] cases
public CaseStatement defaultCase
public int blockStart
public int caseCount
public static final int CASE
public static final int FALLTHROUGH
public static final int ESCAPING
public SyntheticMethodBinding synthetic
Constructor Detail |
---|
public SwitchStatement()
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 Statement
currentScope
- org.eclipse.jdt.internal.compiler.lookup.BlockScopecodeStream
- org.eclipse.jdt.internal.compiler.codegen.CodeStreampublic 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
public void branchChainTo(BranchLabel label)
branchChainTo
in class Statement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |