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

java.lang.Object
  继承者 org.eclipse.jdt.internal.compiler.lookup.Binding
      继承者 org.eclipse.jdt.internal.compiler.lookup.MethodBinding
          继承者 org.eclipse.jdt.internal.compiler.lookup.ParameterizedMethodBinding
              继承者 org.eclipse.jdt.internal.compiler.lookup.ParameterizedGenericMethodBinding
所有已实现的接口:
Substitution

public class ParameterizedGenericMethodBinding
extends ParameterizedMethodBinding
implements Substitution

Binding denoting a generic 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.


字段摘要
 boolean inferredReturnType
           
 boolean isRaw
           
 TypeBinding[] typeArguments
           
 boolean wasInferred
           
 
从类 org.eclipse.jdt.internal.compiler.lookup.ParameterizedMethodBinding 继承的字段
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
 
构造方法摘要
ParameterizedGenericMethodBinding(MethodBinding originalMethod, RawTypeBinding rawType, LookupEnvironment environment)
          Create raw generic method for raw type (double substitution from type vars with raw type arguments, and erasure of method variables) Only invoked for non-static generic methods of raw type
ParameterizedGenericMethodBinding(MethodBinding originalMethod, TypeBinding[] typeArguments, LookupEnvironment environment)
          Create method of parameterized type, substituting original parameters with type arguments.
 
方法摘要
static MethodBinding computeCompatibleMethod(MethodBinding originalMethod, TypeBinding[] arguments, Scope scope, InvocationSite invocationSite)
          Perform inference of generic method type parameters and/or expected type
 char[] computeUniqueKey(boolean isLeaf)
           
 LookupEnvironment environment()
          Returns the lookup environment
 boolean hasSubstitutedParameters()
          Returns true if some parameters got substituted.
 boolean hasSubstitutedReturnType()
          Returns true if the return type got substituted.
 boolean isRawSubstitution()
          Returns true for raw substitution
 TypeBinding substitute(TypeVariableBinding originalVariable)
          Returns the type substitute for a given type variable, or itself if no substitution got performed.
 MethodBinding tiebreakMethod()
          Returns the method to use during tiebreak (usually the method itself).
 
从类 org.eclipse.jdt.internal.compiler.lookup.ParameterizedMethodBinding 继承的方法
instantiateGetClass, original
 
从类 org.eclipse.jdt.internal.compiler.lookup.MethodBinding 继承的方法
areParameterErasuresEqual, areParametersCompatibleWith, areParametersEqual, areTypeVariableErasuresEqual, canBeSeenBy, canBeSeenBy, canBeSeenBy, collectMissingTypes, 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, 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
 

字段详细信息

typeArguments

public TypeBinding[] typeArguments

inferredReturnType

public boolean inferredReturnType

wasInferred

public boolean wasInferred

isRaw

public boolean isRaw
构造方法详细信息

ParameterizedGenericMethodBinding

public ParameterizedGenericMethodBinding(MethodBinding originalMethod,
                                         RawTypeBinding rawType,
                                         LookupEnvironment environment)
Create raw generic method for raw type (double substitution from type vars with raw type arguments, and erasure of method variables) Only invoked for non-static generic methods of raw type


ParameterizedGenericMethodBinding

public ParameterizedGenericMethodBinding(MethodBinding originalMethod,
                                         TypeBinding[] typeArguments,
                                         LookupEnvironment environment)
Create method of parameterized type, substituting original parameters with type arguments.

方法详细信息

computeCompatibleMethod

public static MethodBinding computeCompatibleMethod(MethodBinding originalMethod,
                                                    TypeBinding[] arguments,
                                                    Scope scope,
                                                    InvocationSite invocationSite)
Perform inference of generic method type parameters and/or expected type


computeUniqueKey

public char[] computeUniqueKey(boolean isLeaf)
覆盖:
MethodBinding 中的 computeUniqueKey

environment

public LookupEnvironment environment()
从接口 Substitution 复制的描述
Returns the lookup environment

指定者:
接口 Substitution 中的 environment
另请参见:
Substitution.environment()

hasSubstitutedParameters

public boolean hasSubstitutedParameters()
Returns true if some parameters got substituted. NOTE: generic method invocation delegates to its declaring method (could be a parameterized one)

覆盖:
ParameterizedMethodBinding 中的 hasSubstitutedParameters

hasSubstitutedReturnType

public boolean hasSubstitutedReturnType()
Returns true if the return type got substituted. NOTE: generic method invocation delegates to its declaring method (could be a parameterized one)

覆盖:
ParameterizedMethodBinding 中的 hasSubstitutedReturnType

isRawSubstitution

public boolean isRawSubstitution()
从接口 Substitution 复制的描述
Returns true for raw substitution

指定者:
接口 Substitution 中的 isRawSubstitution
另请参见:
Substitution.isRawSubstitution()

substitute

public TypeBinding substitute(TypeVariableBinding originalVariable)
从接口 Substitution 复制的描述
Returns the type substitute for a given type variable, or itself if no substitution got performed.

指定者:
接口 Substitution 中的 substitute
另请参见:
Substitution.substitute(org.eclipse.jdt.internal.compiler.lookup.TypeVariableBinding)

tiebreakMethod

public MethodBinding tiebreakMethod()
从类 MethodBinding 复制的描述
Returns the method to use during tiebreak (usually the method itself). For generic method invocations, tiebreak needs to use generic method with erasure substitutes.

覆盖:
MethodBinding 中的 tiebreakMethod
另请参见:
MethodBinding.tiebreakMethod()


Copyright © 2013. All Rights Reserved.