Klasse ParameterizedMethodBinding

Bekannte direkte Unterklassen:
ParameterizedGenericMethodBinding

public class ParameterizedMethodBinding extends MethodBinding
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.
  • Felddetails

  • 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:
      hasSubstitutedParameters in Klasse MethodBinding
    • hasSubstitutedReturnType

      public boolean hasSubstitutedReturnType()
      Returns true if the return type got substituted.
      Setzt außer Kraft:
      hasSubstitutedReturnType in Klasse MethodBinding
    • original

      public MethodBinding original()
      Returns the original method (as opposed to parameterized instances)
      Setzt außer Kraft:
      original in Klasse MethodBinding
    • shallowOriginal

      public MethodBinding shallowOriginal()
      Beschreibung aus Klasse kopiert: MethodBinding
      Strips one level of parameterization, so if both class Ungültige Eingabe: "&" method are parameterized, leave the class parameters in place.
      Setzt außer Kraft:
      shallowOriginal in Klasse MethodBinding
    • alwaysNeedsAccessMethod

      public boolean alwaysNeedsAccessMethod()
      Beschreibung aus Klasse kopiert: MethodBinding
      Subtypes 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:
      alwaysNeedsAccessMethod in Klasse MethodBinding
    • canBeSeenBy

      public boolean canBeSeenBy(TypeBinding receiverType, InvocationSite invocationSite, Scope scope)
      Setzt außer Kraft:
      canBeSeenBy in Klasse MethodBinding
    • getAccessMethod

      public MethodBinding getAccessMethod(boolean staticReference)
      Beschreibung aus Klasse kopiert: MethodBinding
      This will only be called if alwaysNeedsAccessMethod() returns true. In that case it should return the access method to be used.
      Setzt außer Kraft:
      getAccessMethod in Klasse MethodBinding
    • sourceMethod

      public AbstractMethodDeclaration sourceMethod()
      Setzt außer Kraft:
      sourceMethod in Klasse MethodBinding