All Methods Static Methods Instance Methods Abstract Methods Concrete Methods
| Modifier and Type |
Method and Description |
TypeBinding |
boxing(TypeBinding type) |
Binding |
checkRedundantDefaultNullness(int nullBits,
int sourceStart)
Check whether the given null default is redundant at the given position inside this scope.
|
ClassScope |
classScope() |
static int |
compareTypes(TypeBinding left,
TypeBinding right) |
CompilationUnitScope |
compilationUnitScope() |
CompilerOptions |
compilerOptions()
Finds the most specific compiler options
|
protected MethodBinding |
computeCompatibleMethod(MethodBinding method,
TypeBinding[] arguments,
InvocationSite invocationSite)
Internal use only
Given a method, returns null if arguments cannot be converted to parameters.
|
protected MethodBinding |
computeCompatibleMethod(MethodBinding method,
TypeBinding[] arguments,
InvocationSite invocationSite,
boolean tiebreakingVarargsMethods)
Internal use only
Given a method, returns null if arguments cannot be converted to parameters.
|
protected boolean |
connectTypeVariables(TypeParameter[] typeParameters,
boolean checkForErasedCandidateCollisions)
Connect type variable supertypes, and returns true if no problem was detected
|
static TypeBinding |
convertEliminatingTypeVariables(TypeBinding originalType,
ReferenceBinding genericType,
int rank,
java.util.Set eliminatedVariables)
Returns a type where either all variables or specific ones got discarded.
|
ArrayBinding |
createArrayType(TypeBinding type,
int dimension) |
ArrayBinding |
createArrayType(TypeBinding type,
int dimension,
AnnotationBinding[] annotations) |
TypeVariableBinding[] |
createTypeVariables(TypeParameter[] typeParameters,
Binding declaringElement) |
void |
deferBoundCheck(TypeReference typeRef) |
boolean |
deferCheck(java.lang.Runnable check) |
ClassScope |
enclosingClassScope() |
MethodScope |
enclosingLambdaScope() |
MethodScope |
enclosingMethodScope() |
ReferenceBinding |
enclosingReceiverType() |
ReferenceContext |
enclosingReferenceContext()
Returns the immediately enclosing reference context, starting from current scope parent.
|
SourceTypeBinding |
enclosingSourceType() |
ClassScope |
enclosingTopMostClassScope() |
LookupEnvironment |
environment() |
protected MethodBinding |
findDefaultAbstractMethod(ReferenceBinding receiverType,
char[] selector,
TypeBinding[] argumentTypes,
InvocationSite invocationSite,
ReferenceBinding classHierarchyStart,
ObjectVector found,
MethodBinding[] concreteMatches) |
ReferenceBinding |
findDirectMemberType(char[] typeName,
ReferenceBinding enclosingType) |
MethodBinding |
findExactMethod(ReferenceBinding receiverType,
char[] selector,
TypeBinding[] argumentTypes,
InvocationSite invocationSite) |
FieldBinding |
findField(TypeBinding receiverType,
char[] fieldName,
InvocationSite invocationSite,
boolean needResolve) |
FieldBinding |
findField(TypeBinding receiverType,
char[] fieldName,
InvocationSite invocationSite,
boolean needResolve,
boolean invisibleFieldsOk) |
ReferenceBinding |
findMemberType(char[] typeName,
ReferenceBinding enclosingType) |
MethodBinding |
findMethod(ReferenceBinding receiverType,
char[] selector,
TypeBinding[] argumentTypes,
InvocationSite invocationSite,
boolean inStaticContext) |
MethodBinding |
findMethod0(ReferenceBinding receiverType,
char[] selector,
TypeBinding[] argumentTypes,
InvocationSite invocationSite,
boolean inStaticContext) |
MethodBinding |
findMethodForArray(ArrayBinding receiverType,
char[] selector,
TypeBinding[] argumentTypes,
InvocationSite invocationSite) |
protected void |
findMethodInSuperInterfaces(ReferenceBinding receiverType,
char[] selector,
ObjectVector found,
java.util.List<TypeBinding> visitedTypes,
InvocationSite invocationSite) |
static IPrivilegedHandler |
findPrivilegedHandler(ReferenceBinding type) |
ReferenceBinding |
findType(char[] typeName,
PackageBinding declarationPackage,
PackageBinding invocationPackage) |
TypeVariableBinding |
findTypeVariable(char[] name,
SourceTypeBinding sourceType)
Other scopes can override this method
|
LocalVariableBinding |
findVariable(char[] variable) |
static TypeBinding |
getBaseType(char[] name) |
Binding |
getBinding(char[] name,
int mask,
InvocationSite invocationSite,
boolean needResolve) |
java.util.function.Supplier<ReferenceBinding> |
getCommonReferenceBinding(char[] typeName) |
MethodBinding |
getConstructor(ReferenceBinding receiverType,
TypeBinding[] argumentTypes,
InvocationSite invocationSite) |
MethodBinding |
getConstructor0(ReferenceBinding receiverType,
TypeBinding[] argumentTypes,
InvocationSite invocationSite) |
PackageBinding |
getCurrentPackage() |
int |
getDeclarationModifiers()
Returns the modifiers of the innermost enclosing declaration.
|
MethodBinding |
getExactConstructor(TypeBinding receiverType,
InvocationSite invocationSite) |
MethodBinding |
getExactMethod(TypeBinding receiverType,
char[] selector,
InvocationSite invocationSite) |
FieldBinding |
getField(TypeBinding receiverType,
char[] fieldName,
InvocationSite invocationSite) |
MethodBinding |
getImplicitMethod(char[] selector,
TypeBinding[] argumentTypes,
InvocationSite invocationSite) |
ReferenceBinding |
getJavaIoSerializable() |
ReferenceBinding |
getJavaLangAnnotationAnnotation() |
ReferenceBinding |
getJavaLangAssertionError() |
ReferenceBinding |
getJavaLangBoolean() |
ReferenceBinding |
getJavaLangByte() |
ReferenceBinding |
getJavaLangCharacter() |
ReferenceBinding |
getJavaLangClass() |
ReferenceBinding |
getJavaLangClassNotFoundException() |
ReferenceBinding |
getJavaLangCloneable() |
ReferenceBinding |
getJavaLangDouble() |
ReferenceBinding |
getJavaLangEnum() |
ReferenceBinding |
getJavaLangError() |
ReferenceBinding |
getJavaLangFloat() |
ReferenceBinding |
getJavaLangIllegalArgumentException() |
ReferenceBinding |
getJavaLangIncompatibleClassChangeError() |
ReferenceBinding |
getJavaLangInteger() |
ReferenceBinding |
getJavaLangInvokeLambdaMetafactory() |
ReferenceBinding |
getJavaLangInvokeMethodHandlesLookup() |
ReferenceBinding |
getJavaLangInvokeSerializedLambda() |
ReferenceBinding |
getJavaLangIterable() |
ReferenceBinding |
getJavaLangLong() |
ReferenceBinding |
getJavaLangNoClassDefFoundError() |
ReferenceBinding |
getJavaLangNoSuchFieldError() |
ReferenceBinding |
getJavaLangObject() |
ReferenceBinding |
getJavaLangRecord() |
ReferenceBinding |
getJavaLangReflectField() |
ReferenceBinding |
getJavaLangReflectMethod() |
ReferenceBinding |
getJavaLangRuntimeObjectMethods() |
ReferenceBinding |
getJavaLangShort() |
ReferenceBinding |
getJavaLangString() |
ReferenceBinding |
getJavaLangStringBuffer() |
ReferenceBinding |
getJavaLangStringBuilder() |
ReferenceBinding |
getJavaLangThrowable() |
ReferenceBinding |
getJavaLangVoid() |
ReferenceBinding |
getJavaUtilIterator() |
ReferenceBinding |
getMemberType(char[] typeName,
ReferenceBinding enclosingType) |
MethodBinding |
getMethod(TypeBinding receiverType,
char[] selector,
TypeBinding[] argumentTypes,
InvocationSite invocationSite) |
Binding |
getOnlyPackage(char[][] compoundName) |
Binding |
getPackage(char[][] compoundName) |
MethodBinding |
getStaticFactory(ParameterizedTypeBinding allocationType,
ReferenceBinding originalEnclosingType,
TypeBinding[] argumentTypes,
InvocationSite allocationSite) |
TypeBinding |
getType(char[] name) |
TypeBinding |
getType(char[][] compoundName,
int typeNameLength) |
TypeBinding |
getType(char[] name,
PackageBinding packageBinding) |
Binding |
getTypeOrPackage(char[][] compoundName) |
static ReferenceBinding[] |
greaterLowerBound(ReferenceBinding[] types) |
static TypeBinding[] |
greaterLowerBound(TypeBinding[] types,
Scope scope,
LookupEnvironment environment) |
boolean |
hasDefaultNullnessFor(int location,
int sourceStart)
Answer a defaultNullness defined for the closest enclosing scope, using bits from Binding.NullnessDefaultMASK.
|
boolean |
hasErasedCandidatesCollisions(TypeBinding one,
TypeBinding two,
java.util.Map invocations,
ReferenceBinding type,
ASTNode typeRef) |
CaseStatement |
innermostSwitchCase()
Returns the immediately enclosing switchCase statement (carried by closest blockScope),
|
SourceTypeBinding |
invocationType()
For Java scopes, the invocationType is always the same as the enclosingSourceType
This distinction is important for AspectJ's inter-type declarations
For inter-type declarations, the invocationType is the lexically enclosing type.
|
protected boolean |
isAcceptableMethod(MethodBinding one,
MethodBinding two) |
boolean |
isBoxingCompatibleWith(TypeBinding expressionType,
TypeBinding targetType) |
boolean |
isDefinedInField(FieldBinding field) |
boolean |
isDefinedInMethod(MethodBinding method) |
boolean |
isDefinedInSameUnit(ReferenceBinding type) |
boolean |
isDefinedInType(ReferenceBinding type) |
boolean |
isInsideCase(CaseStatement caseStatement)
Returns true if the scope or one of its parent is associated to a given caseStatement, denoting
being part of a given switch case statement.
|
boolean |
isInsideDeprecatedCode() |
boolean |
isInterTypeScope() |
boolean |
isLambdaScope() |
boolean |
isLambdaSubscope() |
boolean |
isSubtypeOfRawType(TypeBinding paramType) |
protected Binding |
localCheckRedundantDefaultNullness(int nullBits,
int position) |
int |
localNonNullByDefaultValue(int start) |
TypeBinding |
lowerUpperBound(TypeBinding[] types)
Returns VoidBinding if types have no intersection (e.g.
|
MethodScope |
methodScope() |
protected TypeBinding[] |
minimalErasedCandidates(TypeBinding[] types,
java.util.Map allInvocations)
Returns the most specific set of types compatible with all given types.
|
ModuleBinding |
module() |
protected MethodBinding |
mostSpecificClassMethodBinding(MethodBinding[] visible,
int visibleSize,
InvocationSite invocationSite) |
protected MethodBinding |
mostSpecificInterfaceMethodBinding(MethodBinding[] visible,
int visibleSize,
InvocationSite invocationSite) |
protected MethodBinding |
mostSpecificMethodBinding(MethodBinding[] visible,
int visibleSize,
TypeBinding[] argumentTypes,
InvocationSite invocationSite,
ReferenceBinding receiverType) |
MethodScope |
namedMethodScope() |
ReferenceContext |
originalReferenceContext()
Returns the nearest original reference context, starting from current scope.
|
ClassScope |
outerMostClassScope() |
MethodScope |
outerMostMethodScope() |
int |
parameterCompatibilityLevel(MethodBinding method,
TypeBinding[] arguments) |
int |
parameterCompatibilityLevel(MethodBinding method,
TypeBinding[] arguments,
boolean tiebreakingVarargsMethods) |
int |
parameterCompatibilityLevel(MethodBinding method,
TypeBinding[] arguments,
InvocationSite site) |
int |
parameterCompatibilityLevel(TypeBinding arg,
TypeBinding param) |
abstract ProblemReporter |
problemReporter() |
boolean |
recordNonNullByDefault(Binding target,
int value,
Annotation annotation,
int scopeStart,
int scopeEnd)
Record a NNBD annotation applying to a given source range within the current scope
|
CompilationUnitDeclaration |
referenceCompilationUnit() |
ReferenceContext |
referenceContext()
Returns the nearest reference context, starting from current scope.
|
static ReferenceBinding[] |
substitute(Substitution substitution,
ReferenceBinding[] originalTypes)
Returns an array of types, where original types got substituted given a substitution.
|
static TypeBinding |
substitute(Substitution substitution,
TypeBinding originalType)
Returns a type, where original type was substituted using the receiver
parameterized type.
|
static TypeBinding[] |
substitute(Substitution substitution,
TypeBinding[] originalTypes)
Returns an array of types, where original types got substituted given a substitution.
|
void |
tagAsAccessingEnclosingInstanceStateOf(ReferenceBinding enclosingType,
boolean typeVariableAccess) |
static BlockScope |
typeAnnotationsResolutionScope(Scope scope) |
boolean |
validateNullAnnotation(long tagBits,
TypeReference typeRef,
Annotation[] annotations) |