/** * {@inheritDoc} */ public boolean matches(MethodDescription target) { return target.asSignatureToken().equals(signatureToken); } }
/** * {@inheritDoc} */ public ParameterList<ParameterDescription.InGenericShape> getParameters() { return new ParameterList.TypeSubstituting(this, methodDescription.getParameters(), visitor); }
/** * {@inheritDoc} */ public InDefinedShape asDefined() { return methodDescription.getParameters().get(index); } }
/** * {@inheritDoc} */ public ParameterList<ParameterDescription.InDefinedShape> getParameters() { return new ParameterList.Explicit.ForTypes(this, methodDescription.getParameters().asTypeList().asRawTypes()); }
/** * {@inheritDoc} */ public ParameterList<ParameterDescription.InDefinedShape> getParameters() { return new ParameterList.ForTokens(this, bridgeTarget.getParameters().asTokenList(is(instrumentedType))); }
/** * {@inheritDoc} */ public boolean represents(Method method) { return equals(new ForLoadedMethod(method)); }
/** * {@inheritDoc} */ public AnnotationList getDeclaredAnnotations() { return methodDescription.getDeclaredAnnotations(); }
/** * {@inheritDoc} */ public ParameterList<ParameterDescription.InDefinedShape> getParameters() { return new ParameterList.Explicit.ForTypes(this, methodDescription.getParameters().asTypeList().asRawTypes()); }
/** * {@inheritDoc} */ public boolean represents(Constructor<?> constructor) { return equals(new ForLoadedConstructor(constructor)); }
/** * {@inheritDoc} */ public int getModifiers() { return hasModifiers() ? modifiers : super.getModifiers(); }
/** * Creates a new list that describes the parameters of the given {@link Constructor}. * * @param constructor The constructor for which the parameters should be described. * @return A list describing the constructor's parameters. */ public static ParameterList<ParameterDescription.InDefinedShape> of(Constructor<?> constructor) { return of(constructor, new ParameterDescription.ForLoadedParameter.ParameterAnnotationSource.ForLoadedConstructor(constructor)); }
/** * {@inheritDoc} */ public ParameterList<ParameterDescription.InDefinedShape> getParameters() { return new ParameterList.Explicit.ForTypes(this, bridgeType.getParameterTypes()); }
/** * Creates a new list that describes the parameters of the given {@link Method}. * * @param method The method for which the parameters should be described. * @return A list describing the method's parameters. */ public static ParameterList<ParameterDescription.InDefinedShape> of(Method method) { return of(method, new ParameterDescription.ForLoadedParameter.ParameterAnnotationSource.ForLoadedMethod(method)); }
/** * {@inheritDoc} */ public TypeDefinition getAdviceType() { return adviceMethod.getReturnType(); }
/** * {@inheritDoc} */ public String getInternalName() { return token.getName(); }
/** * {@inheritDoc} */ public AnnotationValue<?, ?> getDefaultValue() { return token.getDefaultValue(); }
/** * {@inheritDoc} */ public boolean isNamed() { return DISPATCHER.isNamePresent(executable, index); }
/** * {@inheritDoc} */ public ParameterList<ParameterDescription.InDefinedShape> describe(Method method, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource) { return new OfLegacyVmMethod(method, parameterAnnotationSource); } }
/** * {@inheritDoc} */ public ParameterList<ParameterDescription.InDefinedShape> getParameters() { return new ParameterList.Explicit.ForTypes(this, bridgeTarget.getParameters().asTypeList().asRawTypes()); }