public interface ExecutableDescriptor extends ElementDescriptor
MethodDescriptor and
ConstructorDescriptor.ElementDescriptor.ConstraintFinder, ElementDescriptor.Kind| Modifier and Type | Method and Description |
|---|---|
boolean |
areParametersConstrained()
Returns
true if the executable 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. |
ElementDescriptor.ConstraintFinder |
findConstraints()
Find cross-parameter constraints and potentially restricts them to
certain criteria.
|
Set<ConstraintDescriptor<?>> |
getConstraintDescriptors()
Return all constraint descriptors for all cross-parameter constraints of
this executable or an empty
Set if none are present. |
String |
getName()
Returns the method name in case this descriptor represents a method or
the non-qualified name of the declaring class in case this descriptor
represents a constructor.
|
List<ParameterDescriptor> |
getParameterDescriptors()
Returns a list with descriptors representing this executable's
parameters, in order of their declaration, including synthetic
parameters.
|
ReturnValueDescriptor |
getReturnValueDescriptor()
Returns a descriptor for this executable's return value.
|
boolean |
hasConstraints()
Whether this executable has any cross-parameter constraints.
|
boolean |
isReturnValueConstrained()
Returns
true if the executable 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, getElementClass, getKindString getName()
List<ParameterDescriptor> getParameterDescriptors()
null.ReturnValueDescriptor getReturnValueDescriptor()
null
if this executable has no return value.boolean areParametersConstrained()
true if the executable parameters are constrained either:
@Valid)false if there is no parameter.true if the executable parameters are constrainedboolean isReturnValueConstrained()
true if the executable return value is constrained
either:
@Valid)false if there is no return value.true if the executable return value is constrainedboolean hasConstraints()
hasConstraints in interface ElementDescriptortrue if this executable has at least one cross-parameter
constraint, false otherwise.Set<ConstraintDescriptor<?>> getConstraintDescriptors()
Set if none are present. In
particular, constraints on individual parameters and return value
constraints are not returned.getConstraintDescriptors in interface ElementDescriptorSet of cross-parameter constraint descriptors for this
elementElementDescriptor.ConstraintFinder findConstraints()
findConstraints in interface ElementDescriptorCopyright © 2007-2013. All Rights Reserved.