|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
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
| 字段摘要 | |
|---|---|
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
|
| 从类 org.eclipse.jdt.internal.compiler.ast.Statement 继承的字段 |
|---|
COMPLAINED_FAKE_REACHABLE, COMPLAINED_UNREACHABLE, NOT_COMPLAINED |
| 构造方法摘要 | |
|---|---|
SwitchStatement()
|
|
| 方法摘要 | |
|---|---|
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)
|
| 从类 org.eclipse.jdt.internal.compiler.ast.Statement 继承的方法 |
|---|
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 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
| 构造方法详细信息 |
|---|
public SwitchStatement()
| 方法详细信息 |
|---|
public FlowInfo analyseCode(BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo)
Statement 中的 analyseCode
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)
Statement 中的 generateCodecurrentScope - org.eclipse.jdt.internal.compiler.lookup.BlockScopecodeStream - org.eclipse.jdt.internal.compiler.codegen.CodeStream
public StringBuffer printStatement(int indent,
StringBuffer output)
Statement 中的 printStatementpublic void resolve(BlockScope upperScope)
Statement 中的 resolve
public void traverse(ASTVisitor visitor,
BlockScope blockScope)
ASTNode 中的 traversepublic void branchChainTo(BranchLabel label)
Statement 中的 branchChainTo
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||