org.eclipse.jdt.internal.compiler.lookup
Class ParameterizedMethodBinding

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.lookup.Binding
      extended by org.eclipse.jdt.internal.compiler.lookup.MethodBinding
          extended by org.eclipse.jdt.internal.compiler.lookup.ParameterizedMethodBinding
Direct Known Subclasses:
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.


Field Summary
 
Fields inherited from class org.eclipse.jdt.internal.compiler.lookup.MethodBinding
declaringClass, methodDeclaration, modifiers, overriddenInheritedMethods, parameters, returnType, selector, tagBits, thrownExceptions, typeVariables
 
Fields inherited from class org.eclipse.jdt.internal.compiler.lookup.Binding
ANY_EXCEPTION, ARRAY_TYPE, BASE_TYPE, FIELD, GENERIC_TYPE, IMPORT, INTERSECTION_TYPE, LOCAL, METHOD, NO_ANNOTATIONS, NO_ELEMENT_VALUE_PAIRS, NO_EXCEPTIONS, NO_FIELDS, NO_MEMBER_TYPES, NO_METHODS, NO_PARAMETERS, NO_SUPERINTERFACES, NO_TYPE_VARIABLES, NO_TYPES, PACKAGE, PARAMETERIZED_TYPE, RAW_TYPE, TYPE, TYPE_PARAMETER, UNINITIALIZED_FIELDS, UNINITIALIZED_METHODS, VARIABLE, WILDCARD_TYPE
 
Constructor Summary
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.
 
Method Summary
 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' into: 'Class
 MethodBinding original()
          Returns the original method (as opposed to parameterized instances)
 
Methods inherited from class org.eclipse.jdt.internal.compiler.lookup.MethodBinding
areParameterErasuresEqual, areParametersCompatibleWith, areParametersEqual, areTypeVariableErasuresEqual, canBeSeenBy, canBeSeenBy, canBeSeenBy, collectMissingTypes, computeUniqueKey, constantPoolDeclaringClass, constantPoolName, genericSignature, getAccessFlags, getAnnotations, getAnnotationTagBits, getDefaultValue, getParameterAnnotations, getTypeVariable, isAbstract, isBridge, isConstructor, isDefault, isDefaultAbstract, isDeprecated, isFinal, isImplementing, isMain, isNative, isOverriding, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isSynthetic, isUsed, isVarargs, isViewedAsDeprecated, kind, readableName, setAnnotations, setAnnotations, setDefaultValue, setParameterAnnotations, shortReadableName, signature, signature, sourceEnd, sourceMethod, sourceStart, tiebreakMethod, toString, typeVariables
 
Methods inherited from class org.eclipse.jdt.internal.compiler.lookup.Binding
computeUniqueKey, initializeDeprecatedAnnotationTagBits, isValidBinding, problemId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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()
Method Detail

instantiateGetClass

public static ParameterizedMethodBinding instantiateGetClass(TypeBinding receiverType,
                                                             MethodBinding originalMethod,
                                                             Scope scope)
The type of x.getClass() is substituted from 'Class' into: 'Class


hasSubstitutedParameters

public boolean hasSubstitutedParameters()
Returns true if some parameters got substituted.

Overrides:
hasSubstitutedParameters in class MethodBinding

hasSubstitutedReturnType

public boolean hasSubstitutedReturnType()
Returns true if the return type got substituted.

Overrides:
hasSubstitutedReturnType in class MethodBinding

original

public MethodBinding original()
Returns the original method (as opposed to parameterized instances)

Overrides:
original in class MethodBinding