|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.compiler.lookup.Binding
org.eclipse.jdt.internal.compiler.lookup.MethodBinding
org.eclipse.jdt.internal.compiler.lookup.ParameterizedMethodBinding
public class ParameterizedMethodBinding
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 extends Object>' into: 'Class extends raw(X)> |
MethodBinding |
original()
Returns the original method (as opposed to parameterized instances) |
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 |
---|
public ParameterizedMethodBinding(ParameterizedTypeBinding parameterizedDeclaringClass, MethodBinding originalMethod)
public ParameterizedMethodBinding(ReferenceBinding declaringClass, MethodBinding originalMethod, char[][] alternateParamaterNames, LookupEnvironment environment)
public ParameterizedMethodBinding()
Method Detail |
---|
public static ParameterizedMethodBinding instantiateGetClass(TypeBinding receiverType, MethodBinding originalMethod, Scope scope)
public boolean hasSubstitutedParameters()
hasSubstitutedParameters
in class MethodBinding
public boolean hasSubstitutedReturnType()
hasSubstitutedReturnType
in class MethodBinding
public MethodBinding original()
original
in class MethodBinding
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |