public class ParameterizedMethodBinding extends MethodBinding
| Modifier and Type | Field and Description |
|---|---|
protected MethodBinding |
originalMethod |
declaringClass, defaultNullness, modifiers, parameterNames, parameterNonNullness, parameters, receiver, returnType, selector, tagBits, thrownExceptions, typeVariablesANY_EXCEPTION, ARRAY_TYPE, BASE_TYPE, DefaultLocationArrayContents, DefaultLocationField, DefaultLocationParameter, DefaultLocationReturnType, DefaultLocationTypeArgument, DefaultLocationTypeBound, DefaultLocationTypeParameter, FIELD, GENERIC_TYPE, IMPORT, INTERSECTION_TYPE, INTERSECTION_TYPE18, LOCAL, METHOD, NO_ANNOTATIONS, NO_ELEMENT_VALUE_PAIRS, NO_EXCEPTIONS, NO_FIELDS, NO_MEMBER_TYPES, NO_METHODS, NO_NULL_DEFAULT, NO_PARAMETER_NAMES, NO_PARAMETERS, NO_REFERENCE_TYPES, NO_SUPERINTERFACES, NO_TYPE_VARIABLES, NO_TYPES, NONNULL_BY_DEFAULT, NULL_UNSPECIFIED_BY_DEFAULT, NullnessDefaultMASK, PACKAGE, PARAMETERIZED_TYPE, POLY_TYPE, RAW_TYPE, TYPE, TYPE_PARAMETER, TYPE_USE, UNINITIALIZED_FIELDS, UNINITIALIZED_METHODS, UNINITIALIZED_REFERENCE_TYPES, VARIABLE, WILDCARD_TYPE| Constructor and Description |
|---|
ParameterizedMethodBinding() |
ParameterizedMethodBinding(ParameterizedTypeBinding parameterizedDeclaringClass,
MethodBinding originalMethod)
Create method of parameterized type, substituting original parameters/exception/return type with type arguments.
|
ParameterizedMethodBinding(ReferenceBinding declaringClass,
MethodBinding originalMethod,
char[][] alternateParamaterNames,
LookupEnvironment environment)
Create method of parameterized type, substituting original parameters/exception/return type with type arguments.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
alwaysNeedsAccessMethod()
Subtypes can override this to return true if an access method should be
used when referring to this method binding.
|
boolean |
canBeSeenBy(TypeBinding receiverType,
InvocationSite invocationSite,
Scope scope) |
MethodBinding |
getAccessMethod(boolean staticReference)
This will only be called if alwaysNeedsAccessMethod() returns true.
|
boolean |
hasSubstitutedParameters()
Returns true if some parameters got substituted.
|
boolean |
hasSubstitutedReturnType()
Returns true if the return type got substituted.
|
static ParameterizedMethodBinding |
instantiateGetClass(TypeBinding receiverType,
MethodBinding originalMethod,
Scope scope)
The type of x.getClass() is substituted from 'Class extends Object>' into: 'Class extends raw(X)>
|
MethodBinding |
original()
Returns the original method (as opposed to parameterized instances)
|
MethodBinding |
shallowOriginal()
Strips one level of parameterization, so if both class & method are parameterized,
leave the class parameters in place.
|
AbstractMethodDeclaration |
sourceMethod() |
areParameterErasuresEqual, areParametersCompatibleWith, areParametersEqual, areTypeVariableErasuresEqual, asRawMethod, canBeSeenBy, canBeSeenBy, collectMissingTypes, computeUniqueKey, constantPoolName, fillInDefaultNonNullness, fillInDefaultNonNullness18, findOriginalInheritedMethod, findPrivilegedBinding, genericMethod, genericSignature, getAccessFlags, getAnnotations, getAnnotationTagBits, getDefaultValue, getParameterAnnotations, getTypeVariable, getVisibleBinding, getVisibleBinding, hasNonNullDefaultFor, isAbstract, isBridge, isConstructor, isDefault, isDefaultAbstract, isDefaultMethod, isDeprecated, isFinal, isImplementing, isMain, isNative, isOrEnclosedByPrivateType, isOverriding, isPolymorphic, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isSynthetic, isUsed, isVarargs, isViewedAsDeprecated, isVoidMethod, kind, readableName, redeclaresPublicObjectMethod, setAnnotations, setAnnotations, setDefaultValue, setParameterAnnotations, setSelector, shortReadableName, signature, signature, sourceEnd, sourceLambda, sourceStart, tiebreakMethod, toString, typeVariablescomputeUniqueKey, initializeDeprecatedAnnotationTagBits, isAnnotationType, isParameter, isTaggedRepeatable, isValidBinding, isVolatile, problemId, setAnnotationsprotected MethodBinding originalMethod
public ParameterizedMethodBinding(ParameterizedTypeBinding parameterizedDeclaringClass, MethodBinding originalMethod)
public ParameterizedMethodBinding(ReferenceBinding declaringClass, MethodBinding originalMethod, char[][] alternateParamaterNames, LookupEnvironment environment)
public ParameterizedMethodBinding()
public static ParameterizedMethodBinding instantiateGetClass(TypeBinding receiverType, MethodBinding originalMethod, Scope scope)
public boolean hasSubstitutedParameters()
hasSubstitutedParameters in class MethodBindingpublic boolean hasSubstitutedReturnType()
hasSubstitutedReturnType in class MethodBindingpublic MethodBinding original()
original in class MethodBindingpublic MethodBinding shallowOriginal()
MethodBindingshallowOriginal in class MethodBindingpublic boolean alwaysNeedsAccessMethod()
MethodBindingalwaysNeedsAccessMethod in class MethodBindingpublic boolean canBeSeenBy(TypeBinding receiverType, InvocationSite invocationSite, Scope scope)
canBeSeenBy in class MethodBindingpublic MethodBinding getAccessMethod(boolean staticReference)
MethodBindinggetAccessMethod in class MethodBindingpublic AbstractMethodDeclaration sourceMethod()
sourceMethod in class MethodBinding