public class MethodScope extends BlockScope
| Modifier and Type | Field and Description |
|---|---|
int |
analysisIndex |
long[] |
definiteInits |
long[][] |
extraDefiniteInits |
SyntheticArgumentBinding[] |
extraSyntheticArguments |
boolean |
hasMissingSwitchDefault |
FieldBinding |
initializedField |
boolean |
insideTypeAnnotation |
boolean |
isConstructorCall |
boolean |
isPropagatingInnerClassEmulation |
boolean |
isStatic |
int |
lastIndex |
int |
lastVisibleFieldID |
ReferenceContext |
referenceContext |
EmulationPathToImplicitThis, enclosingCase, finallyInfo, localIndex, locals, maxOffset, NoEnclosingInstanceInConstructorCall, NoEnclosingInstanceInStaticContext, offset, shiftScopes, startIndex, subscopeCount, subscopesAUTOBOX_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| Constructor and Description |
|---|
MethodScope(ClassScope parent,
ReferenceContext context,
boolean isStatic) |
| Modifier and Type | Method and Description |
|---|---|
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 |
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.
|
addAnonymousType, addLocalType, addLocalVariable, addSubscope, allowBlankFinalFieldAssignment, checkUnclosedCloseables, correlateTrackingVarsIfElse, emulateOuterAccess, findLocalType, findLocalVariableDeclarations, findVariable, getBinding, getBinding, getEmulationPath, getEmulationPath, isDuplicateLocalVariable, maxShiftedOffset, needBlankFinalFieldInitializationCheck, propagateInnerEmulation, pruneWrapperTrackingVar, registerTrackingVariable, removeTrackingVar, resetDeclaringClassMethodStaticFlag, resetEnclosingMethodStaticFlag, scopeIndex, toString, toStringboxing, classScope, compareTypes, compilationUnitScope, compilerOptions, computeCompatibleMethod, computeCompatibleMethod, connectTypeVariables, convertEliminatingTypeVariables, createArrayType, createTypeVariables, deferBoundCheck, enclosingClassScope, enclosingMethodScope, enclosingReceiverType, enclosingReferenceContext, enclosingSourceType, environment, findDefaultAbstractMethod, findDirectMemberType, findExactMethod, findField, findMemberType, findMethod, findMethod, findMethodForArray, findMethodInSuperInterfaces, findType, getBaseType, getBinding, getConstructor, getCurrentPackage, getDeclarationModifiers, getField, getImplicitMethod, getJavaIoSerializable, getJavaLangAnnotationAnnotation, getJavaLangAssertionError, getJavaLangClass, getJavaLangCloneable, getJavaLangEnum, getJavaLangIterable, getJavaLangObject, getJavaLangString, getJavaLangThrowable, getJavaUtilIterator, getMemberType, getMethod, getOnlyPackage, getPackage, getStaticFactory, getType, getType, getType, getTypeOrPackage, greaterLowerBound, greaterLowerBound, hasErasedCandidatesCollisions, innermostSwitchCase, isAcceptableMethod, isBoxingCompatibleWith, isDefinedInField, isDefinedInMethod, isDefinedInSameUnit, isDefinedInType, isInsideCase, isInsideDeprecatedCode, isPossibleSubtypeOfRawType, lowerUpperBound, methodScope, minimalErasedCandidates, mostSpecificClassMethodBinding, mostSpecificInterfaceMethodBinding, mostSpecificMethodBinding, outerMostClassScope, outerMostMethodScope, parameterCompatibilityLevel, parameterCompatibilityLevel, referenceCompilationUnit, referenceContext, substitute, substitute, substitute, validateNullAnnotationpublic 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 boolean hasMissingSwitchDefault
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)
public boolean isInsideConstructor()
public boolean isInsideInitializer()
public boolean isInsideInitializerOrConstructor()
public ProblemReporter problemReporter()
problemReporter in class BlockScopepublic final int recordInitializationStates(FlowInfo flowInfo)
public AbstractMethodDeclaration referenceMethod()
public TypeDeclaration referenceType()
referenceType in class BlockScopeCopyright © 2013. All rights reserved.