public abstract static class MethodDescription.AbstractMethodDescription extends ModifierReviewable.AbstractModifierReviewable implements MethodDescription
MethodDescription.AbstractMethodDescription, MethodDescription.ForLoadedConstructor, MethodDescription.ForLoadedMethod, MethodDescription.Latent
ModifierReviewable.AbstractModifierReviewable
CONSTRUCTOR_INTERNAL_NAME, STATIC_INITIALIZER_INTERNAL_NAME
Constructor and Description |
---|
AbstractMethodDescription() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getDescriptor()
Returns the descriptor of this byte code element.
|
int |
getParameterOffset(int parameterIndex)
Returns the offset of the parameter at
parameterIndex on the described method's local variable array. |
int |
getStackSize()
Returns the size of the local variable array that is required for this method, i.e.
|
String |
getUniqueSignature()
Returns the unique signature of a byte code method.
|
int |
hashCode() |
boolean |
isDefaultMethod()
Checks if this method represents a Java 8+ default method.
|
boolean |
isOverridable()
Verifies if this method description represents an overridable method.
|
boolean |
isSpecializableFor(TypeDescription targetType)
Checks if this method can be called using the
INVOKESPECIAL for a given type. |
boolean |
isVisibleTo(TypeDescription typeDescription)
Checks if this element is visible from a given type.
|
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getExceptionTypes, getParameterAnnotations, getParameterTypes, getReturnType, isConstructor, represents, represents
getModifiers, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
getInternalName, getName
getDeclaringType
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAnnotationPresent
public String getUniqueSignature()
ByteCodeMethod
getUniqueSignature
in interface ByteCodeMethod
public int getStackSize()
MethodDescription
this
if this method represented a non-static
method.getStackSize
in interface MethodDescription
public String getDescriptor()
ByteCodeElement
getDescriptor
in interface ByteCodeElement
public boolean isVisibleTo(TypeDescription typeDescription)
ByteCodeElement
isVisibleTo
in interface ByteCodeElement
typeDescription
- The type which is checked for its access of this element.true
if this element is visible for typeDescription
.public boolean isOverridable()
MethodDescription
isOverridable
in interface MethodDescription
true
if this method description represents an overridable method.public int getParameterOffset(int parameterIndex)
MethodDescription
parameterIndex
on the described method's local variable array.getParameterOffset
in interface MethodDescription
parameterIndex
- The parameter index of interest.public boolean isDefaultMethod()
MethodDescription
isDefaultMethod
in interface MethodDescription
true
if this method is a default method.public boolean isSpecializableFor(TypeDescription targetType)
MethodDescription
INVOKESPECIAL
for a given type.isSpecializableFor
in interface MethodDescription
targetType
- The type otrue
if this method can be called using the INVOKESPECIAL
instruction
using the given type.Copyright © 2014. All rights reserved.