| Package | Description |
|---|---|
| org.eclipse.jdt.internal.compiler.ast | |
| org.eclipse.jdt.internal.compiler.lookup | |
| org.eclipse.jdt.internal.compiler.problem |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractVariableDeclaration |
class |
AllocationExpression |
class |
Argument |
class |
ExplicitConstructorCall |
class |
FakedTrackingVariable
A faked local variable declaration used for keeping track of data flows of a
special variable.
|
class |
FieldDeclaration |
class |
FieldReference |
class |
Initializer |
class |
JavadocAllocationExpression |
class |
JavadocFieldReference |
class |
JavadocMessageSend |
class |
JavadocSingleNameReference |
class |
LocalDeclaration |
class |
MessageSend |
class |
NameReference |
class |
QualifiedAllocationExpression
Variation on allocation, where can optionally be specified any of:
- leading enclosing instance
- trailing anonymous type
- generic type arguments for generic constructor invocation
|
class |
QualifiedNameReference |
class |
SingleNameReference |
class |
TypeParameter |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
ASTNode.checkInvocationArguments(BlockScope scope,
Expression receiver,
TypeBinding receiverType,
MethodBinding method,
Expression[] arguments,
TypeBinding[] argumentTypes,
boolean argsContainCast,
InvocationSite invocationSite) |
static void |
CastExpression.checkNeedForArgumentCasts(BlockScope scope,
Expression receiver,
TypeBinding receiverType,
MethodBinding binding,
Expression[] arguments,
TypeBinding[] argumentTypes,
InvocationSite invocationSite)
Cast expressions will considered as useful if removing them all would actually bind to a different method
(no fine grain analysis on per casted argument basis, simply separate widening cast from narrowing ones)
|
| Modifier and Type | Class and Description |
|---|---|
static class |
InvocationSite.EmptyWithAstNode |
| Modifier and Type | Method and Description |
|---|---|
boolean |
MethodBinding.canBeSeenBy(InvocationSite invocationSite,
Scope scope) |
boolean |
FieldBinding.canBeSeenBy(TypeBinding receiverType,
InvocationSite invocationSite,
Scope scope) |
boolean |
MethodBinding.canBeSeenBy(TypeBinding receiverType,
InvocationSite invocationSite,
Scope scope) |
protected MethodBinding |
Scope.computeCompatibleMethod(MethodBinding method,
TypeBinding[] arguments,
InvocationSite invocationSite)
Internal use only
Given a method, returns null if arguments cannot be converted to parameters.
|
protected MethodBinding |
Scope.computeCompatibleMethod(MethodBinding method,
TypeBinding[] arguments,
InvocationSite invocationSite,
boolean tiebreakingVarargsMethods)
Internal use only
Given a method, returns null if arguments cannot be converted to parameters.
|
static MethodBinding |
ParameterizedGenericMethodBinding.computeCompatibleMethod(MethodBinding originalMethod,
TypeBinding[] arguments,
Scope scope,
InvocationSite invocationSite)
Perform inference of generic method type parameters and/or expected type
|
protected MethodBinding |
Scope.findDefaultAbstractMethod(ReferenceBinding receiverType,
char[] selector,
TypeBinding[] argumentTypes,
InvocationSite invocationSite,
ReferenceBinding classHierarchyStart,
ObjectVector found,
MethodBinding concreteMatch) |
MethodBinding |
Scope.findExactMethod(ReferenceBinding receiverType,
char[] selector,
TypeBinding[] argumentTypes,
InvocationSite invocationSite) |
FieldBinding |
Scope.findField(TypeBinding receiverType,
char[] fieldName,
InvocationSite invocationSite,
boolean needResolve) |
FieldBinding |
MethodScope.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...
|
FieldBinding |
Scope.findField(TypeBinding receiverType,
char[] fieldName,
InvocationSite invocationSite,
boolean needResolve,
boolean invisibleFieldsOk) |
MethodBinding |
Scope.findMethod(ReferenceBinding receiverType,
char[] selector,
TypeBinding[] argumentTypes,
InvocationSite invocationSite) |
MethodBinding |
Scope.findMethod(ReferenceBinding receiverType,
char[] selector,
TypeBinding[] argumentTypes,
InvocationSite invocationSite,
boolean inStaticContext) |
MethodBinding |
Scope.findMethodForArray(ArrayBinding receiverType,
char[] selector,
TypeBinding[] argumentTypes,
InvocationSite invocationSite) |
protected void |
Scope.findMethodInSuperInterfaces(ReferenceBinding currentType,
char[] selector,
ObjectVector found,
InvocationSite invocationSite) |
Binding |
BlockScope.getBinding(char[][] compoundName,
int mask,
InvocationSite invocationSite,
boolean needResolve) |
Binding |
BlockScope.getBinding(char[][] compoundName,
InvocationSite invocationSite) |
Binding |
Scope.getBinding(char[] name,
int mask,
InvocationSite invocationSite,
boolean needResolve) |
MethodBinding |
Scope.getConstructor(ReferenceBinding receiverType,
TypeBinding[] argumentTypes,
InvocationSite invocationSite) |
FieldBinding |
Scope.getField(TypeBinding receiverType,
char[] fieldName,
InvocationSite invocationSite) |
MethodBinding |
Scope.getImplicitMethod(char[] selector,
TypeBinding[] argumentTypes,
InvocationSite invocationSite) |
MethodBinding |
Scope.getMethod(TypeBinding receiverType,
char[] selector,
TypeBinding[] argumentTypes,
InvocationSite invocationSite) |
MethodBinding |
Scope.getStaticFactory(ReferenceBinding allocationType,
ReferenceBinding originalEnclosingType,
TypeBinding[] argumentTypes,
InvocationSite allocationSite) |
protected MethodBinding |
Scope.mostSpecificClassMethodBinding(MethodBinding[] visible,
int visibleSize,
InvocationSite invocationSite) |
protected MethodBinding |
Scope.mostSpecificInterfaceMethodBinding(MethodBinding[] visible,
int visibleSize,
InvocationSite invocationSite) |
protected MethodBinding |
Scope.mostSpecificMethodBinding(MethodBinding[] visible,
int visibleSize,
TypeBinding[] argumentTypes,
InvocationSite invocationSite,
ReferenceBinding receiverType) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbortCompilation.updateContext(InvocationSite invocationSite,
CompilationResult unitResult) |
void |
ProblemReporter.varargsArgumentNeedCast(MethodBinding method,
TypeBinding argumentType,
InvocationSite location) |
Copyright © 2013. All rights reserved.