public class ExecutableDescriptorImpl extends ElementDescriptorImpl implements ConstructorDescriptor, MethodDescriptor
ElementDescriptor.ConstraintFinder| Constructor and Description |
|---|
ExecutableDescriptorImpl(Type returnType,
String name,
Set<ConstraintDescriptorImpl<?>> crossParameterConstraints,
ReturnValueDescriptor returnValueDescriptor,
List<ParameterDescriptor> parameters,
boolean defaultGroupSequenceRedefined,
boolean isGetter,
List<Class<?>> defaultGroupSequence) |
| Modifier and Type | Method and Description |
|---|---|
CrossParameterDescriptor |
getCrossParameterDescriptor()
Returns a descriptor containing the cross-parameter constraints
of this executable.
|
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 of descriptors representing this executable's
parameters, in the order of their declaration, including synthetic
parameters.
|
ReturnValueDescriptor |
getReturnValueDescriptor()
Returns a descriptor for this executable's return value.
|
boolean |
hasConstrainedParameters()
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
|
boolean |
hasConstrainedReturnValue()
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)
|
boolean |
isGetter() |
String |
toString() |
findConstraints, getConstraintDescriptors, getElementClass, hasConstraintsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindConstraints, getConstraintDescriptors, hasConstraintsgetElementClasspublic ExecutableDescriptorImpl(Type returnType, String name, Set<ConstraintDescriptorImpl<?>> crossParameterConstraints, ReturnValueDescriptor returnValueDescriptor, List<ParameterDescriptor> parameters, boolean defaultGroupSequenceRedefined, boolean isGetter, List<Class<?>> defaultGroupSequence)
public String getName()
ExecutableDescriptorgetName in interface ExecutableDescriptorpublic List<ParameterDescriptor> getParameterDescriptors()
ExecutableDescriptorgetParameterDescriptors in interface ExecutableDescriptornullpublic ReturnValueDescriptor getReturnValueDescriptor()
ExecutableDescriptor
An executable without return value will return a descriptor
representing void. This descriptor will have no constraint
associated.
getReturnValueDescriptor in interface ExecutableDescriptorpublic boolean hasConstrainedParameters()
ExecutableDescriptortrue if the executable parameters are constrained either:
Valid)
Also returns false if there is no parameter.
hasConstrainedParameters in interface ExecutableDescriptortrue if the executable parameters are constrainedpublic boolean hasConstrainedReturnValue()
ExecutableDescriptortrue if the executable return value is constrained
either:
Valid)
Also returns false if there is no return value.
hasConstrainedReturnValue in interface ExecutableDescriptortrue if the executable return value is constrainedpublic CrossParameterDescriptor getCrossParameterDescriptor()
ExecutableDescriptorgetCrossParameterDescriptor in interface ExecutableDescriptorpublic boolean isGetter()
Copyright © 2018 JBoss by Red Hat. All rights reserved.