|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.org.eclipse.jdt.internal.compiler.lookup.Scope
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.BlockScope
org.aspectj.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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Scope |
|---|
Scope.Substitutor |
| Field Summary | |
|---|---|
int |
analysisIndex
|
long[] |
definiteInits
|
long[][] |
extraDefiniteInits
|
SyntheticArgumentBinding[] |
extraSyntheticArguments
|
boolean |
hasMissingSwitchDefault
|
FieldBinding |
initializedField
|
boolean |
isConstructorCall
|
boolean |
isPropagatingInnerClassEmulation
|
boolean |
isStatic
|
int |
lastIndex
|
int |
lastVisibleFieldID
|
ReferenceContext |
referenceContext
|
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.BlockScope |
|---|
EmulationPathToImplicitThis, enclosingCase, finallyInfo, insideTypeAnnotation, localIndex, locals, maxOffset, NoEnclosingInstanceInConstructorCall, NoEnclosingInstanceInStaticContext, offset, shiftScopes, startIndex, subscopeCount, subscopes |
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Scope |
|---|
APPLICABILITY, AUTOBOX_COMPATIBLE, BLOCK_SCOPE, CLASS_SCOPE, COMPATIBLE, COMPILATION_UNIT_SCOPE, EQUAL_OR_MORE_SPECIFIC, FULL_INFERENCE, INVOCATION_TYPE, kind, METHOD_SCOPE, MORE_GENERIC, NOT_COMPATIBLE, NOT_RELATED, parent, VARARGS_COMPATIBLE |
| Constructor Summary | |
|---|---|
MethodScope(Scope parent,
ReferenceContext context,
boolean isStatic)
|
|
MethodScope(Scope parent,
ReferenceContext context,
boolean isStatic,
int lastVisibleFieldID)
|
|
| Method Summary | |
|---|---|
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... |
boolean |
hasDefaultNullnessFor(int location)
Answer a defaultNullness defined for the closest enclosing scope, using bits from Binding.NullnessDefaultMASK. |
boolean |
isInsideConstructor()
|
boolean |
isInsideInitializer()
|
boolean |
isInsideInitializerOrConstructor()
|
boolean |
isLambdaScope()
|
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 or lambda scope. |
MethodBinding |
referenceMethodBinding()
Answers the binding of the reference method or reference lambda expression. |
TypeDeclaration |
referenceType()
Answer the reference type of this scope. |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.BlockScope |
|---|
addAnonymousType, addLocalType, addLocalVariable, addSubscope, allowBlankFinalFieldAssignment, checkAppropriateMethodAgainstSupers, checkUnclosedCloseables, correlateTrackingVarsIfElse, emulateOuterAccess, findLocalType, findLocalVariableDeclarations, findVariable, getBinding, getBinding, getEmulationPath, getEmulationPath, isDuplicateLocalVariable, maxShiftedOffset, needBlankFinalFieldInitializationCheck, propagateInnerEmulation, pruneWrapperTrackingVar, registerTrackingVariable, removeTrackingVar, scopeIndex, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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 SyntheticArgumentBinding[] extraSyntheticArguments
public boolean hasMissingSwitchDefault
| Constructor Detail |
|---|
public MethodScope(Scope parent,
ReferenceContext context,
boolean isStatic)
public MethodScope(Scope parent,
ReferenceContext context,
boolean isStatic,
int lastVisibleFieldID)
| Method Detail |
|---|
public void checkUnusedParameters(MethodBinding method)
public void computeLocalVariablePositions(int initOffset,
CodeStream codeStream)
public FieldBinding findField(TypeBinding receiverType,
char[] fieldName,
InvocationSite invocationSite,
boolean needResolve)
findField in class Scopepublic boolean isInsideConstructor()
public boolean isInsideInitializer()
public boolean isLambdaScope()
isLambdaScope in class Scopepublic boolean isInsideInitializerOrConstructor()
public ProblemReporter problemReporter()
problemReporter in class BlockScopepublic final int recordInitializationStates(FlowInfo flowInfo)
public AbstractMethodDeclaration referenceMethod()
public MethodBinding referenceMethodBinding()
public TypeDeclaration referenceType()
referenceType in class BlockScopepublic boolean hasDefaultNullnessFor(int location)
Scope
hasDefaultNullnessFor in class BlockScope
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||