protected static class MethodTransformer.Simple.TransformedMethod extends MethodDescription.AbstractBase
Modifier and Type | Class and Description |
---|---|
protected class |
MethodTransformer.Simple.TransformedMethod.TransformedParameter
A transformed method's parameter.
|
protected class |
MethodTransformer.Simple.TransformedMethod.TransformedParameterList
A parameter list representing the transformed method's parameters.
|
MethodDescription.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
Modifier | Constructor and Description |
---|---|
protected |
TransformedMethod(GenericTypeDescription declaringType,
MethodDescription.Token methodToken,
MethodDescription.InDefinedShape definedShape)
Creates a new transformed method.
|
Modifier and Type | Method and Description |
---|---|
MethodDescription.InDefinedShape |
asDefined()
Returns this type dependant in its defined shape, i.e.
|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
GenericTypeDescription |
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<?> |
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.
|
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
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
protected TransformedMethod(GenericTypeDescription declaringType, MethodDescription.Token methodToken, MethodDescription.InDefinedShape definedShape)
declaringType
- The method's declaring type.methodToken
- The method representing the transformed method.definedShape
- The defined shape of the transformed method.public GenericTypeList getTypeVariables()
TypeVariableSource
public GenericTypeDescription getReturnType()
MethodDescription
public ParameterList<?> getParameters()
MethodDescription
public GenericTypeList getExceptionTypes()
MethodDescription
public AnnotationList getDeclaredAnnotations()
AnnotatedCodeElement
public String getInternalName()
NamedElement.WithRuntimeName
public GenericTypeDescription 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
.public MethodDescription.InDefinedShape asDefined()
ByteCodeElement.TypeDependant
Copyright © 2014–2015. All rights reserved.