|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jdt.internal.compiler.lookup.Scope
org.eclipse.jdt.internal.compiler.lookup.BlockScope
org.eclipse.jdt.internal.compiler.lookup.MethodScope
public class MethodScope
Specific block scope used for methods, constructors or clinits, representing its outermost blockscope. Note also that such a scope will be provided to enclose field initializers subscopes as well.
| 字段摘要 | |
|---|---|
int |
analysisIndex
|
long[] |
definiteInits
|
long[][] |
extraDefiniteInits
|
SyntheticArgumentBinding[] |
extraSyntheticArguments
|
FieldBinding |
initializedField
|
boolean |
insideTypeAnnotation
|
boolean |
isConstructorCall
|
boolean |
isPropagatingInnerClassEmulation
|
boolean |
isStatic
|
int |
lastIndex
|
int |
lastVisibleFieldID
|
ReferenceContext |
referenceContext
|
| 从类 org.eclipse.jdt.internal.compiler.lookup.BlockScope 继承的字段 |
|---|
EmulationPathToImplicitThis, enclosingCase, localIndex, locals, maxOffset, NoEnclosingInstanceInConstructorCall, NoEnclosingInstanceInStaticContext, offset, shiftScopes, startIndex, subscopeCount, subscopes |
| 从类 org.eclipse.jdt.internal.compiler.lookup.Scope 继承的字段 |
|---|
AUTOBOX_COMPATIBLE, BLOCK_SCOPE, CLASS_SCOPE, COMPATIBLE, COMPILATION_UNIT_SCOPE, EQUAL_OR_MORE_SPECIFIC, kind, METHOD_SCOPE, MORE_GENERIC, NOT_COMPATIBLE, NOT_RELATED, parent, VARARGS_COMPATIBLE |
| 构造方法摘要 | |
|---|---|
MethodScope(ClassScope parent,
ReferenceContext context,
boolean isStatic)
|
|
| 方法摘要 | |
|---|---|
void |
checkUnusedParameters(MethodBinding method)
|
void |
computeLocalVariablePositions(int initOffset,
CodeStream codeStream)
Compute variable positions in scopes given an initial position offset ignoring unused local variables. |
FieldBinding |
findField(TypeBinding receiverType,
char[] fieldName,
InvocationSite invocationSite,
boolean needResolve)
Overridden to detect the error case inside an explicit constructor call: class X { int i; X myX; X(X x) { this(i, myX.i, x.i); // same for super calls... only the first 2 field accesses are errors } } |
boolean |
isInsideConstructor()
|
boolean |
isInsideInitializer()
|
boolean |
isInsideInitializerOrConstructor()
|
ProblemReporter |
problemReporter()
Answer the problem reporter to use for raising new problems. |
int |
recordInitializationStates(FlowInfo flowInfo)
|
AbstractMethodDeclaration |
referenceMethod()
Answer the reference method of this scope, or null if initialization scope. |
TypeDeclaration |
referenceType()
Answer the reference type of this scope. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public ReferenceContext referenceContext
public boolean isStatic
public boolean isConstructorCall
public FieldBinding initializedField
public int lastVisibleFieldID
public int analysisIndex
public boolean isPropagatingInnerClassEmulation
public int lastIndex
public long[] definiteInits
public long[][] extraDefiniteInits
public boolean insideTypeAnnotation
public SyntheticArgumentBinding[] extraSyntheticArguments
| 构造方法详细信息 |
|---|
public MethodScope(ClassScope parent,
ReferenceContext context,
boolean isStatic)
| 方法详细信息 |
|---|
public void checkUnusedParameters(MethodBinding method)
public void computeLocalVariablePositions(int initOffset,
CodeStream codeStream)
public FieldBinding findField(TypeBinding receiverType,
char[] fieldName,
InvocationSite invocationSite,
boolean needResolve)
Scope 中的 findFieldpublic boolean isInsideConstructor()
public boolean isInsideInitializer()
public boolean isInsideInitializerOrConstructor()
public ProblemReporter problemReporter()
BlockScope 中的 problemReporterpublic final int recordInitializationStates(FlowInfo flowInfo)
public AbstractMethodDeclaration referenceMethod()
public TypeDeclaration referenceType()
BlockScope 中的 referenceType
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||