public interface MethodDescriptor extends ElementDescriptor
ElementDescriptor.ConstraintFinder, ElementDescriptor.Kind
Modifier and Type | Method and Description |
---|---|
boolean |
areParametersConstrained()
Returns
true if the method parameters are constrained either:
because of a constraint on at least one of the parameters
because of a cascade on at least one of the parameters (via @Valid )
because of at least one cross-parameter constraint
Also returns false if there is no parameter. |
String |
getName()
Returns the name of the method represented by this descriptor.
|
List<ParameterDescriptor> |
getParameterDescriptors()
Returns a list with descriptors for this method's parameters.
|
ReturnValueDescriptor |
getReturnValueDescriptor()
Returns a descriptor for this method's return value.
|
boolean |
isReturnValueConstrained()
Returns
true if the method return value is constrained either:
because of a constraint on the return value
because validation is cascaded on the return value (via @Valid )
Also returns false if there is no return value. |
as, findConstraints, getConstraintDescriptors, getElementClass, getKind, hasConstraints
String getName()
List<ParameterDescriptor> getParameterDescriptors()
Returns a list with descriptors for this method's parameters. The size of this list corresponds to the number of this method's parameters.
null
.ReturnValueDescriptor getReturnValueDescriptor()
null
if this method has no return value.boolean areParametersConstrained()
true
if the method parameters are constrained either:
@Valid
)false
if there is no parameter.boolean isReturnValueConstrained()
true
if the method return value is constrained either:
@Valid
)false
if there is no return value.Copyright © 2007-2012. All Rights Reserved.