public static class MethodDescription.ForLoadedConstructor extends MethodDescription.InDefinedShape.AbstractBase
MethodDescription.InDefinedShape.AbstractBaseMethodDescription.ForLoadedConstructor, MethodDescription.ForLoadedMethod, MethodDescription.InDefinedShape, MethodDescription.Latent, MethodDescription.Token, MethodDescription.TypeSubstituting, MethodDescription.TypeTokenTypeVariableSource.Visitor<T>ByteCodeElement.Accessible, ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>NamedElement.WithGenericName, NamedElement.WithRuntimeNameCONSTRUCTOR_INTERNAL_NAME, NO_DEFAULT_VALUE, TYPE_INITIALIZER_INTERNAL_NAME, TYPE_INITIALIZER_MODIFIER, UNDEFINEDNON_GENERIC_SIGNATUREEMPTY_NAME, NO_NAMEEMPTY_MASK| Constructor and Description | 
|---|
| ForLoadedConstructor(Constructor<?> constructor)Creates a new immutable method description for a loaded constructor. | 
| 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  nullif no such value exists. | 
| String | getDescriptor()Returns the descriptor of this byte code element. | 
| 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. | 
| String | getName()Returns the internalName of this byte code element. | 
| 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. | 
| boolean | isConstructor()Checks if this method description represents a constructor. | 
| boolean | isSynthetic()Specifies if the modifier described by this object is synthetic. | 
| boolean | isTypeInitializer()Checks if this method is a type initializer. | 
| 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. | 
asDefined, isAccessibleToaccept, asToken, asToken, asTypeToken, equals, findVariable, getAdjustedModifiers, getDefaultValue, getEnclosingSource, getGenericSignature, getSourceCodeName, getStackSize, hashCode, isBootstrap, isBootstrap, isDefaultMethod, isDefaultValue, isDefaultValue, isInvokableOn, isMethod, isSpecializableFor, isVirtual, isVisibleTo, toGenericString, toStringisAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isTransient, isVarArgs, isVolatileclone, finalize, getClass, notify, notifyAll, wait, wait, waitasTypeToken, getAdjustedModifiers, getDefaultValue, getStackSize, isBootstrap, isBootstrap, isDefaultMethod, isDefaultValue, isDefaultValue, isInvokableOn, isMethod, isSpecializableFor, isVirtualaccept, findVariable, getEnclosingSourcegetGenericSignature, isVisibleTogetSourceCodeNameisAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isTransient, isVarArgs, isVolatiletoGenericStringasToken, asTokenpublic ForLoadedConstructor(Constructor<?> constructor)
constructor - The loaded constructor to be represented by this method description.public TypeDescription getDeclaringType()
DeclaredByTypenull if no such type exists.public GenericTypeDescription getReturnType()
MethodDescriptionpublic ParameterList<ParameterDescription.InDefinedShape> getParameters()
MethodDescriptionpublic GenericTypeList getExceptionTypes()
MethodDescriptionpublic boolean isConstructor()
MethodDescriptionisConstructor in interface MethodDescriptionisConstructor in class MethodDescription.AbstractBasetrue if this method description represents a constructor.public boolean isTypeInitializer()
MethodDescriptionisTypeInitializer in interface MethodDescriptionisTypeInitializer in class MethodDescription.AbstractBasetrue if this method description represents a type initializer.public boolean represents(Method method)
MethodDescriptionrepresents in interface MethodDescriptionrepresents in class MethodDescription.AbstractBasemethod - The method to be checked.true if this method description represents the given loaded method.public boolean represents(Constructor<?> constructor)
MethodDescriptionrepresents in interface MethodDescriptionrepresents in class MethodDescription.AbstractBaseconstructor - The constructor to be checked.true if this method description represents the given loaded constructor.public String getName()
NamedElement.WithRuntimeNamegetName in interface NamedElement.WithRuntimeNamegetName in class MethodDescription.AbstractBasepublic int getModifiers()
ModifierReviewablepublic boolean isSynthetic()
ModifierReviewableisSynthetic in interface ModifierReviewableisSynthetic in class ModifierReviewable.AbstractBasetrue if the modifier described by this object is synthetic.public String getInternalName()
NamedElement.WithRuntimeNamepublic String getDescriptor()
ByteCodeElementgetDescriptor in interface ByteCodeElementgetDescriptor in class MethodDescription.AbstractBasepublic Object getDefaultValue()
MethodDescriptionnull if no such value exists. The returned values might be
 of a different type than usual:
 Class values are represented as
 TypeDescriptions.Annotation values are represented as
 AnnotationDescriptionsEnum values are represented as
 EnumerationDescriptions.null.public AnnotationList getDeclaredAnnotations()
AnnotatedCodeElementpublic GenericTypeList getTypeVariables()
TypeVariableSourceCopyright © 2014–2016. All rights reserved.