|
||||||||||
| 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
|
| Fields inherited from class org.eclipse.jdt.internal.compiler.ast.Statement |
|---|
COMPLAINED_FAKE_REACHABLE, COMPLAINED_UNREACHABLE, NOT_COMPLAINED |
| 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 |
void |
generateCodeForStringSwitch(BlockScope currentScope,
CodeStream codeStream)
Switch on String code generation This assumes that hashCode() specification for java.lang.String is API and is stable. |
StringBuffer |
printStatement(int indent,
StringBuffer output)
|
void |
resolve(BlockScope upperScope)
|
void |
traverse(ASTVisitor visitor,
BlockScope blockScope)
|
| Methods inherited from class org.eclipse.jdt.internal.compiler.ast.Statement |
|---|
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 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 generateCodeForStringSwitch(BlockScope currentScope,
CodeStream codeStream)
currentScope - org.eclipse.jdt.internal.compiler.lookup.BlockScopecodeStream - org.eclipse.jdt.internal.compiler.codegen.CodeStream
public void generateCode(BlockScope currentScope,
CodeStream codeStream)
generateCode in class StatementcurrentScope - org.eclipse.jdt.internal.compiler.lookup.BlockScopecodeStream - org.eclipse.jdt.internal.compiler.codegen.CodeStream
public StringBuffer printStatement(int indent,
StringBuffer output)
printStatement in class Statementpublic void resolve(BlockScope upperScope)
resolve in class Statement
public void traverse(ASTVisitor visitor,
BlockScope blockScope)
traverse in class ASTNodepublic void branchChainTo(BranchLabel label)
branchChainTo in class Statement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||