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.Latent, MethodDescription.Token, MethodDescription.TypeSubstituting, MethodDescription.TypeToken
TypeVariableSource.Visitor<T>
ByteCodeElement.Accessible, ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>
NamedElement.WithGenericName, NamedElement.WithRuntimeName
CONSTRUCTOR_INTERNAL_NAME, NO_DEFAULT_VALUE, TYPE_INITIALIZER_INTERNAL_NAME, TYPE_INITIALIZER_MODIFIER, UNDEFINED
NON_GENERIC_SIGNATURE
EMPTY_NAME
EMPTY_MASK
Constructor and Description |
---|
Latent(TypeDescription declaringType,
MethodDescription.Token token)
Creates a new latent method description.
|
Latent(TypeDescription declaringType,
String internalName,
int modifiers,
List<? extends GenericTypeDescription> typeVariables,
GenericTypeDescription returnType,
List<? extends ParameterDescription.Token> parameterTokens,
List<? extends GenericTypeDescription> exceptionTypes,
List<? extends AnnotationDescription> declaredAnnotations,
Object defaultValue)
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.
|
Object |
getDefaultValue()
Returns the default value of this method or
null if no such value exists. |
GenericTypeList |
getExceptionTypes()
Returns the exception types of the described method.
|
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.
|
GenericTypeDescription |
getReturnType()
Returns the return type of the described method.
|
GenericTypeList |
getTypeVariables()
Returns the type variables that are declared by this element.
|
asDefined, isAccessibleTo
accept, asToken, asToken, asTypeToken, equals, findVariable, getAdjustedModifiers, getDefaultValue, getDescriptor, getEnclosingSource, getGenericSignature, getName, getSourceCodeName, getStackSize, hashCode, isBootstrap, isBootstrap, isConstructor, isDefaultMethod, isDefaultValue, isDefaultValue, isInvokableOn, isMethod, isSpecializableFor, isTypeInitializer, isVirtual, isVisibleTo, represents, represents, toGenericString, toString
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asTypeToken, getAdjustedModifiers, getDefaultValue, getStackSize, isBootstrap, isBootstrap, isConstructor, isDefaultMethod, isDefaultValue, isDefaultValue, isInvokableOn, isMethod, isSpecializableFor, isTypeInitializer, isVirtual, represents, represents
accept, findVariable, getEnclosingSource
getDescriptor, getGenericSignature, isVisibleTo
getName
getSourceCodeName
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
toGenericString
asToken, asToken
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, String internalName, int modifiers, List<? extends GenericTypeDescription> typeVariables, GenericTypeDescription returnType, List<? extends ParameterDescription.Token> parameterTokens, List<? extends GenericTypeDescription> exceptionTypes, List<? extends AnnotationDescription> declaredAnnotations, Object defaultValue)
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.public GenericTypeList getTypeVariables()
TypeVariableSource
public GenericTypeDescription getReturnType()
MethodDescription
public ParameterList<ParameterDescription.InDefinedShape> getParameters()
MethodDescription
public GenericTypeList getExceptionTypes()
MethodDescription
public AnnotationList getDeclaredAnnotations()
AnnotatedCodeElement
public String getInternalName()
NamedElement.WithRuntimeName
public TypeDescription getDeclaringType()
DeclaredByType
null
if no such type exists.public int getModifiers()
ModifierReviewable
public Object getDefaultValue()
MethodDescription
null
if no such value exists. The returned values might be
of a different type than usual:
Class
values are represented as
TypeDescription
s.Annotation
values are represented as
AnnotationDescription
sEnum
values are represented as
EnumerationDescription
s.null
.Copyright © 2014–2015. All rights reserved.