public static class MethodLookupEngine.ConflictingInterfaceMethod extends MethodDescription.AbstractMethodDescription
MethodDescription represents methods that are defined
ambiguously on several interfaces of a common type.MethodDescription.AbstractMethodDescription, MethodDescription.ForLoadedConstructor, MethodDescription.ForLoadedMethod, MethodDescription.LatentModifierReviewable.AbstractModifierReviewableCONSTRUCTOR_INTERNAL_NAME, STATIC_INITIALIZER_INTERNAL_NAME| Modifier | Constructor and Description |
|---|---|
protected |
ConflictingInterfaceMethod(TypeDescription virtualHost,
List<MethodDescription> methodDescriptions)
Creates a new conflicting interface method.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Annotation[] |
getAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
TypeDescription |
getDeclaringType()
Returns the declaring type of this instance.
|
TypeList |
getExceptionTypes()
Returns a description of the exception types of the method described by this instance.
|
String |
getInternalName()
Returns the internal internalName of this byte code element.
|
int |
getModifiers()
Returns the modifier that is described by this object.
|
String |
getName()
Returns the internalName of this byte code element.
|
Annotation[][] |
getParameterAnnotations()
Returns the parameter annotations of the method described by this instance.
|
TypeList |
getParameterTypes()
Returns a list of type descriptions of the method described by this instance.
|
TypeDescription |
getReturnType()
Returns a description of the return type of the method described by this instance.
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass) |
boolean |
isConstructor()
Specifies if this method description represents a constructor.
|
boolean |
isSpecializableFor(TypeDescription targetType)
Checks if this method can be called using the
INVOKESPECIAL for a given type. |
boolean |
represents(Constructor<?> constructor)
Verifies if a method description represents a given loaded constructor.
|
boolean |
represents(Method method)
Verifies if a method description represents a given loaded method.
|
String |
toString() |
equals, getDescriptor, getParameterOffset, getStackSize, getUniqueSignature, hashCode, isDefaultMethod, isOverridable, isVisibleToisAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatileclone, finalize, getClass, notify, notifyAll, wait, wait, waitisAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatilegetAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByTypeprotected ConflictingInterfaceMethod(TypeDescription virtualHost, List<MethodDescription> methodDescriptions)
virtualHost - The virtual host of the methods that are not really declared by any type.methodDescriptions - The methods that are in conflict to another. All of these methods must be
methods that are declared in an interface and none of these methods must
override another.public TypeDescription getReturnType()
MethodDescriptionpublic TypeList getParameterTypes()
MethodDescriptionpublic Annotation[][] getParameterAnnotations()
MethodDescriptionpublic TypeList getExceptionTypes()
MethodDescriptionpublic boolean isConstructor()
MethodDescriptiontrue if this method description represents a constructor.public boolean represents(Method method)
MethodDescriptionmethod - The method to be checked.true if this method description represents the given loaded method.public boolean represents(Constructor<?> constructor)
MethodDescriptionconstructor - The constructor to be checked.true if this method description represents the given loaded constructor.public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
public Annotation[] getAnnotations()
public Annotation[] getDeclaredAnnotations()
public String getName()
ByteCodeElementpublic String getInternalName()
ByteCodeElementpublic TypeDescription getDeclaringType()
DeclaredInTypenull if no such type exists.public int getModifiers()
ModifierReviewablepublic boolean isSpecializableFor(TypeDescription targetType)
MethodDescriptionINVOKESPECIAL for a given type.isSpecializableFor in interface MethodDescriptionisSpecializableFor in class MethodDescription.AbstractMethodDescriptiontargetType - The type otrue if this method can be called using the INVOKESPECIAL instruction
using the given type.Copyright © 2014. All rights reserved.