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

java.lang.Object
  继承者 org.eclipse.jdt.internal.compiler.lookup.Binding
      继承者 org.eclipse.jdt.internal.compiler.lookup.MethodBinding
          继承者 org.eclipse.jdt.internal.compiler.lookup.ParameterizedMethodBinding
直接已知子类:
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.


字段摘要
protected  MethodBinding originalMethod
           
 
从类 org.eclipse.jdt.internal.compiler.lookup.MethodBinding 继承的字段
declaringClass, modifiers, parameters, returnType, selector, tagBits, thrownExceptions, typeVariables
 
从类 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, UNINITIALIZED_REFERENCE_TYPES, VARIABLE, WILDCARD_TYPE
 
构造方法摘要
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.
 
方法摘要
 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
 MethodBinding original()
          Returns the original method (as opposed to parameterized instances)
 
从类 org.eclipse.jdt.internal.compiler.lookup.MethodBinding 继承的方法
areParameterErasuresEqual, areParametersCompatibleWith, areParametersEqual, areTypeVariableErasuresEqual, canBeSeenBy, canBeSeenBy, canBeSeenBy, collectMissingTypes, computeUniqueKey, constantPoolName, findOriginalInheritedMethod, genericSignature, getAccessFlags, getAnnotations, getAnnotationTagBits, getDefaultValue, getParameterAnnotations, getTypeVariable, isAbstract, isBridge, isConstructor, isDefault, isDefaultAbstract, isDeprecated, isFinal, isImplementing, isMain, isNative, isOrEnclosedByPrivateType, isOverriding, isPolymorphic, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isSynthetic, isUsed, isVarargs, isViewedAsDeprecated, kind, readableName, setAnnotations, setAnnotations, setDefaultValue, setParameterAnnotations, setSelector, shortReadableName, signature, signature, sourceEnd, sourceMethod, sourceStart, tiebreakMethod, toString, typeVariables
 
从类 org.eclipse.jdt.internal.compiler.lookup.Binding 继承的方法
computeUniqueKey, initializeDeprecatedAnnotationTagBits, isParameter, isValidBinding, isVolatile, problemId
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

originalMethod

protected MethodBinding originalMethod
构造方法详细信息

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()
方法详细信息

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.

覆盖:
MethodBinding 中的 hasSubstitutedParameters

hasSubstitutedReturnType

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

覆盖:
MethodBinding 中的 hasSubstitutedReturnType

original

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

覆盖:
MethodBinding 中的 original


Copyright © 2013. All Rights Reserved.