public static class MethodDescription.Latent extends MethodDescription.InDefinedShape.AbstractBase
TypeDescription
.Modifier and Type | Class and Description |
---|---|
static class |
MethodDescription.Latent.TypeInitializer
A method description that represents the type initializer.
|
MethodDescription.InDefinedShape.AbstractBase
MethodDescription.ForLoadedConstructor, MethodDescription.ForLoadedMethod, MethodDescription.InDefinedShape, MethodDescription.InGenericShape, MethodDescription.Latent, MethodDescription.SignatureToken, MethodDescription.Token, MethodDescription.TypeSubstituting, MethodDescription.TypeToken
TypeVariableSource.Visitor<T>
ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration
ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>
NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
AnnotationSource.Empty, AnnotationSource.Explicit
Modifier and Type | Field and Description |
---|---|
private java.util.List<? extends AnnotationDescription> |
declaredAnnotations
The annotations of this method.
|
private TypeDescription |
declaringType
The type that is declaring this method.
|
private AnnotationValue<?,?> |
defaultValue
The default value of this method or
null if no default annotation value is defined. |
private java.util.List<? extends TypeDescription.Generic> |
exceptionTypes
This method's exception types.
|
private java.lang.String |
internalName
The internal name of this method.
|
private int |
modifiers
The modifiers of this method.
|
private java.util.List<? extends ParameterDescription.Token> |
parameterTokens
The parameter tokens describing this method.
|
private TypeDescription.Generic |
receiverType
The receiver type of this method or
null if the receiver type is defined implicitly. |
private TypeDescription.Generic |
returnType
The return type of this method.
|
private java.util.List<? extends TypeVariableToken> |
typeVariables
A tokenized list representing the method's type variables.
|
CONSTRUCTOR_INTERNAL_NAME, TYPE_INITIALIZER_INTERNAL_NAME, TYPE_INITIALIZER_MODIFIER, UNDEFINED
EMPTY_MASK
NON_GENERIC_SIGNATURE
EMPTY_NAME, NO_NAME
Constructor and Description |
---|
Latent(TypeDescription declaringType,
MethodDescription.Token token)
Creates a new latent method description.
|
Latent(TypeDescription declaringType,
java.lang.String internalName,
int modifiers,
java.util.List<? extends TypeVariableToken> typeVariables,
TypeDescription.Generic returnType,
java.util.List<? extends ParameterDescription.Token> parameterTokens,
java.util.List<? extends TypeDescription.Generic> exceptionTypes,
java.util.List<? extends AnnotationDescription> declaredAnnotations,
AnnotationValue<?,?> defaultValue,
TypeDescription.Generic receiverType)
Creates a new latent method description.
|
Modifier and Type | Method and Description |
---|---|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
TypeDescription |
getDeclaringType()
Returns the declaring type of this instance.
|
AnnotationValue<?,?> |
getDefaultValue()
Returns the method's default annotation value or
null if no default value is defined for this method. |
TypeList.Generic |
getExceptionTypes()
Returns the exception types of the described method.
|
java.lang.String |
getInternalName()
Returns the internal internalName of this byte code element.
|
int |
getModifiers()
Returns the modifier that is described by this object.
|
ParameterList<ParameterDescription.InDefinedShape> |
getParameters()
Returns a list of this method's parameters.
|
TypeDescription.Generic |
getReceiverType()
Returns this methods receiver type.
|
TypeDescription.Generic |
getReturnType()
Returns the return type of the described method.
|
TypeList.Generic |
getTypeVariables()
Returns the type variables that are declared by this element.
|
asDefined
accept, asSignatureToken, asToken, asTypeToken, equals, getActualModifiers, getActualModifiers, getActualModifiers, getActualName, getDefaultValue, getDescriptor, getEnclosingSource, getGenericSignature, getName, getStackSize, hashCode, isAccessibleTo, isBridgeCompatible, isConstantBootstrap, isConstantBootstrap, isConstructor, isDefaultMethod, isDefaultValue, isDefaultValue, isGenerified, isInvokableOn, isInvokeBootstrap, isInvokeBootstrap, isMethod, isSpecializableFor, isTypeInitializer, isVirtual, isVisibleTo, represents, represents, toGenericString, toString
findVariable
getEnumerationState, getFieldManifestation, getFieldPersistence, getMethodManifestation, getMethodStrictness, getOwnership, getParameterManifestation, getProvisioningState, getSynchronizationState, getSyntheticState, getTypeManifestation, getVisibility, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asSignatureToken, asTypeToken, getActualModifiers, getActualModifiers, getActualModifiers, getDefaultValue, getStackSize, isBridgeCompatible, isConstantBootstrap, isConstantBootstrap, isConstructor, isDefaultMethod, isDefaultValue, isDefaultValue, isInvokableOn, isInvokeBootstrap, isInvokeBootstrap, isMethod, isSpecializableFor, isTypeInitializer, isVirtual, represents, represents
accept, findVariable, getEnclosingSource, isGenerified
getMethodManifestation, getMethodStrictness, getSynchronizationState, isBridge, isNative, isStrict, isSynchronized, isVarArgs
isAbstract
getOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic
getSyntheticState, isFinal, isSynthetic
toGenericString
getDescriptor, getGenericSignature, isAccessibleTo, isVisibleTo
getName
getActualName
asToken
private final TypeDescription declaringType
private final java.lang.String internalName
private final int modifiers
private final java.util.List<? extends TypeVariableToken> typeVariables
private final TypeDescription.Generic returnType
private final java.util.List<? extends ParameterDescription.Token> parameterTokens
private final java.util.List<? extends TypeDescription.Generic> exceptionTypes
private final java.util.List<? extends AnnotationDescription> declaredAnnotations
private final AnnotationValue<?,?> defaultValue
null
if no default annotation value is defined.private final TypeDescription.Generic receiverType
null
if the receiver type is defined implicitly.public Latent(TypeDescription declaringType, MethodDescription.Token token)
declaringType
- The declaring type of the method.token
- A token representing the method's shape.public Latent(TypeDescription declaringType, java.lang.String internalName, int modifiers, java.util.List<? extends TypeVariableToken> typeVariables, TypeDescription.Generic returnType, java.util.List<? extends ParameterDescription.Token> parameterTokens, java.util.List<? extends TypeDescription.Generic> exceptionTypes, java.util.List<? extends AnnotationDescription> declaredAnnotations, AnnotationValue<?,?> defaultValue, TypeDescription.Generic receiverType)
declaringType
- The type that is declaring this method.internalName
- The internal name of this method.modifiers
- The modifiers of this method.typeVariables
- The type variables of the described method.returnType
- The return type of this method.parameterTokens
- The parameter tokens describing this method.exceptionTypes
- This method's exception types.declaredAnnotations
- The annotations of this method.defaultValue
- The default value of this method or null
if no default annotation value is defined.receiverType
- The receiver type of this method or null
if the receiver type is defined implicitly.public TypeList.Generic getTypeVariables()
public TypeDescription.Generic getReturnType()
public ParameterList<ParameterDescription.InDefinedShape> getParameters()
public TypeList.Generic getExceptionTypes()
public AnnotationList getDeclaredAnnotations()
public java.lang.String getInternalName()
public TypeDescription getDeclaringType()
null
if no such type exists.public int getModifiers()
public AnnotationValue<?,?> getDefaultValue()
null
if no default value is defined for this method.null
if no default value is defined for this method.public TypeDescription.Generic getReceiverType()
static
methods
where null
is returned. Other than a receiver type that is provided by the Java reflection
API, Byte Buddy is capable of extracting annotations on type parameters of receiver types when
directly accessing a class file. Therefore, a receiver type might be parameterized.getReceiverType
in interface MethodDescription
getReceiverType
in class MethodDescription.InDefinedShape.AbstractBase