Klasse ParameterizedMethodBinding
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodBinding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ParameterizedMethodBinding
- Bekannte direkte Unterklassen:
ParameterizedGenericMethodBinding
Binding denoting a method after type parameter substitutions got performed.
On parameterized type bindings, all methods got substituted, regardless whether
their signature did involve generics or not, so as to get the proper declaringClass for
these methods.
-
Feldübersicht
FelderVon Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodBinding
declaringClass, defaultNullness, extendedTagBits, modifiers, parameterNames, parameterNonNullness, parameters, receiver, returnType, selector, tagBits, thrownExceptions, typeAnnotations, typeVariablesVon Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding
ANY_EXCEPTION, ARRAY_TYPE, BASE_TYPE, DefaultLocationArrayContents, DefaultLocationField, DefaultLocationParameter, DefaultLocationReturnType, DefaultLocationsForTrueValue, DefaultLocationTypeArgument, DefaultLocationTypeBound, DefaultLocationTypeParameter, FIELD, GENERIC_TYPE, IMPORT, INTERSECTION_TYPE, INTERSECTION_TYPE18, LOCAL, METHOD, MODULE, NO_ANNOTATIONS, NO_COMPONENTS, NO_ELEMENT_VALUE_PAIRS, NO_EXCEPTIONS, NO_FIELDS, NO_MEMBER_TYPES, NO_METHODS, NO_MODULES, NO_NULL_DEFAULT, NO_PACKAGES, NO_PARAMETER_NAMES, NO_PARAMETERS, NO_PERMITTEDTYPES, NO_PLAIN_PACKAGES, NO_REFERENCE_TYPES, NO_SUPERINTERFACES, NO_TYPE_VARIABLES, NO_TYPES, NULL_UNSPECIFIED_BY_DEFAULT, NullnessDefaultMASK, PACKAGE, PARAMETERIZED_TYPE, PATTERN, POLY_TYPE, RAW_TYPE, RECORD_COMPONENT, TYPE, TYPE_PARAMETER, TYPE_USE, UNINITIALIZED_COMPONENTS, UNINITIALIZED_FIELDS, UNINITIALIZED_METHODS, UNINITIALIZED_REFERENCE_TYPES, VARIABLE, WILDCARD_TYPE -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungParameterizedMethodBinding(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. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanSubtypes can override this to return true if an access method should be used when referring to this method binding.booleancanBeSeenBy(TypeBinding receiverType, InvocationSite invocationSite, Scope scope) getAccessMethod(boolean staticReference) This will only be called if alwaysNeedsAccessMethod() returns true.booleanReturns true if some parameters got substituted.booleanReturns true if the return type got substituted.static ParameterizedMethodBindinginstantiateGetClass(TypeBinding receiverType, MethodBinding originalMethod, Scope scope) The type of x.getClass() is substituted from 'ClassUngültige Eingabe: "<"?original()Returns the original method (as opposed to parameterized instances)Strips one level of parameterization, so if both class Ungültige Eingabe: "&" method are parameterized, leave the class parameters in place.Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodBinding
areParameterErasuresEqual, areParametersCompatibleWith, areParametersEqual, areTypeVariableErasuresEqual, asRawMethod, canBeSeenBy, canBeSeenBy, collectMissingTypes, computeSubstitutedMethod, computeUniqueKey, constantPoolName, doesParameterLengthMatch, fillInDefaultNonNullness, fillInDefaultNonNullness18, findOriginalInheritedMethod, findPrivilegedBinding, genericMethod, genericSignature, getAccessFlags, getAllTypeVariables, getAnnotations, getAnnotationTagBits, getDefaultValue, getParameterAnnotations, getTypeAnnotations, getTypeVariable, getVisibleBinding, getVisibleBinding, hasNonNullDefaultForParameter, hasNonNullDefaultForReturnType, hasPolymorphicSignature, isAbstract, isBridge, isCanonicalConstructor, isCompactConstructor, isConstructor, isDefault, isDefaultAbstract, isDefaultMethod, isDeprecated, isFinal, isImplementing, isImplicit, isMain, isNative, isOrEnclosedByPrivateType, isOverriding, isParameterizedGeneric, isPolymorphic, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isSynthetic, isUsed, isVarargs, isViewedAsDeprecated, isVoidMethod, kind, readableName, redeclaresPublicObjectMethod, setAnnotations, setAnnotations, setDefaultValue, setParameterAnnotations, setSelector, setTypeAnnotations, shortReadableName, signature, signature, sourceEnd, sourceLambda, sourceRecordComponent, sourceStart, tiebreakMethod, toString, typeVariables, updateTypeVariableBindingVon Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding
computeUniqueKey, initializeDeprecatedAnnotationTagBits, isAnnotationType, isParameter, isTaggedRepeatable, isValid, isValidBinding, isVolatile, problemId, setAnnotations
-
Felddetails
-
originalMethod
-
-
Konstruktordetails
-
ParameterizedMethodBinding
public ParameterizedMethodBinding(ParameterizedTypeBinding parameterizedDeclaringClass, MethodBinding originalMethod) Create method of parameterized type, substituting original parameters/exception/return type with type arguments. -
ParameterizedMethodBinding
public ParameterizedMethodBinding(ReferenceBinding declaringClass, MethodBinding originalMethod, char[][] alternateParamaterNames, LookupEnvironment environment) Create method of parameterized type, substituting original parameters/exception/return type with type arguments. This is a CODE ASSIST method ONLY. -
ParameterizedMethodBinding
public ParameterizedMethodBinding()
-
-
Methodendetails
-
instantiateGetClass
public static ParameterizedMethodBinding instantiateGetClass(TypeBinding receiverType, MethodBinding originalMethod, Scope scope) The type of x.getClass() is substituted from 'ClassUngültige Eingabe: "<"? extends Object>' into: 'ClassUngültige Eingabe: "<"? extends raw(X)> -
hasSubstitutedParameters
public boolean hasSubstitutedParameters()Returns true if some parameters got substituted.- Setzt außer Kraft:
hasSubstitutedParametersin KlasseMethodBinding
-
hasSubstitutedReturnType
public boolean hasSubstitutedReturnType()Returns true if the return type got substituted.- Setzt außer Kraft:
hasSubstitutedReturnTypein KlasseMethodBinding
-
original
Returns the original method (as opposed to parameterized instances)- Setzt außer Kraft:
originalin KlasseMethodBinding
-
shallowOriginal
Beschreibung aus Klasse kopiert:MethodBindingStrips one level of parameterization, so if both class Ungültige Eingabe: "&" method are parameterized, leave the class parameters in place.- Setzt außer Kraft:
shallowOriginalin KlasseMethodBinding
-
alwaysNeedsAccessMethod
public boolean alwaysNeedsAccessMethod()Beschreibung aus Klasse kopiert:MethodBindingSubtypes can override this to return true if an access method should be used when referring to this method binding. Currently used for AspectJ's inter-type method declarations.- Setzt außer Kraft:
alwaysNeedsAccessMethodin KlasseMethodBinding
-
canBeSeenBy
- Setzt außer Kraft:
canBeSeenByin KlasseMethodBinding
-
getAccessMethod
Beschreibung aus Klasse kopiert:MethodBindingThis will only be called if alwaysNeedsAccessMethod() returns true. In that case it should return the access method to be used.- Setzt außer Kraft:
getAccessMethodin KlasseMethodBinding
-
sourceMethod
- Setzt außer Kraft:
sourceMethodin KlasseMethodBinding
-